A system has four processes and five allocatable resources. The current allocation and maximum needs are as follows:
Allocated | Maximum | Available | |
Process A | 10211 | 11213 | 00×11 |
Process B | 20111 | 22211 | |
Process C | 11010 | 21410 | |
Process D | 11110 | 11221 |
What is the smallest value of x for which this is a safe state?
Which of the following instructions should be privileged?
1. Set value of the timer
2. Read the clock
3. Clear memory
4. Issue a trap instructions
5. Turn off interrupts
6. Modify entries in the device-status table
7. Switch from user to kernel model
8. Access I/O device