1
Answer

Windows Service Running 2nd Instance

Jayakrishna

Jayakrishna

17y
1.9k
1

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

Answers (1)