View Single Post
  #6   Spotlight this post!  
Unread 29-01-2012, 16:12
Sunstroke Sunstroke is offline
Programmer
AKA: Joe Grinstead
FRC #3504 (Girls of Steel)
Team Role: Mentor
 
Join Date: Apr 2009
Rookie Year: 2009
Location: New England
Posts: 49
Sunstroke is an unknown quantity at this point
Re: Questions on WPILib components thread usage

Quote:
Originally Posted by Varriount View Post
Thanks for the information krieck. It's one less thing for our team to worry about. What about the command system? One would think that to run commands synchronously, they would be run in a seperate thread?
They are not, instead commands are just run in order in a single thread. Because of the iterative nature of commands though, this makes the run concurrently.

However, there is a downside because if one of your commands calls sleep or whatnot in its execute method, then all the other commands will have to wait for yours to finish before they do anything.
Reply With Quote