Thread Confinement
问题 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 thread, such usage is automatically thread-safe even if the confined object itself is not So when an object is confined to a thread, no other thread can have access to it? Is that what it means to be confined to a thread? How does one keep an object confined to a thread? Edit: But what if I still want to share the object with another thread?