Question

In: Computer Science

Processor/CPU Management I. Five processes, J1, J2, J3, J4 and J5. arrive in the Ready Queue...

Processor/CPU Management

I. Five processes, J1, J2, J3, J4 and J5. arrive in the Ready Queue in sequence, one second apart. Each job takes 1 millisecond to load into memory. Each job will take 10, 2, 3, 1, 5 seconds to run respectively. Questions

A. Create a Google Sheet where each column represents a Job and reach row represents a second..

B. Show the state of the Ready Queue in the 7th second, the 11th second and the 20th second using the First Come, First Served, Shortest Job Next, Shortest Remaining Time First, amd Round Robin with time quantum of 2 seconds.

C. Which one is most efficient? Discuss advantage and disadvantage. Double spaced, one pag

Solutions

Expert Solution

Here i am assuming that time starts from 1s. Each job is taking 1s to load into memory.In that case,J1 will be loaded into memory at 2s,J2 at 3s.J3 at 4s ,J4 at 5s and J5 at 6s.These are the arrival time we are considering.

Ready queue consists of processes which are ready to be run but not allotted for processing.For example when J1 is executing and all other processes are ready to run ,ready queue consists of J2,J3,J4,and J5.

For each algorithm, the google sheet image is attaching herewith.

Round robin may produce the lowest waiting time, which may be taken as best in view of waiting time.Shortest job remaining first is also good,but if the number of short processes are higher, longer process still have to wait even if we are taking the remaining shortest time.

My roughwork calculations also i am attaching here for your reference.


Related Solutions

Processor/CPU Management I Five processes, J1, J2, J3, J4 and J5. arrive in the Ready Queue...
Processor/CPU Management I Five processes, J1, J2, J3, J4 and J5. arrive in the Ready Queue in sequence, one second apart. Each job takes 1 millisecond to load into memory. Each job will take 10, 2, 3, 1, 5 seconds to run respectively. II In a single user dedicated system such as a personal computer, it is possible for the user to detect if a program is in an infinite loop and stop it manually. Another solution is for the...
Suppose there are 4 processes P1, P2, P3 and P4 getting to ready queue in various...
Suppose there are 4 processes P1, P2, P3 and P4 getting to ready queue in various arrival times and with various bursts times as detailed in the table below. Using Shortest-remaining-time-first scheduling approach, find waiting time for each process and the average waiting time and provide detailed steps taken to find the answer. Using time quantum of milliseconds. Process Arrival time (ms) Burst Time (ms) P1 0 8 P2 2 3 P3 6 2 P4 9 7
Five processes A, B, C, D, E arrive at the same time in this order ($A$...
Five processes A, B, C, D, E arrive at the same time in this order ($A$ first, $E$ last). They have estimated services times of 12u, 8u, 10u, 6u, 4u, where u is some unit of time. (a) Show the scheduling order under First-Come-First-Served (FCFS), Shortest Process Next (SPN), Shortest Remaining Time (SRT) next, Round-Robin with quantum of 2u (RR2). Note: Write BCADE to indicate the order of execution if you believe that B executes first, then C, then A,...
Propose five means for a Dubai based hospital to adopt LEAN supply chain management processes to...
Propose five means for a Dubai based hospital to adopt LEAN supply chain management processes to optimize service availability during COVID-19 epidemic (5 points). Name five ways how service organizations specifically can apply LEAN (5 points).
How does segmentation differ from paging? How does memory management facilitate processor and I/O usage? How...
How does segmentation differ from paging? How does memory management facilitate processor and I/O usage? How does page size affect fault rate? 4. Describe the approach where segmentation is combined paging
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT