File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
Threads and Synchronization
multi threading - concurrently executing two threads
Joined: Apr 08, 2004
Feb 16, 2010 06:48:15
I want to execute two threads concurrently using multi-threading. Can i just use synchronized (or) synchronized with wait() - when the first thread executes, second thread should wait until first thread finishes its execution?
Joined: Mar 22, 2005
Feb 16, 2010 06:52:49
What is the point of having two threads if one of them will have to wait until the other is done?
I agree. Here's the link:
subject: multi threading - concurrently executing two threads
what's the use of synchronizing the service in servlet?
Stateless Session Bean -> MDB (Thread)
About Synchronization in Threads
Java Servlets and Threads - Am I in trouble ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015