Computer AwarenessVery hardSSC CGL · RRB NTPC · IBPS PO · SBI Clerk
Three processes arrive together at time 0 with CPU bursts P1 = 6 ms, P2 = 8 ms and P3 = 3 ms. By how much does non-preemptive SJF lower the average waiting time compared with FCFS served in the order P1, P2, P3?
- A. 2.67 ms
- B. 2.00 ms
- C. 3.33 ms
- D. 4.00 ms
Correct answer: A. 2.67 ms
FCFS waits are 0, 6 and 14, so the average is 20/3 = 6.67 ms. SJF runs P3, P1, P2 with waits 0, 3 and 9, an average of 4 ms; the saving is 6.67 − 4 = 2.67 ms.
हिंदी में
तीन प्रक्रियाएँ समय 0 पर एक साथ आती हैं, जिनके CPU बर्स्ट P1 = 6 ms, P2 = 8 ms और P3 = 3 ms हैं। P1, P2, P3 क्रम में चलने वाले FCFS की तुलना में नॉन-प्रीएम्पटिव SJF औसत प्रतीक्षा समय कितना घटाता है?
- A. 2.67 ms
- B. 2.00 ms
- C. 3.33 ms
- D. 4.00 ms
उत्तर: A. FCFS में प्रतीक्षा समय 0, 6 और 14 हैं, अतः औसत 20/3 = 6.67 ms। SJF में क्रम P3, P1, P2 है, प्रतीक्षा 0, 3 और 9, औसत 4 ms; बचत 6.67 − 4 = 2.67 ms।
More Computer Awareness questions
- A process is waiting for a disk read to finish. Which state does it enter first, and where does it go when the read completes?
- Which pairing of data-transmission mode and example is correct?
- A line signal changes 2400 times per second and every change carries 2 bits. What are its baud rate and bit rate?
- A bank needs to store a single 10 GB backup file on a Windows disk and also set separate access permissions on individual files. Which…
- A bank keeps its customer database in its own private data centre but rents public-cloud servers to handle the load of its website during…
- A developer uploads only the application code to a provider's service, which itself manages the servers, operating system, runtime and…