Modify the previous program such that main thread declares and defines a new variable count…

Q2b) Modify the previous program such that main thread declares and defines a new variable count (make it equals t0 10 for example). Then, it passes the variable count as an argument to the child thread. The child thread then prints out all the numbers from 1 up to the value of count (i.e. the main thread will pass the count value to the child thread instead of using the fixed 5 value in the child thread).Q2c) What happens if we remove the line pthread_join(hThread, NULL); from the main thread? (make the value of count >= 15 for example). Show the output of the program? and Explain why did we get this screenshot output?

"Is this question part of your assignment? We can help"

ORDER NOW