Advertisement

11.25.2008 at 06:27PM PST, ID: 23936134 | Points: 50
[x]
Attachment Details

how to alot 3 different processes by creating a chunk of memory

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
 
Expert Comment by mr_egyptian:

All comments and solutions are available to Premium Service Members only. Start your 7-day free trial to view the solution to this question.

Already a member? Login to view this solution.

 
 
Author Comment by aditya86b:

All comments and solutions are available to Premium Service Members only. Start your 7-day free trial to view the solution to this question.

Already a member? Login to view this solution.

 
 
Author Comment by aditya86b:

All comments and solutions are available to Premium Service Members only. Start your 7-day free trial to view the solution to this question.

Already a member? Login to view this solution.

 
 
Author Comment by aditya86b:

All comments and solutions are available to Premium Service Members only. Start your 7-day free trial to view the solution to this question.

Already a member? Login to view this solution.

 
 
20081119-EE-VQP-45 - Hierarchy / EE_QW_3_20080625