Hacker News new | ask | show | jobs
by JulianMorrison 5031 days ago
There is one core library class that's thread safe, and it's Queue.

Otherwise, take a lock, or don't share data.