Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

Students also viewed these Databases questions

Question

305 mg of C6H12O6 in 55.2 mL of solution whats the molarity

Answered: 1 week ago

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago