• Post Reply Bookmark Topic Watch Topic
  • New Topic

yielding  RSS feed

 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am in the middle of a project that requires about five Threads to be running in background simultaneously. None of them are connected to each other. Is the best way to ensure maximum efficiency, adding a yield() method to each one?
Paul
 
Laudney Ren
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you finish one task on one thread, use yield() to give other threads chances to run. That's a good method.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!