Advertisement
Guest User

Untitled

a guest
Sep 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.02 KB | None | 0 0
  1. == Tick 10 ==
  2.     interrupts: on -> off
  3. Time: 10, interrupts off
  4. Pending interrupts:
  5. End of pending interrupts
  6.     interrupts: off -> on
  7. Entering SimpleTestenter TestValueMinusOne, value=0...
  8. Forking thread child1 #0 with func=0x804a96b, arg=1, join=YES
  9.     interrupts: on -> off
  10. Putting thread child1 #0 on ready list.
  11.     interrupts: off -> on
  12.  
  13. == Tick 20 ==
  14.     interrupts: on -> off
  15. Time: 20, interrupts off
  16. Pending interrupts:
  17. End of pending interrupts
  18.     interrupts: off -> on
  19. Forking thread child2 #0 with func=0x804a96b, arg=2, join=YES
  20.     interrupts: on -> off
  21. Putting thread child2 #0 on ready list.
  22.     interrupts: off -> on
  23.  
  24. == Tick 30 ==
  25.     interrupts: on -> off
  26. Time: 30, interrupts off
  27. Pending interrupts:
  28. End of pending interrupts
  29.     interrupts: off -> on
  30. Forking thread child3 #0 with func=0x804a926, arg=1, join=YES
  31.     interrupts: on -> off
  32. Putting thread child3 #0 on ready list.
  33.     interrupts: off -> on
  34.  
  35. == Tick 40 ==
  36.     interrupts: on -> off
  37. Time: 40, interrupts off
  38. Pending interrupts:
  39. End of pending interrupts
  40.     interrupts: off -> on
  41. Forking thread child4 #0 with func=0x804a926, arg=2, join=YES
  42.     interrupts: on -> off
  43. Putting thread child4 #0 on ready list.
  44.     interrupts: off -> on
  45.  
  46. == Tick 50 ==
  47.     interrupts: on -> off
  48. Time: 50, interrupts off
  49. Pending interrupts:
  50. End of pending interrupts
  51.     interrupts: off -> on
  52. Thread main #0 is calling join on thread child1 #0
  53. In JoinHit for Thread child1 #0.
  54.     interrupts: on -> off
  55. thread main releases semaphore Join?
  56.     interrupts: off -> on
  57.  
  58. == Tick 60 ==
  59.     interrupts: on -> off
  60. Time: 60, interrupts off
  61. Pending interrupts:
  62. End of pending interrupts
  63.     interrupts: off -> on
  64.     interrupts: on -> off
  65. Sleeping thread main #0
  66. Switching from thread main #0 to thread child1 #0
  67.     interrupts: off -> on
  68.  
  69. == Tick 70 ==
  70.     interrupts: on -> off
  71. Time: 70, interrupts off
  72. Pending interrupts:
  73. End of pending interrupts
  74.     interrupts: off -> on
  75. **** Dec thread 1 new value -1
  76. Thread child1 #0 is here to revive the thread that called it
  77.     interrupts: on -> off
  78. thread child1 acquires semaphore Join?
  79.     interrupts: off -> on
  80.  
  81. == Tick 80 ==
  82.     interrupts: on -> off
  83. Time: 80, interrupts off
  84. Pending interrupts:
  85. End of pending interrupts
  86.     interrupts: off -> on
  87.     interrupts: on -> off
  88. Putting thread main #0 on ready list.
  89. thread child1 releases semaphore in_join
  90.     interrupts: off -> on
  91.  
  92. == Tick 90 ==
  93.     interrupts: on -> off
  94. Time: 90, interrupts off
  95. Pending interrupts:
  96. End of pending interrupts
  97.     interrupts: off -> on
  98.     interrupts: on -> off
  99. Finishing thread child1 #0
  100. Sleeping thread child1 #0
  101. Switching from thread child1 #0 to thread child2 #0
  102.     interrupts: off -> on
  103.  
  104. == Tick 100 ==
  105.     interrupts: on -> off
  106. Time: 100, interrupts off
  107. Pending interrupts:
  108. End of pending interrupts
  109.     interrupts: off -> on
  110. **** Dec thread 2 new value -2
  111. Thread child2 #0 is here to revive the thread that called it
  112.     interrupts: on -> off
  113. Sleeping thread child2 #0
  114. Switching from thread child2 #0 to thread child3 #0
  115.     interrupts: off -> on
  116.  
  117. == Tick 110 ==
  118.     interrupts: on -> off
  119. Time: 110, interrupts off
  120. Pending interrupts:
  121. End of pending interrupts
  122.     interrupts: off -> on
  123.     interrupts: on -> off
  124. Yielding thread child3 #0
  125. Putting thread child3 #0 on ready list.
  126. Switching from thread child3 #0 to thread child4 #0
  127.     interrupts: off -> on
  128.  
  129. == Tick 120 ==
  130.     interrupts: on -> off
  131. Time: 120, interrupts off
  132. Pending interrupts:
  133. End of pending interrupts
  134.     interrupts: off -> on
  135.     interrupts: on -> off
  136. Yielding thread child4 #0
  137. Putting thread child4 #0 on ready list.
  138. Switching from thread child4 #0 to thread main #0
  139. Now in thread main #0
  140. Deleting thread child1 #0
  141. thread main acquires semaphore in_join
  142.     interrupts: off -> on
  143.  
  144. == Tick 130 ==
  145.     interrupts: on -> off
  146. Time: 130, interrupts off
  147. Pending interrupts:
  148. End of pending interrupts
  149.     interrupts: off -> on
  150. Thread main #0 is calling join on thread child2 #0
  151. In JoinHit for Thread child2 #0.
  152.     interrupts: on -> off
  153. Putting thread child2 #0 on ready list.
  154. thread main releases semaphore Join?
  155.     interrupts: off -> on
  156.  
  157. == Tick 140 ==
  158.     interrupts: on -> off
  159. Time: 140, interrupts off
  160. Pending interrupts:
  161. End of pending interrupts
  162.     interrupts: off -> on
  163.     interrupts: on -> off
  164. Sleeping thread main #0
  165. Switching from thread main #0 to thread child3 #0
  166. Now in thread child3 #0
  167.     interrupts: off -> on
  168.  
  169. == Tick 150 ==
  170.     interrupts: on -> off
  171. Time: 150, interrupts off
  172. Pending interrupts:
  173. End of pending interrupts
  174.     interrupts: off -> on
  175. **** Inc thread 1 new value -1
  176. Thread child3 #0 is here to revive the thread that called it
  177.     interrupts: on -> off
  178. Sleeping thread child3 #0
  179. Switching from thread child3 #0 to thread child4 #0
  180. Now in thread child4 #0
  181.     interrupts: off -> on
  182.  
  183. == Tick 160 ==
  184.     interrupts: on -> off
  185. Time: 160, interrupts off
  186. Pending interrupts:
  187. End of pending interrupts
  188.     interrupts: off -> on
  189. **** Inc thread 2 new value -1
  190. Thread child4 #0 is here to revive the thread that called it
  191.     interrupts: on -> off
  192. Sleeping thread child4 #0
  193. Switching from thread child4 #0 to thread child2 #0
  194. Now in thread child2 #0
  195. thread child2 acquires semaphore Join?
  196.     interrupts: off -> on
  197.  
  198. == Tick 170 ==
  199.     interrupts: on -> off
  200. Time: 170, interrupts off
  201. Pending interrupts:
  202. End of pending interrupts
  203.     interrupts: off -> on
  204.     interrupts: on -> off
  205. Putting thread main #0 on ready list.
  206. thread child2 releases semaphore in_join
  207.     interrupts: off -> on
  208.  
  209. == Tick 180 ==
  210.     interrupts: on -> off
  211. Time: 180, interrupts off
  212. Pending interrupts:
  213. End of pending interrupts
  214.     interrupts: off -> on
  215.     interrupts: on -> off
  216. Finishing thread child2 #0
  217. Sleeping thread child2 #0
  218. Switching from thread child2 #0 to thread main #0
  219. Now in thread main #0
  220. Deleting thread child2 #0
  221. thread main acquires semaphore in_join
  222.     interrupts: off -> on
  223.  
  224. == Tick 190 ==
  225.     interrupts: on -> off
  226. Time: 190, interrupts off
  227. Pending interrupts:
  228. End of pending interrupts
  229.     interrupts: off -> on
  230. Thread main #0 is calling join on thread child3 #0
  231. In JoinHit for Thread child3 #0.
  232.     interrupts: on -> off
  233. Putting thread child3 #0 on ready list.
  234. thread main releases semaphore Join?
  235.     interrupts: off -> on
  236.  
  237. == Tick 200 ==
  238.     interrupts: on -> off
  239. Time: 200, interrupts off
  240. Pending interrupts:
  241. End of pending interrupts
  242.     interrupts: off -> on
  243.     interrupts: on -> off
  244. Sleeping thread main #0
  245. Switching from thread main #0 to thread child3 #0
  246. Now in thread child3 #0
  247. thread child3 acquires semaphore Join?
  248.     interrupts: off -> on
  249.  
  250. == Tick 210 ==
  251.     interrupts: on -> off
  252. Time: 210, interrupts off
  253. Pending interrupts:
  254. End of pending interrupts
  255.     interrupts: off -> on
  256.     interrupts: on -> off
  257. Putting thread main #0 on ready list.
  258. thread child3 releases semaphore in_join
  259.     interrupts: off -> on
  260.  
  261. == Tick 220 ==
  262.     interrupts: on -> off
  263. Time: 220, interrupts off
  264. Pending interrupts:
  265. End of pending interrupts
  266.     interrupts: off -> on
  267.     interrupts: on -> off
  268. Finishing thread child3 #0
  269. Sleeping thread child3 #0
  270. Switching from thread child3 #0 to thread main #0
  271. Now in thread main #0
  272. Deleting thread child3 #0
  273. thread main acquires semaphore in_join
  274.     interrupts: off -> on
  275.  
  276. == Tick 230 ==
  277.     interrupts: on -> off
  278. Time: 230, interrupts off
  279. Pending interrupts:
  280. End of pending interrupts
  281.     interrupts: off -> on
  282. Thread main #0 is calling join on thread child4 #0
  283. In JoinHit for Thread child4 #0.
  284.     interrupts: on -> off
  285. Putting thread child4 #0 on ready list.
  286. thread main releases semaphore Join?
  287.     interrupts: off -> on
  288.  
  289. == Tick 240 ==
  290.     interrupts: on -> off
  291. Time: 240, interrupts off
  292. Pending interrupts:
  293. End of pending interrupts
  294.     interrupts: off -> on
  295.     interrupts: on -> off
  296. Sleeping thread main #0
  297. Switching from thread main #0 to thread child4 #0
  298. Now in thread child4 #0
  299. thread child4 acquires semaphore Join?
  300.     interrupts: off -> on
  301.  
  302. == Tick 250 ==
  303.     interrupts: on -> off
  304. Time: 250, interrupts off
  305. Pending interrupts:
  306. End of pending interrupts
  307.     interrupts: off -> on
  308.     interrupts: on -> off
  309. Putting thread main #0 on ready list.
  310. thread child4 releases semaphore in_join
  311.     interrupts: off -> on
  312.  
  313. == Tick 260 ==
  314.     interrupts: on -> off
  315. Time: 260, interrupts off
  316. Pending interrupts:
  317. End of pending interrupts
  318.     interrupts: off -> on
  319.     interrupts: on -> off
  320. Finishing thread child4 #0
  321. Sleeping thread child4 #0
  322. Switching from thread child4 #0 to thread main #0
  323. Now in thread main #0
  324. Deleting thread child4 #0
  325. thread main acquires semaphore in_join
  326.     interrupts: off -> on
  327.  
  328. == Tick 270 ==
  329.     interrupts: on -> off
  330. Time: 270, interrupts off
  331. Pending interrupts:
  332. End of pending interrupts
  333.     interrupts: off -> on
  334. congratulations! passed.
  335.     interrupts: on -> off
  336. Finishing thread main #0
  337. Sleeping thread main #0
  338. Machine idling; checking for interrupts.
  339. Time: 270, interrupts off
  340. Pending interrupts:
  341. End of pending interrupts
  342. Machine idle.  No interrupts to do.
  343. No threads ready or runnable, and no pending interrupts.
  344. Assuming the program completed.
  345. Machine halting!
  346.  
  347. Ticks: total 270, idle 0, system 270, user 0
  348. Disk I/O: reads 0, writes 0
  349. Console I/O: reads 0, writes 0
  350. Paging: faults 0, outs 0, tlb miss: 0
  351. Network I/O: packets received 0, sent 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement