Skip to content

A C++ program that creates and manipulates integer matrices. The program calculates row- and column-wise statistics (average, count above/below average) using threads for concurrency.

Notifications You must be signed in to change notification settings

D-Integral/Matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

A C++ program that creates and manipulates integer matrices. The program calculates row- and column-wise statistics (average, count above/below average) using threads for concurrency.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages