Thread Confinement

后端 未结 8 644
生来不讨喜
生来不讨喜 2020-12-02 14:43

I am reading Java Concurrency in Practice and kind of confused with the thread confinement concept. The book says that

When an object is confined to a

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 15:03

    I means that only code running in one thread accesses the object.

    When this is the case, the object doesn't need to be "thread safe"

提交回复
热议问题