| Author |
wait and notify methods
|
rama rajesh
Greenhorn
Joined: Jun 22, 2010
Posts: 28
|
|
My req is after inserting each element in vector, it should be displaed.
inserting by one thread and displaying by other thread. both are using the same vector. can someone change the following code according to my requirement.
|
 |
Jim Hoglund
Ranch Hand
Joined: Jan 09, 2008
Posts: 525
|
|
Rama,
Does the code do something that you don't expect?
And if there is a problem, what have you tried so far
to correct it? You are correct that wait() and notify()
will play a role here, in synchronized blocks of course.
Jim ...
|
BEE MBA PMP SCJP-6
|
 |
 |
|
|
subject: wait and notify methods
|
|
|