https://github.com/d-integral/matrix
By doing this task I passed the course "Parallel and Distributed Computing" in Kyiv Polytechnic Institute in 2013 with the grade 100/100.
https://github.com/d-integral/matrix
cplusplus multithreading posix
Last synced: 22 days ago
JSON representation
By doing this task I passed the course "Parallel and Distributed Computing" in Kyiv Polytechnic Institute in 2013 with the grade 100/100.
- Host: GitHub
- URL: https://github.com/d-integral/matrix
- Owner: D-Integral
- Created: 2017-11-03T12:24:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-06T11:33:09.000Z (over 2 years ago)
- Last Synced: 2025-01-13T11:14:59.413Z (over 1 year ago)
- Topics: cplusplus, multithreading, posix
- Language: C++
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Overview
A C++ program that creates and manipulates integer matrices. Users can fill the matrix manually or generate random values. The program calculates row- and column-wise statistics (average, count above/below average) using threads for concurrency. This was a student project exploring dynamic memory and multi-threading.
Details
This program demonstrates matrix creation, manipulation, and analysis using multi-threading in C++.
- Dynamically allocates a matrix of integers.
- Allows the user to fill the matrix manually or generate random values.
- Computes per-row and per-column statistics:
1) Average value (Middle)
2) Count of elements below average (Less)
3) Count of elements above average (More)
- Uses POSIX threads (pthread) to perform row and column calculations concurrently.
- Includes mutex locks to manage safe concurrent access to the matrix.
By doing this task I passed the course "Parallel and Distributed Computing" at Kyiv Polytechnic Institute in 2013 with the grade 100/100.