Thread-level Parallelism Flashcards
(8 cards)
What is thread-level parallelism?
A programming model that leverages multi-core processors
What are the three types of parallel architecture?
- Single Instruction, Single Data
- Single Instruction, Multiple Data
- Multiple Instruction Multiple Data
How does Single Instruction Multiple data work?
The same instrcution is executed by multiple processors using different data streams. Each processor has its own data memory.
How does Multiple Instruction Multiple Data work?
Each processor fetches its own instruction and operates on its own data. The processors are often off-the-shelf microprocessors.
What is a thread?
Threads are semi-independent streams of execution spawned by a process. They share memory with each other.
What is a shared memory system?
Threads can see the data of the parent process while being assigned to different physical cores on the processor
What is distributed memory parallelism?
The data is distributed among the processes, creating smaller sub-problems. Processes can only see their own data, and communication between them is done via messages.
What are the two parallel libraries used?
OpenMP and MPI