Question: 1. Write a program that will create three user level threads. Inside one thread take input of two numbers, inside second thread make a choice

1. Write a program that will create three user level threads. Inside one thread take input of two numbers, inside second thread make a choice (i.e. press 1 for addition operation and press 2 for subtraction operation of that two numbers and inside the last thread display the result of corresponding operations(add or subtract) according to the selection in thread 2. In the main function create a child and inside the child call all these threads to perform your operations. Inside the parent method just display "Operations are done! Congrats. You must ensure that the main function must wait until all the child and thread execution terminated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
