'MysqL php thread security
I have a database that I access all the time. But the problem is that if I access the database in 2 threads at the same time (with a 0.001 ms delay), then the database will reply to both threads with the same values (although it should reply to two threads with different values).
I was told to read about thread-safe collections. But I still did not understand what exactly I was talking about. Is there a PHP solution for this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
