English, asked by aieshserdenia, 6 months ago

thanks all my answer and ill do the same to you ill wait for the notification
#keeplearning
#besafe

Answers

Answered by AshleyIsBrainly
3

sure thing friend

Imagine you have a typical producer-consumer pattern in Java. To be a bit more efficient you want to use notify() and not notifyAll() when a new element is added to the queue. If two producer threads invoke notify, is it guaranteed that two distinct waiting consumer threads will be awoken? Or can it be that two notify()s fired shortly after each other cause the same comsumer thread to be queued for wakeup twice? I can't find the section is the API describing how this exactly works. Does java have some atomic internal operation for waking up threads exactly once?

Answered by ulan22
0

Answer:

Hi! u were just answering my question a minute ago but u got it all wrong bro it's not about sin, cass or etc. but I am talking about function(difference quotient).

That's all...but thanks though even if it didn't help much hahha just kidding...

Similar questions