File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Threads and Synchronization and the fly likes Run particular thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Run particular thread" Watch "Run particular thread" New topic

Run particular thread

priyanaka jaiswal
Ranch Hand

Joined: Jun 03, 2011
Posts: 79
Hi All,

Is there any particular method in java5 or java6 which make sure that particular thread will run?

Thanks in advance
Swastik Dey

Joined: Jan 08, 2009
Posts: 1398

What exactly do you mean by a particular thread?

priyanaka jaiswal
Ranch Hand

Joined: Jun 03, 2011
Posts: 79
I mean i want thread B to run then,How to make sure that Particular thread only run?
Jayesh A Lalwani

Joined: Jan 17, 2008
Posts: 2052

Thread.start will start the thread which will cause the thread to run
I agree. Here's the link:
subject: Run particular thread
Similar Threads
Call Overload Version of Thread's run method
another thread doubt
Can you still access an unsnychronized method even when there is a lock on the object?
How is Canada J2EE market ?
Thread Scheduling (Multiple CPU)