State Gustafson's law. What is its significance in the context-of multi-core processors ?
Short DescriptionCS9043 – MULTI-CORE PROGRAMMING
Anna University
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 PDFHow to Use This Question Paper
- Understand the examination pattern.
- Practise questions within the allotted time.
- Identify topics that require further revision.
- Compare with other previous year papers.
More Question Papers
Browse other previous year question papers for this subject.
View All Subject Question PapersQuestion Paper Intelligence
Automatically extracted historical question data. Academic accuracy and examination rules require verification.
Part-wise extracted questions
Question type candidates
Section marks — arithmetic candidates
Examination marks pattern
| Part | Required answers | Marks per answer | Section total |
|---|---|---|---|
| A | 10 | 2 | 20 |
| B | 5 | 16 | 80 |
Estimated time allocation
Proportional to section marks. This estimate uses the full exam duration without a separate reading or revision reserve.
Section time budget
Optional-choice evidence
Detected alternatives only. Confirm the actual choice rules in the original question paper.
Question navigator
Extracted questions
What is the main reason for the shift towards muJti-core processors ? What HS the major challenge because of this shift ?
DefinitionHow does a live-lock occur ?
Other Or UnclassifiedWhat is the difference between a fence and a barrier ?
DefinitionWhat 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.
DefinitionHow is fine-grained locking useful ? Give an example for any data structure.
Other Or UnclassifiedWhat is the ABA problem in non-blocking algorithms ?
DefinitionWhat are the four different types of sends supported in MPI ?
DefinitionWhat would the various MPI collective functions do if the communicator contains a single process ?
Other Or UnclassifiedConsider 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(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
Advanced Examination Analysis
Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.