Skip to content

Architecture

Farrokh Karimi edited this page Aug 14, 2018 · 7 revisions

Home Page
Previous Page

Architecture

To design an algorithm properly, we must have a clear idea of the basic model of computation in a parallel computer. Both sequential and parallel computers operate on a set (stream) of instructions called algorithms. These set of instructions (algorithm) instruct the computer about what it has to do in each step. According to Flynn's taxonomy the instruction stream and data stream, computers can be classified into four categories:

1. SISD

Single Instruction stream, Single Data stream (SISD) computers contain one control unit, one processing unit, and one memory unit.

In this type of computers, the processor receives a single stream of instructions from the control unit and operates on a single stream of data from the memory unit. During computation, at each step, the processor receives one instruction from the control unit and operates on a single data received from the memory unit.

2. SIMD

Single Instruction stream, Multiple Data stream (SIMD) computers contain one control unit, multiple processing units, and shared memory or interconnection network.

Here, one single control unit sends instructions to all processing units. During computation, at each step, all the processors receive a single set of instructions from the control unit and operate on different set of data from the memory unit.

Each of the processing units has its own local memory unit to store both data and instructions. In SIMD computers, processors need to communicate among themselves. This is done by shared memory or by interconnection network.

While some of the processors execute a set of instructions, the remaining processors wait for their next set of instructions. Instructions from the control unit decides which processor will be active (execute instructions) or inactive (wait for next instruction).

3. MISD

Multiple Instruction stream, Single Data stream (MISD) computers contain multiple control units, multiple processing units, and one common memory unit.

Here, each processor has its own control unit and they share a common memory unit. All the processors get instructions individually from their own control unit and they operate on a single stream of data as per the instructions they have received from their respective control units. This processor operates simultaneously.

4. MIMD

Multiple Instruction stream, Multiple Data stream (MIMD) computers have multiple control units, multiple processing units, and a shared memory or interconnection network.

Here, each processor has its own control unit, local memory unit, and arithmetic and logic unit. They receive different sets of instructions from their respective control units and operate on different sets of data.

Note: An MIMD computer that shares a common memory is known as multi-cores, while those that uses an interconnection network is known as multi-computers.

Based on the physical distance of the processors, multicomputers have two types:

  • Multicomputer: When all the processors are very close to one another (e.g., in the same room).
  • Distributed system: When all the processors are far away from one another (e.g. in the different cities)

Parallel Random Access Machines (PRAM)

PRAM is a model, which is considered for most of the parallel algorithms. Here, multiple processors are attached to a single block of memory. A PRAM model contains:

  • A set of similar type of processors.
  • All the processors share a common memory unit. Processors can communicate among themselves through the shared memory only.
  • A memory access unit (MAU) connects the processors with the single shared memory.

Here, n number of processors can perform independent operations on n number of data in a particular unit of time. This may result in simultaneous access of same memory location by different processors.

To solve this problem, the following constraints have been enforced on PRAM model:

  • Exclusive Read Exclusive Write (EREW): Here no two processors are allowed to read from or write to the same memory location at the same time.
  • Exclusive Read Concurrent Write (ERCW): Here no two processors are allowed to read from the same memory location at the same time, but are allowed to write to the same memory location at the same time.
  • Concurrent Read Exclusive Write (CREW): Here all the processors are allowed to read from the same memory location at the same time, but are not allowed to write to the same memory location at the same time.
  • Concurrent Read Concurrent Write (CRCW): All the processors are allowed to read from or write to the same memory location at the same time.

Next Page

Clone this wiki locally