View Single Post
  #1   Spotlight this post!  
Unread 30-04-2012, 19:51
tyandjel94 tyandjel94 is offline
Registered User
FRC #1647 (Iron Devils)
Team Role: Programmer
 
Join Date: Apr 2012
Rookie Year: 2009
Location: New Jersey
Posts: 14
tyandjel94 is an unknown quantity at this point
Multitasking in Java

Hi,

For next year we are planning to use threads so the robot can multitask better. Do you think this is a good idea and if so how would you go about doing it thanks.

I know you have to create a thread and runnable (like the one below) but where do you put them?

Code:
Thread nameOfThread = new Thread();

 Runnable trackingJob = new Runnable()
    {
//Particle Analysis Report

	

	public void run()
	  {
	    //Code here
	  }

    };
Thanks for your help.
__________________
-Tyler
Team 1647 Iron Devils
Reply With Quote