Question: 2.2 Thread. Description: Create a thread of function mythread(} in the main function and wait until it finishes. Requirements: 1. Before creating the thread, print
2.2 Thread. Description: Create a thread of function "mythread(\}" in the main function and wait until it finishes. Requirements: 1. Before creating the thread, print a message "A thread is going to be created." in the main thread. 2. In the function "mythread()", print messages "Counting..." 10 times. 3. After executing the thread, print message "Done executing thread." in the main thread. -C language is recommended but you can use whatever languages. You can use "pthread" in C (https://www.geeksforgeeks.org/multithreading-c-2/)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
