Adam Satyres wrote:
but when we add the synchronized block on lauref normally we got A C and then D we wait forever because there is notify from any laurel object ? am i right ?
but when we run this code we got :
A D C F
You have a conflict with the core library. Don't use
Thread objects for wait/notify -- it is used internally by the core library to implement the join() method.
Henry