Question: Create a simulator for scheduling a given set of processes in user space only. The simulator should read frm a configuration file a set

Create a simulator for scheduling a given set of processes in user

Create a simulator for scheduling a given set of processes in user space only. The simulator should read frm a configuration file a set of parameters for each process: Length of time for which process will execute, priority of the process and the preferred scheduling policy - FIFO or Round Robin, the time at which the process executes and if it is a CPU intensive process or an 1'O intensive process. Apart from this read the quantum of time given to each process and the number of priority levels for scheduling the process. Now simulate a scheduling algorithm which uses FIFO/Round Robin with priority based scheduling. At the end of the run print the following quantities for each process: a. Number of times the process was scheduled. b. A timeline for the process containing the state transitions - Ready, waiting, Running and Terminated and the timestamp for each transition. c. Time taken to complete the process. d. Number of times the process waited for I/0. e. The priority of the process and preferred scheduling algorithm. After printing the above values print the average time of completion for each process. 2. From the calculated parameters determine which scheduling algorithm was better for CPU intensive and IO intensive processes. Suggest ways in which the scheduling algorithm can be improved and why? 3. We have two classes of systems for which we want to create an operating system - the first class is a server meant to be used as a database and another is a desktop system meant to be used by a home user. Suggest the different approaches you would take to schedule the processes on types of system and why? Change the simulator above to calculate of your scheduling policies and comment on the results obtained.

Step by Step Solution

3.27 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a simulator for scheduling a set of processes in user space follow these steps Step 1 Design the Configuration File Create a configuration f... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!