View on GitHub

Devendra's Log

Will threads become a relic?

Newer concurrency APIs have hidden the concept of threads. They instead expose task parallelism by applying the thread pool pattern, making migration from thread pools to other means of task parallelism easier. Some implementations expose asynchronous calls, doing away with the need to even create tasks. If the process has a single thread of execution, as in the case of Node.js, you don’t have to bother with locks. Scaling is achieved using multiple processes and shared data.

Evidence of this change can be seen in several popular programming APIs

Hopefully in the future we’ll see tasks magically dispatched to dedicated co-processors such as Epiphany and the GPU.

All that leads me to conclude that threads will become a relic in most programming languages.