Processes P1, P2 and P3 arrive at time 0 in that order with burst times 24, 3 and 3. What is the average waiting time under FCFS?
Operating Systems
Processes, scheduling, synchronisation, deadlocks, memory management and virtual memory. 8 questions with worked solutions.
For the same three processes (bursts 24, 3, 3, all arriving at time 0), what is the average waiting time under non-preemptive SJF?
With 3 frames, initially empty, how many page faults does FIFO produce for the reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5?
With 3 frames, initially empty, how many page faults does LRU produce for the reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5?
A system has 32-bit logical addresses, 4 KB pages and 4-byte page table entries. How large is a single-level page table, in MB?
TLB lookup takes 10 ns, a memory access takes 100 ns and the TLB hit ratio is 90%. What is the effective memory access time in ns (single-level page table)?
What should a semaphore used for mutual exclusion be initialised to?
Which of the following are necessary conditions for deadlock?
Select every correct option. There is no partial credit.