Consider the following memory representation, where free areas are indicated with their sizes. The processes P1 to
Question:
Consider the following memory representation, where free areas are indicated with their sizes. The processes P1 to P6 are already in the memory and indicated by their sizes and process number.
1) Draw the final memory state after executing the following events in sequence, using contiguous allocation. Use the memory maps given below to answer the question.
2) If there is not enough place for a certain process, this process is rejected once and for all. Write Px No space.
3) Show clearly all remaining free areas.
The below events happen in sequence one after the other.
- P7 Arrives (requires 14KB),
- P8 Arrives (requires 10KB),
- P9 Arrives (requires 7KB),
- P5 TERMINATED
- P10 Arrives (requires 16KB)
- P11 Arrives (requires 5KB)
- P12 Arrives (requires 13KB)
- P13 Arrives (requires 12KB)
- Use First-Fit Allocation technique: [3marks]
P1 | P2 | P3 | P4 | P5 | P6 | ||||||
10K | 10K | 8K | 20K | 6K | 18K | 4K | 7K | 9K | 12K | 12K | 15K |
- Use Best-Fit Allocation technique: [3 marks]
P1 | P2 | P3 | P4 | P5 | P6 | ||||||
10K | 10K | 8K | 20K | 6K | 18K | 4K | 7K | 9K | 12K | 12K | 15K |
- Use Worst-Fit Allocation technique: [3 marks]
P1 | P2 | P3 | P4 | P5 | P6 | ||||||
10K | 10K | 8K | 20K | 6K | 18K | 4K | 7K | 9K | 12K | 12K | 15K |
Computer Organization and Design The Hardware Software Interface
ISBN: 978-0124077263
5th edition
Authors: David A. Patterson, John L. Hennessy