File opening and Mutex

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ron Vecchi

    #1

    File opening and Mutex

    I have been using a System.Threadin g.Mutex to restrict file access to only
    one action at a time. I do this only to amke sure that the thread will wait
    until the Mutex is released because the action must be performed. Works
    great, but what if the file that is being opened will be accessed by several
    other applications.. Is there a more global sort of threading hold I can
    implement to insure that any thread will wait it's turn to access the file
    and thus not through an exception?


    Thanks

    Ron Vecchi


Working...