posted 19 years ago
I got this code from K & B:
What is the logic behind the synchronization on the letter object? Can you put just any object inside the synchronization parentheses just to satisfy the requirement of synchronizing a block of code? I'm trying to learn the synchronization concepts of threads and I'm looking for a clear cut explanation on this concept.
Be Afraid...Be very Afraid...