To learn the use of POSIX Pthreads or Java Threads
Background
Modern operating systems provide features for a process to use multiple threads to speed up accesses. In the class, we have learned the concepts associated with multithreaded computer systems, such as multithreading models. There are various thread libraries. POSIX Pthreads, and Java Threads are widely used for creating and manipulating threads. The textbook (Threads, Chapter 4) gives examples of multithreaded programs using these libraries.
Programming Task
In this assignment, you need to implement the Project Matrix Multiplication given in the textbook (Chapter 4, 8th edition), which is also attached in this project description. Your program will calculate each element Ci,j of the matrix product C of two matrices A and B using an individual/separate thread. So, the number of threads is equal to the number of terms in the matrix product. Use either POSIX Pthreads or Java threads to implement this program. The matrices to be multiplied are:
1 4%
$ 8 7 6%
A =$2 5 and B =$#5 4 3&
$#3 6&
Programming Language
C/C++ or Java
All files you submit must have a header with the following (enclosed in comment lines):
You need to use the server classes.csc.lsu.edu to work on the assignment. You can login to your account in the server using SSH. Create a directory prog1 (by typing mkdir prog1) in your home directory in which you create your program or source code.
Make sure that you are in the prog1 directory while submitting your program. Submit your assignment to the grader by typing the following command:
~cs4103_chf/bin/p_copy 1
This command copies everything in your prog1 directory to the graders account. Check whether all required files have been submitted successfully:
~cs4103_chf/bin/verify 1
Reviews
There are no reviews yet.