so how can i make a main memory simulator....I would like to show practically,a chunk of memory is created and is allocated to 3 different processes.Let us say if my chunk of memory starts from address 0 to 100 bytes and each cell in the chunk is of 1 byte.Now.let us suppose process p1 is using memory space from 0to 10 bytes and process p2 is using from 40-60 and p3 from 80-100 .My next operation in this program is to delete any one process and show the memory available after deletion.
My last step is to Garbage collect it and list the available free space .
so is C capable of doing this.......can you post me the code......I would like to see it.........it is really urgent.........sorry,if I rush you guys
20081119-EE-VQP-45 - Hierarchy / EE_QW_3_20080625