[an error occurred while processing this directive]
Lab Demonstration, Week 6
Steps
-
Log into a UNIX machine.
-
Change directory to wherever you want to do CS 5631 work.
-
Give UNIX commands
cp ~gshute/public/cs5631/scheduling.jar .
ls
The directory listing should show a file named scheduling.jar.
-
Give UNIX commands
jar xf scheduling.jar
ls -F
The directory listing should show a directory named scheduling.
-
Give UNIX commands
cd scheduling
ls
The directory listing should show several .java and .class files.
-
Give the UNIX command
java SchedulerMain > out
-
View the out file with your favorite editor
You should see a description of four scheduling runs on a set of tasks.
Each of the runs uses a different scheduling algorithm, but the set of
tasks is the same in all four runs.
-
Modifications:
You can easily modify the set of tasks that are used in the scheduling
runs.
All you need to do is modify entries in the tasks array declared
in SchedulerMain.java.
A comment in the declaration shows how each task entry should look (except
the last one should not have a comma after it).
You can also change the time slice used in the round-robin scheduler.
Just change the returned value in the method getTimeSlice() in
the file RRScheduler.java.
After making changes, you should recompile modified files and rerun the
program.
[an error occurred while processing this directive]