I tried this before, and it still didnt work, and I also tried mutex to try to see what is the problem, and even with mutex, j=P->column was always 3.
void* multiply_rows(void* dat)
{
data*...
Type: Posts; User: Ivan Mili
I tried this before, and it still didnt work, and I also tried mutex to try to see what is the problem, and even with mutex, j=P->column was always 3.
void* multiply_rows(void* dat)
{
data*...
So I'm working on multipling 2 matrices in C++ using threads.
This is the code:
#include<iostream>#include<cstdlib>
#include<pthread.h>
using namespace std;
const int m=5;
const int n=4;