https://www.evanjones.ca/software/threading-linus-msg.html

Here Linus gives a short but complete explanation of the difference between threads, processes, and tasks in Linux.

The gist of it is that, from Linux’s point of view, threads and processes don’t really mean anything: there are only tasks, and each task has a COE, or Context of Execution. Whether one task borrows part of its COE from another task (which is what, in theory, happens between a process and a thread) is left to the higher-level libraries (like pthread and friends).

What he’s effectively saying is that in Linux, two tasks can share whatever parts of their COE they want with each other, and the thread/process model is just one of those ways of sharing. For example, two tasks can have everything in common (even the entire address space) and differ only in their file descriptors, and that’s something you can’t express in the thread/process model.

At the end, he also gives a few examples of things you can’t do with the thread/process model but can do once you think in terms of tasks and COEs.