Review Questions
Review Questions
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