I need to write a file reader function which will continuosly read a file being actively written to by another process. What is the best way to implement this blocking read efficiently ?
Yes, kind of like the "tail -f" command. Is there a way to block a read or fread call without going to sleep ? I want this function to do minimal CPU hogging.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.