View Single Post
  #10   Spotlight this post!  
Unread 19-02-2012, 00:42
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: What is the point of timer.delay?

I believe that in Squawk (the Java VM on the cRIO), all threads are artificial constructs in the VM.

I mean that in the sense that the Squawk system will not use the cRIO's built in threading capabilities, it just kind of pretends to use them.

Also, Timer.delay() is implemented with Thread.sleep() and so it will NOT prevent other threads from running while it is asleep. However, the thread that calls Timer.delay(...) will wait until that time has passed.
Reply With Quote