Be sure you have read chapters 3 and 4.
Answer the following questions. You may write out your answers by hand or using a word processor or other program, but please submit hard copy, either in class or in my mailbox in the department office.
If you think it cannot, briefly explain why not. If you think it can, first give an example of a possible deadlock situation, and then design a scheme that avoids deadlocks, but in such a way that once an account is locked, it is not released until the funds transfer is complete (i.e., a design that relies on repeatedly locking one account, trying the other, and releasing the first is not allowed).
Locations | Contents |
7500 - 9999 | free |
4500 - 7499 | process |
4000 - 4499 | free |
3000 - 3999 | process |
2000 - 2999 | free |
0 - 1999 | operating system |
Answer the following questions:
Page number | Present/absent bit | Page frame number |
0 | 1 | 4 |
1 | 1 | 5 |
2 | 1 | 2 |
3 | 0 | ? |
4 | 0 | ? |
5 | 1 | 7 |
Answer the following questions about this system.
Time | bit (page 0) | bit (page 1) | bit (page 2) | bit (page 3) |
after tick 1 | 0 | 1 | 1 | 1 |
after tick 2 | 1 | 0 | 1 | 1 |
after tick 3 | 1 | 0 | 1 | 0 |
after tick 4 | 1 | 1 | 0 | 1 |
What are the values of the counters (in binary) for all pages after these four clock ticks? If a page needed to be removed at that point, which page would be chosen for removal?
(If 64 processes seems like a lot, log into one of the department Linux machines, execute the command top, and note the total number of processes it reports.)