Advertisement
Guest User

Untitled

a guest
Nov 28th, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. COM3 COM5 COM7 COM8
  2. Port 0 Initialized
  3. Job Size for Process 1 is 500
  4. Port 1 Initialized
  5. Job Size for Process 2 is 434
  6. Port 2 Initialized
  7. Job Size for Process 3 is 160
  8. Port 3 Initialized
  9. Job Size for Process 4 is 317
  10. Process 1 arrives at 0 seconds.
  11. Process 2 arrives at 24 seconds.
  12. Process 3 arrives at 28 seconds.
  13. Process 4 arrives at 28 seconds.
  14. Arrival Array
  15. [0] 28
  16. [1] 28
  17. [2] 0
  18. [3] 24
  19. Job Size
  20. [0] 160
  21. [1] 317
  22. [2] 434
  23. [3] 500
  24. Arrival Index
  25. [0] 2
  26. [1] 3
  27. [2] 1
  28. [3] 0
  29. Init Selfish Round Robin Algorithm
  30. Process 1 has Arrived.
  31. Process 1 is running...
  32. [0 2147483647 2147483647 2147483647],[0 0 0 0],[true true true true],[true false false false]
  33. Process 1 has moved from holding to accepted queue.
  34. Process 1 is Preempted...
  35. Current Time: 5
  36. Process 1 is running...
  37. [10 2147483647 2147483647 2147483647],[-2147483632 0 0 0],[true true true true],[true false false false]
  38. Process 1 is Preempted...
  39. Current Time: 10
  40. Process 1 is running...
  41. [20 2147483647 2147483647 2147483647],[-2147483617 0 0 0],[true true true true],[true false false false]
  42. Process 1 is Preempted...
  43. Current Time: 15
  44. Process 1 is running...
  45. [30 2147483647 2147483647 2147483647],[-2147483602 0 0 0],[true true true true],[true false false false]
  46. Process 1 has ended.
  47. Current Time: 18
  48. Process 2 has Arrived.
  49. Process 4 has Arrived.
  50. Process 3 has Arrived.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement