Can Java object be locked down for exclusive use by a given thread?
Page 1 of 1
Can Java object be locked down for exclusive use by a given thread?
Yes. You can lock an object by putting it in a "synchronized" block. The locked object is inaccessible to any thread other than the one that explicitly claimed it.
Similar topics
» Can we make the user thread as daemon thread if thread is started?
» What kind of thread is the Garbage collector thread?
» What is thread?
» Is it possible to start a thread twice?
» When should we interrupt a thread?
» What kind of thread is the Garbage collector thread?
» What is thread?
» Is it possible to start a thread twice?
» When should we interrupt a thread?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|