Question: C++ Programming on OS In this task, you will be testing threads using static and non-static member functions. You are required to write a C++
C++ Programming on OS 
In this task, you will be testing threads using static and non-static member functions. You are required to write a C++ program that passes a static member function to a pthread_create() function. Things to note in this task. You will be required to use function pointers in your code so I would advise you read about them if not done so in Task 3 already. Your program should create a new thread from a non static member function. Then use the thread-ID to create and execute the second thread for the static member function. This can help: https: //www.tutorialspoint.com/cplusplus/cpp_ class_member_functions.html. Your program should display an error in case the thread was not created. Your output should look something like this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
