View Single Post
  #4   Spotlight this post!  
Unread 01-26-2011, 10:50 PM
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
Re: Netbeans doesn't like Thread.yield()

Yes, but when a thread sleeps the scheduler moves on to the next task. The greatest resolution you can expect is somewhat greater than a millisecond, more like sixteen (iirc) due to task switching (if it happens) and other threads running.

It's probably true that sleeping for only a few ms is a bit slim... I would suggest something more like 50, if you can spare it. But this is only if he doesn't want to turn off the warning that bugs him.
Reply With Quote