Question: Write a C program that computes the factorial of a number in a thread. Use pthreads. The number whose factorial is to be computed is
Write a C program that computes the factorial of a number in a thread. Use pthreads. The number whose factorial is to be computed is stored in the main thread. The main thread waits for the child to complete before displaying the result. Make sure to check all errors when dealing with threads.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
