4 ms·
> You use concurrency because having multiple execution contexts at "the same" time is useful, even if they are merely interleaved by the thread scheduler on th
by fizixer 11y ago
> You use concurrency because having multiple execution contexts at "the same" time is useful, even if they are merely interleaved by the thread scheduler on the same core. E.g. an IRC server: having a thread per socket, blocking until there is some I/O to be performed on that socket, is a very workable, straightforward design.
So concurrency is a technical/academic/generalized term for "multitasking". And yet:
- the article doesn't mention that word.
- Wikipedia on concurrency doesn't mention the word.
- Wikipedia on multitasking is a separate article (that does mention concurrency but doesn't clarify the relationship between the two: one being a generalization of the other).
- And people go on length trying to explain the "difference" between the terms, without making a helpful connection [0]
Weird, as always!
[0] http://www.quora.com/What-is-the-difference-between-multitasking-and-concurrency-in-programming http://www.quora.com/What-is-the-difference-between-multitas...