![]() |
subject > mechanism > synchronization |
![]() ![]() | ||||
synchronization comparison table |
Subject | have purpose | is a kind of | is a subtopic of | has definition |
---|---|---|---|---|
mechanism | subject | The Basics of Java | ||
practice | subject | |||
synchronization | to avoid problems that can arise when two threads can both modify the same object at the same time | practice | The Basics of Java | A mechanism to guarantee that only one thread can access an object at a time |
Next mechanism: semaphore Up: mechanism, practice Previous mechanism: socket