2
Answers

threads synchronization

Photo of shellno10

shellno10

21y
2k
1
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)