Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use threads and queue in VC++

I want to use two queues where the 1st queue will push the data to the queue and the 2nd thread will remove the data from the queue. Can somebody help me plz on implementing this in VC++?

I am new to the threads and queue.


1 Answers

This is the producer / consumer problem, here is one implementation of it in c++

like image 71
tarn Avatar answered Feb 03 '26 08:02

tarn