InferenceAI

Enter at least two characters to search.

Start free

Operating Systems

Processes, scheduling, synchronisation, deadlocks, memory management and virtual memory. 8 questions with worked solutions.

Q1NAT1 markCPU scheduling

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?

Q2NAT1 markCPU scheduling

For the same three processes (bursts 24, 3, 3, all arriving at time 0), what is the average waiting time under non-preemptive SJF?

Q3NAT2 marksPage replacement

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?

Q4NAT2 marksPage replacement

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?

Q5NAT2 marksVirtual memory

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?

Q6NAT2 marksVirtual memory

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)?

Q7MCQ1 markSynchronisation

What should a semaphore used for mutual exclusion be initialised to?

Q8MSQ1 markDeadlocks

Which of the following are necessary conditions for deadlock?

Select every correct option. There is no partial credit.