Page 1 of 1

Question: Write a program in shell using threads. Each thread must be doing one of the task mentions below. One task mus

Posted: Sat May 14, 2022 3:54 pm
by answerhappygod
Question: Write a program in shell using threads. Each thread
must be doing
one of the task mentions below. One task must be completed and then
other
task should be started. Use pthread_join() system call to make the
thread
wait for the other thread completion. Get the input at the start
and use these
numbers in all threads. The numbers must consist of four digits at
least. i.e
1234.
a) Finding largest of three numbers
b) Reversing the largest number
c) Sum of individual digits of a 4-digit number (1234 ->
1+2+3+4=10)