About Question enthuware.ocpjp.v7.2.1324 :
Posted: Mon Jun 10, 2013 4:11 am
Why not changing " Thread.sleep(10000); //1 sleep for 10 secs" to Thread.sleep(1000); //1 sleep for 1 secs?
As for now the answer is not earnestly. Both threads have equal priority and so both will compete equally on the cpu time. If not take into consideration the proliferation of operation system schedulers it would be more fair to make Thread.sleep(1000) in both threads.
As for now the answer is not earnestly. Both threads have equal priority and so both will compete equally on the cpu time. If not take into consideration the proliferation of operation system schedulers it would be more fair to make Thread.sleep(1000) in both threads.