Go to Post Our thanks does not have to come from their lips. It comes from the finished product that walks across the stage, gets their diploma and moves on to bigger and better things. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:18.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi