Question: Write a program in java or c/c++ to simulate job scheduling in an Operating System. Jobs as they are created to join the Ready queue.

Write a program in java or c/c++ to simulate job scheduling in an Operating System. Jobs as they are created to join the Ready queue. Each process (job) is given a processing time (CPU Burst). Jobs begin execution and run to completion, When a job is first generated, it will begin executing immediately if the processor is available. Otherwise it will be placed on the ready queue. Your task is to implement the scenario as described:

1. Your code should show the indicated implementation with as much instructions to the user as possible. ( Process time, Arrival time, Wait time, Average wait time, etc..)

2. Show the output file. Here is a scenario sample of your simulation:

/* Process 1 with time required 15

Process 2 with time required 12

Process 3 with time required 31

Process 4 with time required 29

Process 5 with time required 25

Process 6 time required 22

Process 7 time required 34

Process 8 time required 12

Simulation Summary

: The total number of Processes in the system is 8

The number of jobs currently executing 1

The number of completed jobs is 7

The average time Wait time is 30.0

*/

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!