Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I want to solve this completely in Java code The project is a simulation for some of the CPU scheduling algorithms and making a comparison

I want to solve this completely in Java code
The project is a simulation for some of the CPU scheduling algorithms and making a
comparison between them. The project will:
1
-
Simulates the CPU scheduling algorithms FCFS
,
SRTF
(
SJF with preemption
)
,
RR
,
Multilevel Feedback Queues.
2
-
Creates
8
processes in the ready queue with a random CPU
-
burst for each
process between
5
&
100
time units. You should use a suitable data structure for
each process representing in a way the PCB which may contain the data you think
you need it in your program.
3
-
When creating the processes, assign some kind of order
(
arrival time
)
for their
arrival.
:
'
,
4
-
For RR
,
use a slice time
(
quantum
,
=
2
0
units
)
.
5
-
,
In multilevel feedback Queue, consider
3
queues,
Q
1
:
,
RR with
10
units
Q
2
:
,
RR with
50
units.
Q
3
:
,
FCFS
6
-
For each of the scheduling algorithms above, you should compute the average
turmaround time
(
ATT
)
and average waiting time
(
AWT
)
.
7
-
,
Repeat steps
(
2
)
to
(
6
)
for
100
times,
1000
times,
10000
times, and
10000
times.
8
-
Create a table summarizing your results showing ATT & AWT for all cases:
For example, in case FCFS:
No
.
of iterations
FCFS
(
*
)
Same thing for SJF
,
RR
,
Multilevel Feedback Queues.
Your program will be graded according to correctness, style, and documentation.
No nrograms will he accented after the due date

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_2

Step: 3

blur-text-image_3

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 Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions