logo

Crowdly

Browser

Add to Chrome

Let's say that we are writing a concurrent Java program.  A group of threads are...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Let's say that we are writing a concurrent Java program. 

A group of threads are waiting for a certain condition to become true, and each calls waitegg so that they can be informed about changes that will occur at some future point. The wait calls occur in the following order:

thread1 calls waitegg

thread2 calls waitegg

thread3 calls waitegg

thread4 now changes some shared variable, and needs to inform the others about the change. So thread4 invokes the following

notifyegg

Which of the threads will be notified, given the order in which they called waitegg?

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.concordia.ca?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome