A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Threads and Synchronization
Wait method and sleep method
Joined: Feb 20, 2011
Feb 27, 2011 06:39:56
I need to know what is the different between wait method and sleep method.. is the functionality of those 2 methods equivalent ?
Specially wait(100) is one??? there is an overloaded method in wait we can pass a long value
Joined: Nov 02, 2007
Feb 27, 2011 09:14:02
Before posting a query , just try searching the forum ; Somebody else might had the same query as yours ...and already answered.
Also have a look at javadocs for sleep() and wait()
I agree. Here's the link:
subject: Wait method and sleep method
What's the difference between the methods sleep() and wait()
Threads MindQ 41
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013