|
Lots of typos in the code, that code won't compile! Why is the variable supposed to be protected by the synchronization public and static. How is each thread initialized with the instance of the synchronized object? Synchronization works, don't worry about that. You have bugs in the code. Post the whole working code and we might help.
__________________
Daniel @ [ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ]
Language is froth on the surface of thought
|