2 ms·
From a Linux perspective, threads and processes are essentially the same construct. The major difference is the set of flags that are passed when the process is
by outworlder 9y ago
From a Linux perspective, threads and processes are essentially the same construct. The major difference is the set of flags that are passed when the process is created. Oversimplifying, if shared memory is requested, then it's a thread. Otherwise, it's a process. Meaning forking servers are multi-threaded.
On other operating systems, specifically those starting with the letter W, there's a major distinction. There are other constructs as well, such as "fibers".
Now, today's world is different from what it was in 1995. We used to have a single core, so threads and multiple processes were only a logical construct. Now, we have multiple cores, so we shold, at a bare minimum spawn multiple processes/threads. What's running inside them can then be debated as if it were 1995.