0% found this document useful (0 votes)
7 views1 page

Review Questions

The assignment sheet covers review questions on using synchronized keywords for locking objects and the join method for thread management. It highlights two ways to acquire locks and the need to handle InterruptedException when using the join method. Additionally, it references a programming exercise located in a specified file path.

Uploaded by

abdo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Review Questions

The assignment sheet covers review questions on using synchronized keywords for locking objects and the join method for thread management. It highlights two ways to acquire locks and the need to handle InterruptedException when using the join method. Additionally, it references a programming exercise located in a specified file path.

Uploaded by

abdo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment sheet 7

Review questions :

3/

By using keyword synchronized to lock user defines objects, to acquire lock I have 2 ways either using

By locking using (this) or new followed by class name to release lock I need to use notify or notifyAll

5/

Join method waits for thread to die, can be used as a method or in main fuction as object.join() but need
to throws InterruptedException

2/ programming exercises :

C:\Users\DELL\Documents\advanced oop\sheet7.java

You might also like