Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

multi core and parallel processing

Tags:

cpu

what is the difference between parallel processing and multi core processing

like image 920
ikram ul haq Avatar asked Nov 28 '22 20:11

ikram ul haq


1 Answers

Parallel and multi-core processing both refer to the same thing: the ability to execute code at the same time (in more than one core/CPU/machine.) So in this sense multi-core is just a means to do parallel processing.

On the other hand, concurrency (which is probably what you mean by parallel processing) refers to having multiple units of execution (threads or processes) that are interleaved. This can also happen in either in a single core CPU or in many cores/CPUs or even in many machines (clusters).

Summing up, multicore is a subset of parallel and concurrency can occur with or without parallelism. The field that studies this is distributed systems or distributed computing.

like image 89
Vinko Vrsalovic Avatar answered Dec 15 '22 12:12

Vinko Vrsalovic