• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread.yield()  RSS feed

 
Alan Forster
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 581
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are right.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!