Skip to content

Step 3.10: Multithreading and parallelism#28

Open
ziimakc wants to merge 1 commit intomainfrom
3_10_threads
Open

Step 3.10: Multithreading and parallelism#28
ziimakc wants to merge 1 commit intomainfrom
3_10_threads

Conversation

@ziimakc
Copy link
Copy Markdown
Owner

@ziimakc ziimakc commented Feb 24, 2026

Resolves Step 3.10

Task

Write a program with the following workflow:

  • Producer is a separate thread, which continuously generates square matrixes of random u8 elements and size 4096.
  • Consumer is a separate thread, which takes a generated matrix, counts sum of all its elements and prints the sum to STDOUT.
  • There are only 1 Producer and 2 Consumers.
  • Counting sum of matrix elements should be parallelized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant