Machine-translated by Google. Questions are authored in English.
Top

Parallel Processing and Multiprocessors Questions and Answers

1.

Which of the following is not part of minimal set of MPI (Message Passing Interface) routines ?

Exam Year(s)

MH SET - 2018, SET Exam - 2018,

Answer: C

The routine not in the minimal set is MPI_Sendrecv.

A complete MPI program can be written with six routines: MPI_Init and MPI_Finalize to start and end MPI, MPI_Comm_size and MPI_Comm_rank (printed 'MPI_Comm_Size') to find the number of processes and each process's rank, and MPI_Send and MPI_Recv for point-to-point messages.

MPI_Sendrecv combines a send and a receive in one call to avoid deadlock in exchanges. It is convenient but can be built from MPI_Send and MPI_Recv, so it is not part of the minimal set.

Please log in or register to report this question.

2.

Which of the following are the characteristics of multiprocessors ?

(i) Ability to share main memory and I/O devices
(ii) Increased reliability because of redundancy in processors
(iii) Increased throughput because of execution of multiple jobs in parallel
(iv) Portions of the same job in parallel

Exam Year(s)

MH SET - 2019, SET Exam - 2019,

Answer: D

All four are characteristics, so the answer is (i), (ii), (iii) and (iv).

M. Morris Mano describes a multiprocessor as two or more CPUs interconnected with shared main memory and I/O equipment (i). Because a failure of one processor need not stop the system, reliability improves (ii). Throughput improves because the system can either run multiple independent jobs in parallel (iii) or split a single job into parts that execute in parallel (iv).

Each of the other options omits at least one of these.

Please log in or register to report this question.

3.

Which protocol is responsible for distributing the responsibility for maintaining cache coherence among all the cache controllers in a multiprocessor system ?

Exam Year(s)

MH SET - 2020, SET Exam - 2020,

Answer: A

The protocol is the Snoopy protocol.

Snoopy protocols distribute the responsibility for cache coherence among all the cache controllers. Each controller watches (snoops) the shared bus, recognises when a line it holds is shared, and invalidates or updates its copy when another processor writes.

Directory protocols do the opposite: a central directory records which caches hold each line, and a central controller enforces coherence. Write-back and write-through are policies for when main memory is updated, not ways of sharing the coherence work.

Please log in or register to report this question.

4.

Consider the following segment of a parallel algorithm expressed in PRAM model of computing and allows concurrent read exclusive write model. What is the "Parallel time" complexity ?

For k = m - 1 step - 1 to 0 do
for all j, \(2^{k} \le j \le 2^{k+1} - 1\), in parallel do
A(j) = max {A(2j), A(2j + 1)}

where "max" is a function that find maximum of two numbers using single comparison operation.

Exam Year(s)

MH SET - 2020, SET Exam - 2020,

Answer: C

The parallel time is \(O(\log_2 n)\).

The algorithm finds the maximum of the \(n = 2^{m}\) values stored in a complete binary tree, level by level from the bottom. In each iteration of the outer loop, all nodes on level k compute the maximum of their two children in parallel, using one comparison, so each iteration takes constant time.

The outer loop runs once per level, m times, and \(m = \log_2 n\), so the parallel time is \(O(\log_2 n)\). O(n) or worse would be the sequential cost of scanning the values.

Please log in or register to report this question.

5.

Vector processing eliminates the overhead associated with time it takes to fetch and execute the instructions in the :

Exam Year(s)

MH SET - 2021, SET Exam - 2021,

Answer: C

The key's answer is Control structures.

The standard textbook account (Morris Mano) says vector processing eliminates the overhead of fetching and executing the instructions in the program loop. A loop that adds two arrays element by element, for example, repeats its fetch, index update and branch instructions for every element; a single vector instruction does the whole operation. A loop is a control structure, which is the option the key takes.

Vector processing does not remove the instructions of a whole program, and functions and sub-routines are not what it targets, so those options are wrong.

Please log in or register to report this question.

Answer: C

The statement that is not a characteristic of NUMA machines is (iii), access to remote memory is faster than access to local memory.

NUMA (non-uniform memory access) multiprocessors have three key characteristics: a single address space visible to all CPUs (i); access to remote memory through ordinary LOAD and STORE instructions (ii); and access to remote memory that is slower than access to local memory (iv). The non-uniformity is precisely that local memory is faster.

Statement (iii) contradicts (iv) and the very idea of NUMA, so it is the odd one out; the other three are true.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Parallel Processing and Multiprocessors Questions and Answers || Parallel Processing and Multiprocessors MCQ Questions and Answers || Parallel Processing and Multiprocessors GK Questions and Answers || Parallel Processing and Multiprocessors GK MCQ Questions || Parallel Processing and Multiprocessors Multiple Choice Questions and Answers || Parallel Processing and Multiprocessors GK || GK on Parallel Processing and Multiprocessors || Computer Organization and Architecture Questions and Answers || Computer Organization and Architecture MCQ Questions and Answers || Computer Organization and Architecture GK Questions and Answers || GK on Computer Organization and Architecture