Design a multithreading program to sort N vectors, each vector is of size M. Each thread should work on one vector. In addition each thread calculates the summation of each vector. You should put the total summation of all vectors as a global variable and use the semaphore MUTEX to protect it. The main method should print out the sorted vectors and the total sum of all vectors.
Note: This should be compiled in Linux server using gcc command.
and I should be able to run it there.
13 freelancers are bidding on average $92 for this job
Hi! I have years of C++ experience. I have read your requirements and I can do this immediately. I guarantee clean, understandable, and commmented C++ code.