View Single Post
  #2   Spotlight this post!  
Unread 11-01-2011, 08:54
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: How do I use interrupt in Java?

In Java the simplest thing to do is create a high priority thread that runs in a loop calling sleep (or WPILibj's Timer.delay) for 25 ms.

You can also use the java.util.Timer class for more complex activities. scheduleAtFixedRate() may be something to look at.
Reply With Quote