tags:

views:

15

answers:

1

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

+1  A: 

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

Using Critical Section Objects

Eugene