cookchar

Example Output from COMP 5160 Assignment 4

May 3rd, 2020
57
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ccTerminal running; XINU Link established.
  2. [cc-cli] $ Commands:
  3. show (procs/priorQ/sleepQ):
  4. * procs: show the status of all processes
  5. * priorQ: show the order and priorities of ready processes
  6. * sleepQ: show the order and times of sleeping processes
  7.  
  8. resume (pid): resume process `pid`, making it ready
  9. suspend (pid): suspend process `pid`,
  10. removing it from the ready queue
  11. kill (pid): destroy process `pid`
  12.  
  13. create (sleeping/ready/looping) [time]:
  14. * sleeping: create a process asleep for `time` seconds
  15. * ready: create a process that joins the ready queue
  16. * looping: create a process that will loop forever
  17.  
  18. exit: exit this CLI
  19.  
  20. [cc-cli] $ Arg. Error: Invalid list to show
  21.  
  22. [cc-cli] $ Printing the process table...
  23. PROC 0 : Ready
  24. +--------+
  25. PROC 1 : Free
  26. +--------+
  27. PROC 2 : Current
  28. +--------+
  29. PROC 3 : Ready
  30. +--------+
  31. PROC 4 : Ready
  32. +--------+
  33. PROC 5 : Waiting
  34. +--------+
  35. PROC 6 : Waiting
  36. +--------+
  37. PROC 7 : Ready
  38. +--------+
  39. PROC 8 : Waiting
  40. +--------+
  41. PROC 9 : Waiting
  42. +--------+
  43. PROC 10 : Ready
  44. +--------+
  45. PROC 11 : Receiving
  46. +--------+
  47. PROC 12 : Waiting
  48. +--------+
  49. PROC 13 : Sleeping
  50. +--------+
  51. PROC 14 : Ready
  52. +--------+
  53. PROC 15 : Suspended
  54. +--------+
  55. PROC 16 : Sleeping
  56. +--------+
  57. PROC 17 : Free
  58. +--------+
  59. PROC 18 : Waiting
  60. +--------+
  61. PROC 19 : Ready
  62. +--------+
  63. PROC 20 : Sleeping
  64. +--------+
  65. PROC 21 : Waiting
  66. +--------+
  67. PROC 22 : Ready
  68. +--------+
  69. PROC 23 : Sleeping
  70. +--------+
  71. PROC 24 : Waiting
  72. +--------+
  73. PROC 25 : Suspended
  74. +--------+
  75. PROC 26 : Ready
  76. +--------+
  77. PROC 27 : Suspended
  78. +--------+
  79. PROC 28 : Free
  80. +--------+
  81. PROC 29 : Free
  82. +--------+
  83. PROC 30 : Suspended
  84. +--------+
  85. PROC 31 : Ready
  86. +--------+
  87. PROC 32 : Sleeping
  88. +--------+
  89. PROC 33 : Suspended
  90. +--------+
  91. PROC 34 : Sleeping
  92. +--------+
  93. PROC 35 : Ready
  94. +--------+
  95. PROC 36 : Sleeping
  96. +--------+
  97. PROC 37 : Waiting
  98. +--------+
  99. PROC 38 : Receiving
  100. +--------+
  101. PROC 39 : Free
  102. +--------+
  103. PROC 40 : Free
  104. +--------+
  105. PROC 41 : Suspended
  106. +--------+
  107. PROC 42 : Receiving
  108. +--------+
  109. PROC 43 : Ready
  110. +--------+
  111. PROC 44 : Sleeping
  112. +--------+
  113. PROC 45 : Waiting
  114. +--------+
  115. PROC 46 : Sleeping
  116. +--------+
  117. PROC 47 : Sleeping
  118. +--------+
  119. PROC 48 : Receiving
  120. +--------+
  121. PROC 49 : Receiving
  122. +--------+
  123. PROC 50 : Sleeping
  124. +--------+
  125. PROC 51 : Ready
  126. +--------+
  127. PROC 52 : Sleeping
  128. +--------+
  129. PROC 53 : Ready
  130. +--------+
  131. PROC 54 : Free
  132. +--------+
  133. PROC 55 : Receiving
  134. +--------+
  135. PROC 56 : Waiting
  136. +--------+
  137. PROC 57 : Sleeping
  138. +--------+
  139. PROC 58 : Ready
  140. +--------+
  141. PROC 59 : Receiving
  142. +--------+
  143. PROC 60 : Ready
  144. +--------+
  145. PROC 61 : Receiving
  146. +--------+
  147. PROC 62 : Waiting
  148. +--------+
  149. PROC 63 : Sleeping
  150. +--------+
  151.  
  152. [cc-cli] $ Printing the ready queue...
  153. PROC 4 : PRIORITY 93
  154. +--------+
  155. PROC 31 : PRIORITY 93
  156. +--------+
  157. PROC 10 : PRIORITY 92
  158. +--------+
  159. PROC 35 : PRIORITY 88
  160. +--------+
  161. PROC 22 : PRIORITY 87
  162. +--------+
  163. PROC 7 : PRIORITY 85
  164. +--------+
  165. PROC 3 : PRIORITY 84
  166. +--------+
  167. PROC 53 : PRIORITY 70
  168. +--------+
  169. PROC 19 : PRIORITY 67
  170. +--------+
  171. PROC 58 : PRIORITY 61
  172. +--------+
  173. PROC 60 : PRIORITY 53
  174. +--------+
  175. PROC 43 : PRIORITY 49
  176. +--------+
  177. PROC 14 : PRIORITY 43
  178. +--------+
  179. PROC 26 : PRIORITY 39
  180. +--------+
  181. PROC 51 : PRIORITY 22
  182. +--------+
  183. PROC 0 : PRIORITY 10
  184. +--------+
  185.  
  186. [cc-cli] $ Printing the sleep queue...
  187. PROC 63 : SLEEPING FOR 16 SECONDS
  188. +--------+
  189. PROC 57 : SLEEPING FOR 40 SECONDS
  190. +--------+
  191. PROC 52 : SLEEPING FOR 58 SECONDS
  192. +--------+
  193. PROC 50 : SLEEPING FOR 76 SECONDS
  194. +--------+
  195. PROC 47 : SLEEPING FOR 91 SECONDS
  196. +--------+
  197. PROC 46 : SLEEPING FOR 114 SECONDS
  198. +--------+
  199. PROC 44 : SLEEPING FOR 138 SECONDS
  200. +--------+
  201. PROC 36 : SLEEPING FOR 139 SECONDS
  202. +--------+
  203. PROC 34 : SLEEPING FOR 145 SECONDS
  204. +--------+
  205. PROC 32 : SLEEPING FOR 158 SECONDS
  206. +--------+
  207. PROC 23 : SLEEPING FOR 172 SECONDS
  208. +--------+
  209. PROC 20 : SLEEPING FOR 193 SECONDS
  210. +--------+
  211. PROC 16 : SLEEPING FOR 214 SECONDS
  212. +--------+
  213. PROC 13 : SLEEPING FOR 238 SECONDS
  214. +--------+
  215.  
  216. [cc-cli] $ Type Error: `pid` must be an integer.
  217.  
  218. [cc-cli] $ Killing Process 3...
  219.  
  220. [cc-cli] $ Resuming Process 4...
  221.  
  222. [cc-cli] $ Suspending Process 5...
  223.  
  224. [cc-cli] $ Argument Error: `time` must be an integer.
  225.  
  226. [cc-cli] $ Creating a process initially asleep for 10 seconds...
  227.  
  228. [cc-cli] $ Creating a process ready to run...
  229.  
  230. [cc-cli] $ Creating a process that will loop forever...
  231.  
  232. [cc-cli] $ Command Error: Unaccompanied string: "hello world"
  233.  
  234. [cc-cli] $ Command Error: unaccompanied integer: 11
  235. Command Error: unaccompanied integer: 09
  236. Command Error: unaccompanied integer: 199
  237. Command Error: Unaccompanied string: "X"
  238.  
  239. [cc-cli] $
  240. Terminal exiting now...
RAW Paste Data