A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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?
Ping & DNS
- updated with new look and Ping home screen widget
I agree. Here's the link:
subject: multi threading - concurrently executing two threads
Java Servlets and Threads - Am I in trouble ?
About Synchronization in Threads
what's the use of synchronizing the service in servlet?
Stateless Session Bean -> MDB (Thread)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014