Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
232 views
in Computer by (106k points)
closed by

Suppose two jobs, each of which needs 10 min of CPU time, start simultaneously. Assume 50% I/O wait time.

How long will it take for both to complete if they run sequentially ?


1. 10
2. 20
3. 30
4. 40

1 Answer

0 votes
by (103k points)
selected by
 
Best answer
Correct Answer - Option 4 : 40

The correct answer is “option 4”.

Concept:

If any process takes both CPU Time and I/O Time then, the total time taken by the process to complete is:

Total time = CPU Time + I/O Time

Calculation:

Given that the I/O Time of a job is 50% of the Total Time of that job, that means 50% of the time process needs I/O and 50% of the time process needs CPU time.       Also, CPU Time is 10 min.

Hence, 

50% * total time taken by process = CPU Time

0.5 * Total Time = 10 min.

Total time = 10 ÷ 0.5 = 20 min.

Time taken by one process is 20 min then, Total time taken by both processes is

20 min. + 20 min.= 40 min.  

Hence, the total time taken by both processes is 40 min. 

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...