shellno10

shellno10

  • NA
  • 10
  • 0

threads synchronization

Jul 2 2004 8:36 AM
i want to create a thread that reads from a file into a buffer and another thread that would write from the buffer into another file. how to make sure that read thread has read some bytes before writing from the buffer, and how to make sure that write thread has wrote the data in the buffer before reading in new data.

Answers (2)