This topic contains a solution. Click here to go to the answer

Author Question: Which method on a condition should you invoke to wake all waiting threads? (Read 44 times)

Pineapplelove6

  • Hero Member
  • *****
  • Posts: 560

Question 1

Which method on a condition should you invoke to causes the current thread to wait until the condition is signaled?
◦ condition.waited();
◦ condition.wait();
◦ condition.waiting();
◦ condition.await();

Question 2

Which method on a condition should you invoke to wake all waiting threads?
◦ condition.wakeAll();
◦ condition.wake();
◦ condition.signalAll();
◦ condition.signal();


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by Pineapplelove6 on May 6, 2020

kjohnson

  • Sr. Member
  • ****
  • Posts: 330
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




Pineapplelove6

  • Member
  • Posts: 560
Reply 2 on: May 6, 2020
Wow, this really help


mohan

  • Member
  • Posts: 362
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

Did you know?

In the United States, an estimated 50 million unnecessary antibiotics are prescribed for viral respiratory infections.

Did you know?

Though methadone is often used to treat dependency on other opioids, the drug itself can be abused. Crushing or snorting methadone can achieve the opiate "rush" desired by addicts. Improper use such as these can lead to a dangerous dependency on methadone. This drug now accounts for nearly one-third of opioid-related deaths.

Did you know?

Medications that are definitely not safe to take when breastfeeding include radioactive drugs, antimetabolites, some cancer (chemotherapy) agents, bromocriptine, ergotamine, methotrexate, and cyclosporine.

Did you know?

There are over 65,000 known species of protozoa. About 10,000 species are parasitic.

Did you know?

Though “Krazy Glue” or “Super Glue” has the ability to seal small wounds, it is not recommended for this purpose since it contains many substances that should not enter the body through the skin, and may be harmful.

For a complete list of videos, visit our video library