New version page

UConn CSE 2102 - lab8

Documents in this Course
Load more
Upgrade to remove ads
Upgrade to remove ads
Unformatted text preview:

CSE 3100 Systems Programming Fall 2018Lab #8Welcome to Lab 8! This lab assignment is due by the end of day on Monday Nov. 12, 2018.Read the question carefully before beginning work. Start by executing git pull inside your Git repos-itory on the virtual machine. Remember to add, commit, and push when you complete your work. AddONLY *.c to the git repo. Do not add .o files or executables.Matrix addition (100 Points).An implementation of matrix ADT is given in matrix.c. The APIs are similar to what you had inthe matrix transpose assignment, with some functions removed and some added. One of the functions,addMatrix(), performs matrix addition. An implementation is provided in matrix.c.In this lab, you must implement addMatrix thread() in madd.c, which performs matrix addition withtwo threads. You can change all the lines in madd.c, but should modify this file only.test-madd.c is provided for you to test your implementation. The program takes the number of rowsand columns from the command line, fills two matrices with random numbers, and compares the result ofaddMatrix() and addMatrix thread(). If no argument is specified, the program works on matrices of size6 × 6.Here are some sample sessions running test-madd.$./test-maddUsage: ./test-madd nrows ncolsCurrently using the default values for the number of rows and columns.0 Good work!$./test-madd 1000 20000 Good


View Full Document
Download lab8
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view lab8 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view lab8 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?