Visual Basic (1)
New related comments
Number of comments in the last 48 hours
Thread synchronization in Java
2 comments. Current rating: (2 votes). Leave comments and/ or rate it.
Threads run in the same memory space and it is important that a thread does not inadvertently overwrite another's data. To control threads access to common data, Java offers the synchronized statement.