homework代写 | c++代做 | thread | 作业assignment – Assignment

Assignment

homework代写 | c++代做 | thread | 作业assignment – 这道题目是利用thread进行的编程代写任务, 涵盖了c++/thread等方面, 这是值得参考的assignment代写的题目

多线程代写 代写多线程 multi-threading代写

2/22/2021 03 Std::Threads

03 Std::Threads

File Types tar, gz, tar.gz, and zip Available Feb 22 at 8am – Mar 14 at 11:59pm 21 days

Submit Assignment
The goal of this  assignment is to experience one way yo  thread a solution. In this assignment, you are to
use  c++ std::threads to concurrently solve two problems. Starting source projects can be found in the
Files/code section of Canvas named 2021_Spring_Hw03_Part1.tar.gz and
2021_Spring_Hw03_Part2.tar.gz.
Part 1) Data Statistics. Part 1 is broken into two sub tasks:
1. Use std::threads to decrease the execution time of a standard deviation calculation.
2. Use std::threads to decrease the execution time of finding and storing the top values in the dataset.
Part 2) Matrix-Matrix Multiplication
Use std::threads to decrease the execution time of a matrix-matrix multiplication calculation. In your
analysis, the performance of four versions must be compared:
1. Original unmodified
2. Original unmodified threaded
3. Optimized
4. Optimized threaded
Part 3) Performance Scalability Analysis
For each solution, evaluate for scalability and task size. Pick sizes of N that will force the task to occupy
L1, L2, L3 Cache and RAM. For those 4 cases, evaluate the performance for a range of number of
threads. Incorporate the following questions into your write-up:
How would you expect the performance to scale?
How does the performance actually scale in each situation?
Why would it scale the way it does?

2/22/2021 03 Std::Threads

https://psu.instructure.com/courses/2109084/assignments/12710176 2 / 2

Your  homework submission should be a zip file containing the following file structure and names:
  • hw3_.pdf // Your writeup (following the How to Write Technical Papers format).
  • _hw3_part1 // A folder containing your solution to hw2 part
    • hw3_part1.cpp // Your subroutine solution
    • hw3_part1.hpp // Your subroutine header file
    • Makefile // Your Makefile to compile your library
  • _hw3_part2 // A folder containing your solution to hw2 part
    • hw3_part2.cpp // Your subroutine solution
    • hw3_part2.hpp // Your subroutine header file
    • Makefile // Your Makefile to compile your library Please do not include any other files in your submission.
Evaluation and Expectations:
Your submission will be evaluated on two categories: Code Performance and Documentation.
For Code Performance, your libraries will be evaluated for both function and speed. If your library does
not replicate the original output, you will not receive credit for that part. The Rank of the speed will
determine the score earned in the code performance portion of the grade.
For Documentation, your write-up will be evaluated for how well you describe your effort and present
your results. It will also be evaluated for technical accuracy. Use the "How to Write Technical Papers" as
a guide. You do not need to use all sections of that document.
See the Homework Generic Rubric for additional guidance on how your assignment submission will be
evaluated.
Reminder, no credit will be earned for submissions that do not have your name in the documents (Write-
up AND source code).