| 14 | int cheese_burger; |
| 15 | |
| 16 | void a_mother(void *arg) |
| 17 | { |
| 18 | int delay = 0; |
| 19 | |
| 20 | printf("mother: start to make cheese burger, there are %d cheese burger now\n", cheese_burger); |
| 21 | // make 10 cheese_burger |
| 22 | cheese_burger += 10; |
| 23 | |
| 24 | printf("mother: oh, I have to hang clothes out.\n"); |
| 25 | // hanging clothes out |
| 26 | delay = 0xfffffff; |
| 27 | while (delay) |
| 28 | --delay; |
| 29 | // done |
| 30 | |
| 31 | printf("mother: Oh, Jesus! There are %d cheese burgers\n", cheese_burger); |
| 32 | } |
| 33 | |
| 34 | void a_naughty_boy(void *arg) |
| 35 | { |