Starting from:

$30

CPE434-Lab 7 Process Scheduling Solved

A multiprogramming operating system allows more than one process to be loaded into the executable memory at one time and allows for the loaded process to share the CPU using time multiplexing. One of the reasons for using multiprogramming is that the operating system itself is implemented as one or more processes, so there must be a way for the operating system and application processes to share the CPU. The scheduler is responsible for allocating the processor resources to the individual processes. There are different classes of scheduling that can be implemented for this purpose like Round-robin, Priority and First Come First Serve. 

Important Terms 
Quantum Time​: It is the amount of time a process is allowed to run. After a process is run for Quantum time, the scheduler chooses another process to run interrupting the currently running process in ​preemptive scheduling​. Based on the scheduling algorithm, the interrupted process will again be allowed to run. 

Turn Around Time​: It is the total amount of time taken by a process to complete its execution. Turn around time includes the time actually a process is run on the CPU plus the time it waits. 

Burst Time​: Time required by a process to complete. This is the actual time the process requires CPU for completion. 

Wait Time​: Time a process waits. Mathematically, ​Wait Time = Turn Around Time - Burst Time 

Assignment 1 
Round-robin scheduling ​algorithm is one of the simplest scheduling algorithms, where each process gets a small unit of CPU time (​time quantum​) . Write a program that implements this scheduling. Find the scheduling order, average waiting time for the processes and turn-around time (to each process) when round-robin scheduling is applied. 

Your program will accept as input following items: 

Number of processes, ​n  

Quantum Time Unit 

Id and Burst Time for each of ​n ​processes 

You will create a structure as follows (This is just a hint, you may choose to do it in any way you like): 

More products