Parallel Random-access Machine - Read/write Conflicts

Read/write Conflicts

Read/write conflicts in accessing the same shared memory location simultaneously are resolved by one of the following strategies:

  1. Exclusive read exclusive write (EREW)—every memory cell can be read or written to by only one processor at a time
  2. Concurrent read exclusive write (CREW)—multiple processors can read a memory cell but only one can write at a time
  3. Exclusive read concurrent write (ERCW)—never considered
  4. Concurrent read concurrent write (CRCW)—multiple processors can read and write. A CRCW PRAM is sometimes called a concurrent random-access machine.

Here, E and C stand for 'exclusive' and 'concurrent' respectively. The read causes no discrepancies while the concurrent write is further defined as:

Common—all processors write the same value; otherwise is illegal
Arbitrary—only one arbitrary attempt is successful, others retire
Priority—processor rank indicates who gets to write
Another kind of array reduction operation like SUM, Logical AND or MAX.

Several simplifying assumptions are made while considering the development of algorithms for PRAM. They are:

  1. There is no limit on the number of processors in the machine.
  2. Any memory location is uniformly accessible from any processor.
  3. There is no limit on the amount of shared memory in the system.
  4. Resource contention is absent.
  5. The programs written on these machines are, in general, of type MIMD. Certain special cases such as SIMD may also be handled in such a framework.

These kinds of algorithms are useful for understanding the exploitation of concurrency, dividing the original problem into similar sub-problems and solving them in parallel.

Read more about this topic:  Parallel Random-access Machine

Famous quotes containing the words read, write and/or conflicts:

    No sooner had I glanced at this letter, than I concluded it to be that of which I was in search. To be sure, it was, to all appearance, radically different from the one of which the Prefect had read us so minute a description.... But, then, the radicalness of these differences ... these things ... were strongly corroborative of suspicion.
    Edgar Allan Poe (1809–1849)

    We are born at the rise of the curtain and we die with its fall, and every night in the presence of our patrons we write our new creation, and every night it is blotted out forever; and of what use is it to say to audience or to critic, “Ah, but you should have seen me last Tuesday”?
    Michéal MacLiammóir (1899–1978)

    They [parents] can help the children work out schedules for homework, play, and television that minimize the conflicts involved in what to do first. They can offer moral support and encouragement to persist, to try again, to struggle for understanding and mastery. And they can share a child’s pleasure in mastery and accomplishment. But they must not do the job for the children.
    Dorothy H. Cohen (20th century)