News for hackers. Stuff that matters.
Re:Concurrency Is Not Parallelism (2013) by msie on Tuesday April 28, 2015 @01:37AM (#9450658)
Concurrency: you have at least two threads sharing control of one CPU. Only one thread runs at a time. There is no parallelism. The important thing is that multiple threads are running.

Parallelism: the two threads are running simultaneously on two CPUs. There is concurrency too since there are multiple threads.

Re:Concurrency Is Not Parallelism (2013) by kazinator on Tuesday April 28, 2015 @12:31PM (#9453479)
The two situations you describe are more accurately called multitasking and multiprocessing. The latter gives us the "MP" in "SMP".

> Concurrency: [...] There is no parallelism.

> Parallelism: [...] There is concurrency too since ...

Oops, contradiction! :)

Re:Concurrency Is Not Parallelism (2013) by msie on Saturday May 02, 2015 @04:50AM (#9476371)
Ya got me there. :)

Edit: I should have written more clearly that having concurrency doesn't imply parallelism.