A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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, my free Android app for network diagnostics
I agree. Here's the link:
subject: multi threading - concurrently executing two threads
Java Servlets and Threads - Am I in trouble ?
Stateless Session Bean -> MDB (Thread)
what's the use of synchronizing the service in servlet?
About Synchronization in Threads
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014