Computer AwarenessVery hardIBPS SO IT Officer
Four processes have (arrival, burst) times P1 (0, 7), P2 (2, 4), P3 (4, 1) and P4 (5, 4) in ms. Under pre-emptive Shortest Remaining Time First, what is the average waiting time?
- A. 4 ms
- B. 3.5 ms
- C. 2.75 ms
- D. 3 ms
Correct answer: D. 3 ms
Schedule: P1 0–2, P2 2–4, P3 4–5, P2 5–7, P4 7–11, P1 11–16. Waits: P1 9, P2 1, P3 0, P4 2, so the average is 12 ÷ 4 = 3 ms. Non-pre-emptive SJF would give 4 ms.
हिंदी में
चार प्रक्रियाओं के (आगमन, बर्स्ट) समय P1 (0, 7), P2 (2, 4), P3 (4, 1) और P4 (5, 4) ms में हैं। प्री-एम्प्टिव शॉर्टेस्ट रिमेनिंग टाइम फ़र्स्ट में औसत प्रतीक्षा समय क्या है?
- A. 4 ms
- B. 3.5 ms
- C. 2.75 ms
- D. 3 ms
उत्तर: D. समय-सारणी: P1 0–2, P2 2–4, P3 4–5, P2 5–7, P4 7–11, P1 11–16। प्रतीक्षा: P1 9, P2 1, P3 0, P4 2, इसलिए औसत 12 ÷ 4 = 3 ms है। नॉन-प्री-एम्प्टिव SJF में 4 ms आता।
More Computer Awareness questions
- Under priority scheduling, a low-priority process may wait for ever. Which technique fixes this by slowly raising the priority of…
- Many short processes sit idle behind one long CPU-bound process, lowering device and CPU utilisation. This 'convoy effect' is typical of…
- Which page-replacement algorithm can suffer from Belady's anomaly, where giving a process MORE frames produces MORE page faults?
- A process has 3 page frames, all empty at first, and refers to pages 7, 0, 1, 2, 0, 3, 0, 4, 2, 3. How many page faults occur under the…
- A system has 12 tape drives. P0 holds 5 (maximum need 10), P1 holds 2 (maximum 4) and P2 holds 2 (maximum 9). Under the Banker's…
- Four processes share identical units of one resource, and each may need up to 3 units at once. What is the least number of units that…