Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 241 Discussion Section (02/02/2012). MP2 Overview  Task is simple  Reimplement malloc(), calloc(), realloc() and free()  A contest will be running.

Similar presentations


Presentation on theme: "CS 241 Discussion Section (02/02/2012). MP2 Overview  Task is simple  Reimplement malloc(), calloc(), realloc() and free()  A contest will be running."— Presentation transcript:

1 CS 241 Discussion Section (02/02/2012)

2 MP2 Overview  Task is simple  Reimplement malloc(), calloc(), realloc() and free()  A contest will be running soon  There will be prizes !!

3 system call you need to know  void* sbrk (intptr_t size)  Increments the size of heap by size  Returns a pointer to the newly allocated memory

4 TIME to CODE! In your svn folder, do an “svn update” We will be working in the ds/ds2 folder – This is a copy of the MP2 code. – This week, we’ll program up a solution to the MP!

5 Other Sources of Wisdom Many implementations and algorithms online… All work should be your own! Good Luck


Download ppt "CS 241 Discussion Section (02/02/2012). MP2 Overview  Task is simple  Reimplement malloc(), calloc(), realloc() and free()  A contest will be running."

Similar presentations


Ads by Google