Results 1 to 2 of 2
- 09-24-2012, 06:43 PM #1
Member
- Join Date
- Sep 2012
- Posts
- 1
- Rep Power
- 0
Thread.sleep() help, how does it decide which thread to sleep?
Hello,
I've recently discovered (not really proud of it) that the sleep() method in the Thread class is a static method.
Knowing that fact now, the question I have is, how does this class decide which running thread to sleep?
I've used it before and it always seems to sleep the one i want, but how can i be sure if this is a static method and only the parameter of time is sent to it.
thanks in advance.
- 09-24-2012, 07:01 PM #2
Member
- Join Date
- Jul 2012
- Location
- Earth
- Posts
- 75
- Rep Power
- 0
Similar Threads
-
Thread.sleep
By Gog in forum New To JavaReplies: 3Last Post: 01-13-2011, 08:14 AM -
Difference between Thread.yield() and Thread.sleep() methods
By Nageswara Rao Mothukuri in forum New To JavaReplies: 12Last Post: 07-30-2010, 05:37 PM -
how to reduce the thread sleep time and wake up the thread
By baktha.thalapathy in forum Threads and SynchronizationReplies: 2Last Post: 06-24-2010, 07:36 PM -
Sleep in thread
By jithan in forum New To JavaReplies: 1Last Post: 08-27-2008, 02:27 PM -
Can't get my thread to sleep!
By jamesfrize in forum New To JavaReplies: 2Last Post: 03-25-2008, 05:14 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks