Skip to content

Windows Service Running 2nd Instance

Jayakrishna

Asked Oct 3, 2007, 10:42 AM EDT1 answer
Share
LinkedInX

Hi, I'm new to C# programming.

I'm planning to write a Windows Service using C# .NET architecture which would monitor a folder for a specific files to appear (e.g., abc*.txt).  Then once one of the files found, then it would open it and read the contents and transform into different layout and write into another file.  Then move the original file into archive folder and then look for more files.

I think that whatever I described so far can be acheived and it would work ok.  Now what happens if I run the second instance of this service in the system.  Would that result in dead-lock situation?  First of all, is it allowed to run multiple instances of the same service in Windows?

Please share your thoughts and concerns.

Thanks much, Jack

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.