开发者

Win32 synchronization

开发者 https://www.devze.com 2022-12-28 11:59 出处:网络
I am trying to write an application (console based),in which one thread reads information from console and another thread prints the same information back to开发者_运维技巧 console.

I am trying to write an application (console based),in which one thread reads information from console and another thread prints the same information back to开发者_运维技巧 console.

I am stuck in implementing the synchronization logic .

Can anyone refer me some samples.

john


If you mean c++, you can find sample here:

Using Critical Section Objects

0

精彩评论

暂无评论...
验证码 换一张
取 消