Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Make all other works stop until a thread finishes execution

807589Dec 19 2008 — edited Dec 19 2008
Hi,
I have the following thread.
_thread = new Thread()
		{
			public void run()
			{
				try
				{
					//Something is executing here
				}
				catch (Exception e)
				{
						System.out.println(e);
				}
				
			}
		};
		_thread.start();
Once the control gets inside this thread, all other works should be posed and the other works should be resumed only once this thread finishes execution.
how can i do that?
Please help.
Any help in this regard will be appreciated with dukes.

Regards,
Rony
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 16 2009
Added on Dec 19 2008
4 comments
135 views