10.5. Lab - Multithreaded Programming - Matrix MultiplicationΒΆ
Based on the documentation and sample code in Multi-threaded Programming, write a multi-threaded application to multiply two matrices.
The product of matrices (M rows and K columns) and (K rows and N columns) is a matrix of M rows and N columns.
The individual values of are calculated as:
Define matrices A, B and C as global two dimensional arrays or lists (for Python).
Create a tread to calculate each term of C. For safety, use a simple locking mechanism to control each thread writing to the global array, C.
Submit a short lab report as a plain text file explaining what you did in the activity and what you learned from doing it. Include your source code in your assignment submission.