Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Access current thread (http://www.go4expert.com/forums/access-current-thread-t28741/)

rremedios 17Jul2012 01:59

Access current thread
 
My main thread starts a secondary thread that does some work.

I want to pass in a request to the secondary thread to stop the work but for the thread to contine running so that I can then pass another request to the existing secondary thread to do some other work.
I can create the secondary thread with a parameter that passes commands to the secondary thread.

How do I call the secondary thread to pass the parameter after it has started?

rremedios 17Jul2012 02:06

Re: Access current thread
 
Correction, I want to pass the secondary runnable thread a parameter.


All times are GMT +5.5. The time now is 13:10.