Hi
I was trying to do sample code to understand multithreading in MFC
I have a scenario as mentioned below.
Thread A ->Should Write to a buffer
Thread B ->Should Write to buffer after Thread A completes
Thread C ->Should Write to buffer after Thread A and B completes .
Thread D ->Reads from the buffer and send it to printer driver.
So as mentioned above,three thread is writing to a buffer one by one and one thread is reading from that buffer.
can anyone give me a flow chart or sample code for this how can we implement this case.
Thanks
Abhi
Sam HobbsPosted Jan 21, 2010, 3:23 PM
This site (c-sharpcorner.com) is by definition for C#, therefore there is not so much about MFC. I have an article in my web site that should help you; see my Events for Threads.
Abhi MFCPosted Jan 20, 2010, 11:44 PM
Sam HobbsPosted Jan 20, 2010, 11:01 AM