![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 23.12.2021 22:40 khenalilovespandas
Class X has synchronized methods S1 and S2. Consider an instance xinstance of class X, consumer threads T1 and T2, and supplier thread T3, and the following sequence of actions on xinstance: Thread T1 enters method S1, and at some point issues a wait(), because T3 hasn't supplied yet Subsequently, thread T2 enters method S1, and at some point issues a wait(), because T3 hasn't supplied yet Finally, thread T3 enters method S2, fills in the supply, issues a notifyAll(), finishes and exits S2 Assume that T3's supply is sufficient for only one of the consumers, and that once T3 has finished executing S2 as above, it is terminated (i. e. it will not return to S2 again). But T1 and T2 are insatiable and will want to keep coming back to method S1 for more. Assume that there is no attempt by the application to safely terminate either T1 or T2, i. e. they are allowed to keep running.
Required:
List ONE plausible sequence of thread states that T1 and T2 might go through, starting from the time they issue a wait(), as described above, up to the time when there will not be any more state changes.
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 11:30
To hide gridline when you display or print a worksheet
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 23:30
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 07:30
What key should you press and hold to select and open multiple files at one time? enter alt control esc
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 17:00
What are the 12 colors of the spectrum called?
Answers: 1
You know the right answer?
Class X has synchronized methods S1 and S2. Consider an instance xinstance of class X, consumer thre...
Questions
![question](/tpl/images/cats/ap.png)
Advanced Placement (AP), 07.12.2021 21:00
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 07.12.2021 21:00
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/en.png)
English, 07.12.2021 21:00
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/en.png)
English, 07.12.2021 21:00
![question](/tpl/images/cats/mat.png)
Mathematics, 07.12.2021 21:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/pravo.png)
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/istoriya.png)
History, 07.12.2021 21:00
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 07.12.2021 21:00