Have the determination of mirror which never fails to reflect in spite of being broken into pieces.<br /> <br />Kiss the hands you cannot bite.<br /> <br />An Optimist is one who starts taking a bath when he accidentally falls into the water.
Shivit: Notify() should pass the control to void put() which is on wait(), but instead the below statement get executed.... notify() gets avoided
apigee, a better way to API!
Have the determination of mirror which never fails to reflect in spite of being broken into pieces.<br /> <br />Kiss the hands you cannot bite.<br /> <br />An Optimist is one who starts taking a bath when he accidentally falls into the water.
Originally posted by Shivit Agarwal:
I know, that but why the the bolden thing is happening....
apigee, a better way to API!
Originally posted by Nitesh Kant:
Your bolden thing is not happening.
How do you determine that the control after notify is not going to put?
Have the determination of mirror which never fails to reflect in spite of being broken into pieces.<br /> <br />Kiss the hands you cannot bite.<br /> <br />An Optimist is one who starts taking a bath when he accidentally falls into the water.
Shivit:
Please read the Q. twice before posting the reply. That is the most lame answer i encountered in this forum.
Shivit:
Anybody can say looking at the program Producer->consumer->producer->consumer ....likewise the output will produced.
you are getting an alternate PUT and a GET output. If you see in the output a PUT: <number> is always followed by a GET: <same number>
Shivit:
Have you even read the output w.r.t question, for the bolden text
Shivit:I got the answer from the different forum.
Shivit:Please don't just reply to the query unless you read/understand the problem.
apigee, a better way to API!
Have the determination of mirror which never fails to reflect in spite of being broken into pieces.<br /> <br />Kiss the hands you cannot bite.<br /> <br />An Optimist is one who starts taking a bath when he accidentally falls into the water.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |