c# multiple instances of windows services and file reading

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jigsmshah
    New Member
    • Aug 2007
    • 14

    c# multiple instances of windows services and file reading

    I have a windows service developed in C#.I am reading the connection string from an ini file and also i am reading 3 image file from the bin directory.
    now the new requirement is that there will be multiple instances of the same windows service running.
    My concern is that will there be any problem when multiple instances will be reading those above mentioned file.I am not writing to any files in the service.
    If i try to use lock() when reading from file is taking place,will it be sufficient.
    is there any better way to handle, when the common resource (files) is used by multiple instances of the windows services
    Regards
    Jignesh
Working...