subject

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
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
To hide gridline when you display or print a worksheet
Answers: 1
question
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
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
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
English, 07.12.2021 21:00
question
Mathematics, 07.12.2021 21:00
question
Social Studies, 07.12.2021 21:00
Questions on the website: 13722367