jeffhao | 5d1ac92 | 2011-09-29 17:41:15 -0700 | [diff] [blame] | 1 | Sleep Test |
2 | GOING | ||||
3 | GONE | ||||
4 | |||||
5 | Count Test | ||||
6 | going: 1 | ||||
7 | going: 1 | ||||
8 | going: 1 | ||||
9 | going: 1 | ||||
10 | going: 1 | ||||
11 | going: 1 | ||||
12 | going: 1 | ||||
13 | going: 1 | ||||
14 | going: 1 | ||||
15 | going: 1 | ||||
16 | Final result: 10 | ||||
17 | going: 2 | ||||
18 | going: 2 | ||||
19 | going: 2 | ||||
20 | going: 2 | ||||
21 | going: 2 | ||||
22 | going: 2 | ||||
23 | going: 2 | ||||
24 | going: 2 | ||||
25 | going: 2 | ||||
26 | going: 2 | ||||
27 | Final result: 20 | ||||
28 | main: all done | ||||
29 | |||||
30 | Interrupt Test | ||||
31 | SleepyThread.run starting | ||||
32 | SleepyThread.run starting | ||||
33 | interrupting other (isAlive=true) | ||||
34 | thread#0 interrupted, flag=false |