Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

check 1 failed output: Enter the number of processes: Enter process ID and duration for process 1 : Enter process ID and duration for process

check 1 failed
output:
Enter the number of processes: Enter process ID and duration for process 1: Enter process ID and duration for process 2: Enter process ID and duration for process 3: Process 10 is running in high priority queue
Process 10 is rescheduled with 18 remaining time
Process 30 is running in high priority queue
Process 30 is rescheduled with 62 remaining time
Process 560 is running in high priority queue
Process 560 finished execution
Process 10 is running in medium priority queue
Process 10 is rescheduled with 14 remaining time
Process 30 is running in medium priority queue
Process 30 is rescheduled with 58 remaining time
Process 10 is running in low priority queue
Process 10 is rescheduled with 8 remaining time
Process 30 is running in low priority queue
Process 30 is rescheduled with 52 remaining time
Process 10 is running in low priority queue
Process 10 is rescheduled with 2 remaining time
Process 30 is running in low priority queue
Process 30 is rescheduled with 46 remaining time
Process 10 is running in low priority queue
Process 10 finished execution
Process 30 is running in low priority queue
Process 30 is rescheduled with 40 remaining time
Process 30 is running in low priority queue
Process 30 is rescheduled with 34 remaining time
Process 30 is running in low priority queue
Process 30 is rescheduled with 28 remaining time
Process 30 is running in low priority queue
Process 30 is rescheduled with 22 remaining time
Process 30 is running in low priority queue
Process 30 is rescheduled with 16 remaining time
Process 30 is running in low priority queue
Process 30 is rescheduled with 10 remaining time
Process 30 is running in low priority queue
Process 30 is rescheduled with 4 remaining time
Process 30 is running in low priority queue
Process 30 finished execution
Process Duration Waiting Time Turnaround Time
10201838
30642084
560004
Average Waiting Time: 12.67
Average Turnaround Time: 42.00
expected:
Enter the number of processes: Enter duration for process 1: Process 1 enqueued in queue with time quantum 2
Enter duration for process 2: Process 2 enqueued in queue with time quantum 2
Enter duration for process 3: Process 3 enqueued in queue with time quantum 2
Process 1 dequeued from queue with time quantum 2
Process 1 is running in high priority queue
Process 1 enqueued in queue with time quantum 4
Process 2 dequeued from queue with time quantum 2
Process 2 is running in high priority queue
Process 2 enqueued in queue with time quantum 4
Process 3 dequeued from queue with time quantum 2
Process 3 is running in high priority queue
Process 3 enqueued in queue with time quantum 4
Process 1 dequeued from queue with time quantum 4
Process 1 is running in medium priority queue
Process 1 enqueued in queue with time quantum 8
Process 2 dequeued from queue with time quantum 4
Process 2 is running in medium priority queue
Process 2 enqueued in queue with time quantum 8
Process 3 dequeued from queue with time quantum 4
Process 3 is running in medium priority queue
Process 3 enqueued in queue with time quantum 8
Process 1 dequeued from queue with time quantum 8
Process 1 is running in low priority queue
Process 1 finished execution
Process 2 dequeued from queue with time quantum 8
Process 2 is running in low priority queue
Process 2 enqueued in queue with time quantum 8
Process 3 dequeued from queue with time quantum 8
Process 3 is running in low priority queue
Process 3 enqueued in queue with time quantum 8
Process 2 dequeued from queue with time quantum 8
Process 2 is running in low priority queue
Process 2 finished execution
Process 3 dequeued from queue with time quantum 8
Process 3 is running in low priority queue
Process 3 enqueued in queue with time quantum 8
Process 3 dequeued from queue with time quantum 8
Process 3 is running in low priority queue
Process 3 finished execution
Process Duration Waiting Time Turnaround Time
1101222
2202444
3303060
Check 2 failed
output:
Enter the number of processes: Enter process ID and duration for process 1: Enter process ID and duration for process 2: Process 10 is running in high priority queue
Process 10 is rescheduled with 13 remaining time
Process 0 is running in high priority queue
Process 0 is rescheduled with 62 remaining time
Process 10 is running in medium priority queue
Process 10 is rescheduled with 9 remaining time
Process 0 is running in medium priority queue
Process 0 is rescheduled with 58 remaining time
Process 10 is running in low priority queue
Process 10 is rescheduled with 3 remaining time
Process 0 is running in low priority queue
Process 0 is rescheduled with 52 remaining time
Process 10 is running in low priority queue
Process 10 finished execution
Process 0 is running in low priority queue
Process 0 is rescheduled with 46 remaining time
Process 0 is running in low priority queue
Process 0 is reiamiam

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions