Hi I have attached a copy of a round robin schedule I have produced, can someone check this is correct.

Process Arrival time Service time
1 0 4
2 1 3
3 3 2
4 5 8
5 7 2

If any errors can someone advise where please

Recommended Answers

All 2 Replies

Whats the quantum time? I'll assume its one. Try posting your answers here instead of attachments.

Your queuing is inconsistent.
cycle 0 : queue job 1, do work on job 1. Job 1 not finished so requeued.
cycle 1 : new job inserted in front of queue (job 2). Work job 2. Job 2 not finished requeue.
cycle 2 : no new job. Do work on Job 1. Job 1 not finished so requeue.
cycle 3 : new job inserted at end of queue. Work job 2, requeue job 2.

Why is job 2 inserted before job 1 at step 1, but job 3 is placed at the end in step 3?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.