Trail: Essential Classes
Lesson: Concurrency
Synchronization
Synchronization
Threads communicate primarily by sharing access to fields and the objects reference fields refer to. This form of communication is extremely efficient, but makes two kinds of errors possible: thread interference and memory consistency errors. The tool needed to prevent these errors is synchronization.
Previous page: The SimpleThreads Example
Next page: Thread Interference