3
Answers

Multithreading in MFC

Ask a question
Abhi MFC

Abhi MFC

14y
4.9k
1
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

Answers (3)