Hacker News new | ask | show | jobs
by andr 2231 days ago
This is naively bad advice, in that it doesn't educate the reader, rather it just creates stigma.

Threads are a fine tool for many jobs. You just need to understand what you are doing. Reduce your shared state. Use locks when more than one thread may write data simultaneously. Use queues/channels for message passing. Profile your lock contention when things get slow. Learn a functional language, so that you get the hang of writing no-side-effect functions and using immutable data structures. This will immensely help you with writing concurrent code.

You should use threads.