Multiple producers, single consumer

前端 未结 4 997
时光取名叫无心
时光取名叫无心 2020-12-03 11:58

I have to develop a multithreaded application, where there will be multiple threads, each thread generates custom event log which need to be saved in queue (not Microsoft MS

4条回答
  •  情歌与酒
    2020-12-03 12:24

    You can use a synchronized queue (if you have .NET 3.5 or older code) or even better the new ConcurrentQueue!

提交回复
热议问题