Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I NEED A PYTHON CODE .You have to implement the Round Robin Scheduling Algorithm. You are required to implement a queue of processes . You

I NEED A PYTHON CODE .You have to implement the Round Robin Scheduling Algorithm. You are required to implement a queue of processes. You are required to implement this queue using linked list. Here the linked list will not have a capacity. Every process has two attributes; a name and total time required to complete that process. You can use a class to implement a process. A small time slice or quantum is defined; all the tasks are kept in queue. The CPU scheduler picks the first task from the queue, sets a timer to interrupt after one quantum, and dispatches the process. If the process is still running at the end of the quantum, the CPU is pre-empted and the process is added to the tail of the queue. If the process finishes before the end of the quantum, the process itself releases the CPU voluntarily. In either case, the CPU scheduler assigns the CPU to the next process in the ready queue.

Your code should design a scheduler for any given number of tasks. Your code should be menu driven. Your menu should look like:

1 Add a task

2 Delete a task

3 Run Scheduler

4 Exit

You may add any other options if need be. When the scheduler is running, the program should print the current state of the scheduling queue, until the entire queue has no processes remaining. Make sure you print each iteration of the scheduler. Once the scheduler has started, the user will not be able to add any more tasks.

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

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

6. Describe why communication is vital to everyone

Answered: 1 week ago

Question

LO1 Summarize the organizations strategic planning process.

Answered: 1 week ago