Single Server Queue Simulation - 75965

Request Posted by


Rating : No Rating
Earned: $0
Request Detail
Price: $60
  • From: Computer Science, Java
  • Due on: Thu 11 Dec, 2014 (08:00am)
  • Asked on: Thu 11 Dec, 2014
  • Due date has passed, but you can still Post Solution.

Write a simulation program that simulates the following:

A job arrives every A and B time units (ex. 20 and 30 time units). Each arriving job will have a request of CPU time that will be from C and D time units (ex. 25 and 40 time units). If a job arrives and find the CPU busy it enters the ready queue (FIFO queue). Jobs are scheduled based on a First Come First Served (FCFS) algorithm.

Your output should show every event of the simulation (as it occurs over time) and also the following statistics:

- CPU Utilization
- Average time waiting in the ready queue
- Average length of the ready queue
- Maximum size of the ready queue
- Average turnaround time

Run your program a few times using different values of A,B,C and D

Please Login or Register to Submit the Solution for the Request