(a) What is data parallelism explain with example?
(b) Under what condition an operation can be executed in parallel?
Data Parallelism means concurrent execution of the same task on each multiple computing core. Let's take an example, summing the contents of an array of size N. For a single-core system, one thread would simply sum the elements [0] . . . ... So the Two threads would be running in parallel on separate computing cores
Parallelism
The term "parallelism" means the ability to run many processes concurrently accessing the same data at the same time. As you know, in such a system, for the correct processing of parallel processes without the occurrence of conflict situations, a certain method of concurrency control is used.
The standard method for resolving such problems is the blocking method. Locking is not a feasible feasible approach in dealing with the concurrency control problem. Using the blocking method causes other problems, among which the most famous is the deadlock problem. A formal criterion for the correct execution of a set of concurrent transactions in the concept of ordering ability.
Comments
Leave a comment