I am trying to write an application (console based) where one thread reads information from the console and another thread prints the same information back to the console.
I am stuck with the implementation of the sync logic.
Can anyone send me some samples.
John
If you mean C ++, you can find a sample here:
Using critical section objects