logo

Crowdly

Browser

Додати до Chrome

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.concordia.ca?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome