Write a multithreaded Win32 console application where: (a) The main thread creates a child thread with default stack size and name ‘Child_Thread’. (b) The main thread sends user defi ned messages and...


Write a multithreaded Win32 console application where: (a) The main thread creates a child thread with default stack size and name ‘Child_Thread’. (b) The main thread sends user defi ned messages and the message ‘WM_QUIT’ randomly to the child thread. (c) The child thread processes the message posted by the main thread and quits when it receives the ‘WM_QUIT’ message. (d) The main thread checks the termination of the child thread and quits when the child thread completes its execution. (e) The main thread continues sending random messages to the child thread till the WM_QUIT message is sent to child thread. (f) The messaging mechanism between the main thread and child thread is synchronous. Compile the application using Visual Studio and execute it under Windows OS.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here