Jump to content

Recommended Posts

Posted

Should we use Mutex to prevent writing on same file / device by 2 or more threads?

 

Any alternate suggestion?

 

Nbird

Posted

In general, yes a mutex is fine. use it to control access to the shared resource. If you are doing something more demanding (video for example) you might want to use a more sophisticated mechanism to minimize possibility of blocking etc.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines