A thread lock is a wrapper around a simple os thread-locking object. If you have a section of code that accesses many shared data variables. A thread-safe variable combines an os thread-locking object with the data that it protects. A thread-safe queue is a mechanism for safely passing arrays.
Traduction