Skip to content
This repository was archived by the owner on Jan 3, 2022. It is now read-only.

Conversation

@jackyhuynh
Copy link
Owner

Matrix multiplication is one of the applications that can benefit much from the multithreading approach of parallelism. Data distribution is an important implementation detail that, if abstracted out of a module interface, can facilitate code reuse, each of which can be given to a separate independent thread. The multiplications of rows and columns can be divided over different thread workers, all of which can be joined together to make up the result matrix.

Create a thread that works on multiplying one Row of the first matrix (A) with every column of the second matrix (B) and generate one row in the resulted matrix (C).

# Matrix multiplication is one of the applications that can benefit much from the multithreading approach of parallelism. Data distribution is an important implementation detail that, if abstracted out of a module interface, can facilitate code reuse, each of which can be given to a separate independent thread. The multiplications of rows and columns can be divided over different thread workers, all of which can be joined together to make up the result matrix.
# Create a thread that works on multiplying one Row of the first matrix (A) with every column of the second matrix (B) and generate one row in the resulted matrix (C).
@jackyhuynh jackyhuynh merged commit 254bb34 into main Nov 11, 2020
@jackyhuynh jackyhuynh deleted the jackyhuynh-patch-1 branch November 11, 2020 16:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants