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:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.