Do not communicate by sharing memory; instead, share memory by communicating
"Do not communicate by sharing memory; instead, share memory by communicating", на сайте с September 04, 2023 00:35
Traditional threading models (commonly used when writing Java, C++, and Python programs, for example) require the programmer to communicate between threads using shared memory. Typically, shared data structures are protected by locks, and threads will contend over those locks to access the data. In some cases, this is made easier by the use of thread-safe data structures such as Python’s Queue.