Usetutoringspotscode to get 8% OFF on your first order!

  • time icon24/7 online - support@tutoringspots.com
  • phone icon1-316-444-1378 or 44-141-628-6690
  • login iconLogin

Write a simulation of the RR scheduling policy.

The scheduling policy is Round Rock (RR).2) The state of the system can change at any tick (end of a tick).3) OS decisions and actions are done only at the end of a slice. A slice is 20 ticks.4) Tasks are generated (at any tick) with a probability p1.5) The running task can incur an I/O event (at any tick) with a probability p26) The remaining execution time of a task is denoted by R3. If R3=0, the task terminates.7) The length of an I/O event is denoted by R4. If R4=0, the I/O event is completedAssignment Instructions:Write a simulation of the RR scheduling policy.Your program should use a random number generator that generates random numbers {R1,R2,R3,R4} in the range [0, 1] and augment the number as needed to get the ranges specified below.P1=1 if R1>0.95; otherwise P1=0P2=1 if R2>0.95; otherwise P2=0R3[10,50]; R4[10,30].The simulation should run for 1500 ticks and produce a screen-shot of the system throughput (number of completed tasks divided by the simulation length) and the average latency per task (in ticks).

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes