Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • The fact you want to do this suggests you are solving the 'wrong' problem. Commented Jun 10, 2013 at 3:48
  • @Mitch Wheat In Thread Name I have a combination of app_num and Id which helps to refer me when new thread starts.So I need to give condition that if thread is already alive for same App_num and Queue_Id then it skips starting another new thread as it already exists Commented Jun 10, 2013 at 4:22
  • 2
    @Chow.Net - and immediately after your check completes, the thread which was just about to exit now completely exits. By the time you act on the result of your check, there is no such thread running. That (or other such races) is probably what Mitch was trying to hint to you. It's a broken idea. Commented Jun 10, 2013 at 7:10