PREVIOUS YEAR QUESTION PAPER

CS9043 – MULTI-CORE PROGRAMMING

Anna University

Regulation 2008 Semester 7 2013

Question Paper Details

University Anna University
Degree B.Tech. Information and Technology
Department Information and Technology
Regulation Regulation 2008
Semester 7
Subject Code CS9043
Subject Name MULTI-CORE PROGRAMMING
Exam Session April / May 2013
Duration 3 Hours
Maximum Marks 100

View Question Paper PDF

Access the previous year question paper for your examination preparation.

View / Download PDF

How to Use This Question Paper

More Question Papers

Browse other previous year question papers for this subject.

View All Subject Question Papers

Question Paper Intelligence

Automatically extracted historical question data. Academic accuracy and examination rules require verification.

18Extracted entries
100Maximum marks (metadata)
180Duration (minutes)
3Choice candidates

Part-wise extracted questions

Part A10
Part B8

Question type candidates

Other Or Unclassified12
Definition5
Short Description1

Section marks — arithmetic candidates

Part A20 marks
Part B80 marks

Examination marks pattern

PartRequired answersMarks per answerSection total
A10220
B51680

Estimated time allocation

Proportional to section marks. This estimate uses the full exam duration without a separate reading or revision reserve.

Section time budget

Part A36.0 min
Part B144.0 min

Optional-choice evidence

Detected alternatives only. Confirm the actual choice rules in the original question paper.

Part B — Question 13: Option a · Option b
Part B — Question 14: Option a · Option b
Part B — Question 15: Option a · Option b

Question navigator

Extracted questions

Part A — 1

State Gustafson's law. What is its significance in the context-of multi-core processors ?

Short Description
Part A — 2

What is the main reason for the shift towards muJti-core processors ? What HS the major challenge because of this shift ?

Definition
Part A — 3

How does a live-lock occur ?

Other Or Unclassified
Part A — 4

What is the difference between a fence and a barrier ?

Definition
Part A — 5

What are the constructs/functions you will use in openMP to do the following : <a) To specify the global variables that need to be private for«ach thread. (b) To ensure that any one thread executes a piece-of code.

Definition
Part A — 6

How is fine-grained locking useful ? Give an example for any data structure.

Other Or Unclassified
Exact text match in other eligible papers: APR_MAY 2012
Part A — 7

What is the ABA problem in non-blocking algorithms ?

Definition
Part A — 8

What are the four different types of sends supported in MPI ?

Definition
Part A — 9

What would the various MPI collective functions do if the communicator contains a single process ?

Other Or Unclassified
Part A — 10

Consider a program that has been cache-optimized for a single-core processor. How would the performance be affected if a parallel version of the same were run on a multi-core processor?

Other Or Unclassified
Part B — 11

(i) Increasing the number of threads does not always lead to better performance. Give reasons for why this is so. {4) (ii) Discuss the cache and memory related issues that need to -be addressed when writing parallel programs. <6) (iii) How can the sieve of Eratosthenes program be optimized to he cache-friendly? {€)

Other Or Unclassified

Source quality review required

Part B — 12a

(a) (i) Discuss Flynn's classification of parallel systems. Which category do common multi- core processors fall into ? (5) (ii) Distinguish between software and hardware multithreading. (6) (iii) What are the specific architectural features added in multi-core architectures ? Discuss with respect to any multi-core processor. (5) [OR] " (b) (i) State Amdahl's Jaw. As per Amdahl's law how many cores would be required to achieve a speedup of 4 if 80% of the task was parallelizable ? (5) <ii) Distinguish between ILP, TLP and DLP (5) (iii) Discuss the cache related issues in shared memory multi-processor architectures. (6)

Other Or Unclassified

Source quality review required

Part B — 13a

(a) (a) (i) Explain each of the different parallel programming patterns commonly used with an example. (10) (ii) Show how each of the three basic atomic operations of a condition variable can be implemented using semaphores. (6)

Other Or Unclassified

Source quality review required

Part B — 13b

(b) (i) Explain the different synchronization primitives. Specify applications suitable for each. (10) (ii) Parallelize the following loop. Which programming pattern does this fall into ? for (i=1, i<= 1024, { Sum[i] = 0; for <j=1. j<=i; j++) SumfJ] = sumfj] + bfj]; } (6)

Other Or Unclassified

Source quality review required

Part B — 14a

(a) (i) Write a parallel program using openMP to multiply two nxn matrices. Estimate the speed- up expected with k processors. (10) (ii) Explain the problem of data races and how they can be handled. (6)

Other Or Unclassified

Source quality review required

Part B — 14b

(b) (i) Write a cache-friendly parallel code using openMP for sorting a large set of numbers. Provide comments to explain your code. (10) (ii) Discuss the various work-sharing constructs used in OpenMP. (6)

Other Or Unclassified

Source quality review required

Part B — 15a

(a) (i) Write parallel code for counting the number of words in a huge document using MPI. (10) (ii) What would be the behaviour of the following send/receive operations in an MPI program. Process X : MPI_Send(msg1,.... Y, 200,..) MPI_Rsend(msg2, Y, 250,..) Process Y : MPI_Recv(store@a, X, 200) MPI_Recv(store@b, X, 250) (6)

Other Or Unclassified

Source quality review required

Part B — 15b

(b) (i) Write parallel code using MPI for a shortest path algorithm of your choice. Explain how you are partitioning the problem, and estimate the speed-up expected. (10) (ii) Explain the different collective communication functions in MPI. {6) * GOOD LUCK

Other Or Unclassified

Source quality review required

Advanced Examination Analysis

Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.