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 HobbsRank #107 · 20.5K reputationPosted Jan 20, 2010, 6:01 AM EST
Abhi MFC9 reputationPosted Jan 20, 2010, 6:44 PM EST
Sam HobbsRank #107 · 20.5K reputationPosted Jan 21, 2010, 10:23 AM EST
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.