Link to home
Start Free TrialLog in
Avatar of Amit
AmitFlag for United States of America

asked on

How to create java threads with multiple start and run signatures

Hi,

with reference to the following question

https://www.experts-exchange.com/questions/28784460/Triggering-a-shell-command-from-a-java-servlet-30-minutes-after-the-http-call.html

I need some examples on how the start and run methods can have different signatures

i.e how can I pass arguments to run() and start() without creating static variables
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Amit

ASKER

Can you please attach some sample pseudo code
Avatar of Amit

ASKER

What is ctor
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dpearson
dpearson

:)

Doug
You implement Runnable and/or Callable.
That, of course, should have said

You implement Runnable or Callable.

What is ctor
ctor == constructor