dcsimg
hi
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ravi_Babu
Posted On:   Wednesday, September 12, 2007 02:16 AM

what is the diff between sleep() and wait() in threads

Re: hi

Posted By:   WarnerJan_Veldhuis  
Posted On:   Wednesday, September 12, 2007 04:30 AM

sleep() will "pause" the thread for some time (millis), and wait() will pause until it gets notified by other threads to continue (It also has an overloaded version that takes a parameter as a time-out)
About | Sitemap | Contact