KB BOOK ch-THreads
Query
-----------------------------------------------------
OutPUt:
1 1
---------------------------------------------------
1.why is the output 1 1 instead of 1?
i think the main
thread should run only one time.
2.If i replace the code on line 10 with new Thread(new Starter()); ,then the output is :
1
can anyone tell why ?