Click here to Skip to main content
15,885,842 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have many executables in my software which opens and closes the same files.
Is there any way to share the open file handles between process ?
Posted

1 solution

Each process should be responsible for opening ad closing its own files. When the process opens the files, they should open them with non-exclusive read AND write. Sharing open file handles is not recommended.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900