IntelliJ Java IDE
The moose likes Threads and Synchronization and the fly likes Thread.yield() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Thread.yield()" Watch "Thread.yield()" New topic
Author

Thread.yield()

Alan Forster
Greenhorn

Joined: Feb 26, 2003
Posts: 1
it is my understanding that when the yield method is executed, the current thread is moved to the ready to run state and the underlying platform determines which thread is eligible to run next (inclding the yielded thread). Am I right, if not please explain
Thanks in advance
Ellen Zhao
Ranch Hand

Joined: Sep 17, 2002
Posts: 581
Yes, you are right.
 
 
subject: Thread.yield()
 
Threads others viewed
running servlet after the browser is closed
can anybody tel me wat exactly Thread.start() will do?
A question for Beginners - 3
adding more threads
thread doesn't seem to be work?