| Author |
Thread Program
|
rex tony
Ranch Hand
Joined: Aug 29, 2007
Posts: 159
|
|
Good evening to all, any one explain the follow of the program regards rex
|
 |
ahmed yehia
Ranch Hand
Joined: Apr 22, 2006
Posts: 424
|
|
Here nothing special is happening, you are creating and starting two threads which run concurrently. Try the below program (added yield()) and notice how threads take turns although output isnt guaranteed in both cases.
|
 |
 |
|
|
subject: Thread Program
|
|
|