This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Need of fflush in multithreaded program

Hi,

We have a application containing multiple thread. File operations are handled in multiple threads.
Will the fwrite() return only after sending the data to the lower driver or do we need to invoke fflush() after fwrite() to ensure the complete data is written before file close.

Thanks for your support.
Priya

Parents Reply Children
No data