Task parallelism: Difference between revisions

Content deleted Content added
Erget2005 (talk | contribs)
m Description: Spelling/grammar correction
Converting empty {{citation}} to {{citation needed}} (bot - disable)
Line 7:
As a simple example, if we are running code on a 2-processor system ([[CPU]]s "a" & "b") in a [[wikt:parallel|parallel]] environment and we wish to do tasks "A" and "B", it is possible to tell CPU "a" to do task "A" and CPU "b" to do task 'B" simultaneously, thereby reducing the [[Run time (program lifecycle phase)|run time]] of the execution. The tasks can be assigned using [[Conditional (programming)|conditional statement]]s as described below.
 
Task parallelism emphasizes the distributed (parallelized) nature of the processing (i.e. threads), as opposed to the data ([[data parallelism]]). Most real programs fall somewhere on a continuum between task parallelism and data parallelism.{{citation needed|date=June 2013}}.
 
==Example==