By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,688 Members | 1,226 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,688 IT Pros & Developers. It's quick & easy.

c# multiple instances of windows services and file reading

P: 14
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
Sep 17 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.