1. Homepage
  2. Exam
  3. [2021] Massey - 159.341 Programming Languages, Algorithms AND Concurrency - Final Exam - Q4 Multithreaded Programming

[2021] Massey - 159.341 Programming Languages, Algorithms AND Concurrency - Final Exam - Q4 Multithreaded Programming

This question has been solved
Engage in a Conversation

Question 4 – Multithreaded Programming [12marks] CourseNana.COM

  CourseNana.COM

a) Compare and contrast the multi-threading approaches of C++ std threads [2 marks] and OpenMP (from a language perspective). Give an advantage of each. CourseNana.COM

  CourseNana.COM

b) Consider the following architecture: [4 marks] CourseNana.COM

  CourseNana.COM

Each Processing Unit PU operates independently and can directly access its local area of memory. It is also capable of reading/writing to the other areas of memory through the interconnect. CourseNana.COM

i) Classify the architecture in terms of Flynn's Taxonomy CourseNana.COM

ii) Classify the architecture in terms of memory architecture CourseNana.COM

  CourseNana.COM

c) There is a large dataset of integer keys stored in a linear array and which needs [6 marks] CourseNana.COM

to be sorted. It has been decided that the quick sort algorithm will be used to sort the array. It is safe to assume that the keys in the array are unique and are initially in a random order. CourseNana.COM

  CourseNana.COM

Describe a design for a multi-threaded solution for implementing the quicksort algorithm with the primary goal of reducing the time taken to find a particular value. CourseNana.COM

  CourseNana.COM

Your answer should: CourseNana.COM

• Outline your overall approach CourseNana.COM

• Describe the paradigm it is based on CourseNana.COM

• Suggest a language/API to use CourseNana.COM

• Provide a justification for your decisions CourseNana.COM

Get the Solution to This Question

WeChat WeChat
Whatsapp WhatsApp
Messey University代写,159.341代写,Programming Languages代写, Algorithms AND Concurrency代写,Messey University代编,159.341代编,Programming Languages代编, Algorithms AND Concurrency代编,Messey University代考,159.341代考,Programming Languages代考, Algorithms AND Concurrency代考,Messey Universityhelp,159.341help,Programming Languageshelp, Algorithms AND Concurrencyhelp,Messey University作业代写,159.341作业代写,Programming Languages作业代写, Algorithms AND Concurrency作业代写,Messey University编程代写,159.341编程代写,Programming Languages编程代写, Algorithms AND Concurrency编程代写,Messey Universityprogramming help,159.341programming help,Programming Languagesprogramming help, Algorithms AND Concurrencyprogramming help,Messey Universityassignment help,159.341assignment help,Programming Languagesassignment help, Algorithms AND Concurrencyassignment help,Messey Universitysolution,159.341solution,Programming Languagessolution, Algorithms AND Concurrencysolution,