Access Millions of academic & study documents

A) Process A has three threads A1, A2, and A3 with estimate running

Content type
User Generated
Showing Page:
1/2
a) Process A has three threads A1, A2, and A3 with
estimate running time of 10, 20, and 15 msec. Process B
has two threads B1, and B2 with estimate running time of
10 and 5 msec. The process quantum time is 20-msec and
threads can run up to 5-msec CPU burst. Determine the
mean thread turnaround time for the user level Round
Robin threads scheduling (i.e. schedule threads in each
process). List detailed computation steps.
Solution
Assume that both process arrive at the time 0msec.
Process A has 3 threads A1,A2,A3.
Process B has 2 threads B1,B2.
Scheduling algorithm- Round Robin.
Time quantum 20 msec for process
CPU btime time-5 msec
Gantt chart:
each thread executes 5 msec time,if it finishes with in that
it will releases the CPU.
Here process B finished it\'s execution with in the given
time quantum, so CPU will be given for process A
completely.
Turn around time=completion time- arrival time.

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/2

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
a) Process A has three threads A1, A2, and A3 with estimate running time of 10, 20, and 15 msec. Process B has two threads B1, and B2 with estimate running time of 10 and 5 msec. The process quantum time is 20 -msec and threads can run up to 5-msec CPU burst. Determine the mean thread turnaround time for the user level Round Robin threads scheduling (i.e. schedule threads in each process). List detailed computation steps. Solution Assume that both process arrive at the time 0msec. Process A has 3 threads A1,A2,A3. Process B has 2 threads B1,B2. Scheduling algorithm- Round Robin. Time quantum ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4