| Author |
Regain Access to Running Thread without passing reference
|
Thomas Martin
Greenhorn
Joined: Mar 10, 2005
Posts: 2
|
|
Howdy! my question is if I can regain access to a thread that is running from different classes without directly passing a reference? Consider: Inputs highly appreciated! Thanks, T.
|
 |
James Carman
Ranch Hand
Joined: Feb 20, 2001
Posts: 580
|
|
|
You can always access the currently running Thread by doing Thread.currentThread(). In your case, I wouldn't extend Thread at all. Use a Runnable object instead.
|
James Carman, President<br />Carman Consulting, Inc.
|
 |
 |
|
|
subject: Regain Access to Running Thread without passing reference
|
|
|