Access current thread

Discussion in 'Java' started by rremedios, Jul 16, 2012.

  1. rremedios

    rremedios New Member

    Joined:
    Jul 16, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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?
     
  2. rremedios

    rremedios New Member

    Joined:
    Jul 16, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Correction, I want to pass the secondary runnable thread a parameter.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice