Loading...
Software

Multi-threading in C 2023

In a project exploring the pthread.h library in C, I tackled two mathematical problems using threads. First, I computed the sum of an N x N matrix by creating N threads, each summing a unique row. Using mutexes to ensure thread-safe access to the global sum variable. Second, I solved a system of linear equations (AX = B) via concurrent threads, using Gauss elimination with row reduction, back substitution, and partial pivoting, using mutexes and barriers to coordinate thread operations.

mutexbarrier
© 2026 Mitchell Kolb. All Rights Reserved.