4/17/2007
Modern Programming Languages - Chapter 14
26
Exercise 1
p1=m.allocate(4);
p2=m.allocate(2);
m.deallocate(p1);
p3=m.allocate(1);
•After execution of:
•
1.
1.
1.
1.
p2 = 6
p3 = 1
1.What is the largest possible allocation?
2.What is the effect of:
 p4=m.allocate(2);
3.What is the effect of:
 p4=m.allocate(3);
4.How much memory is free?