Question: / / / / / / / / / / / / / / / / / / / / / / / / /
TODO:: Create a function to process in this case just print the 'work'
generated by the Joinable and Detached threads that were created in main. The
purpose of this function is to delay the printing of 'work' until it's been generated.
You must also print out the thread ID along with the work value.
Note: You are required to use a std::promise to implement this logic.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
