In a windows service project in c# I create 2 threads to execute 2 jobs. When looking at the process explorer tool I see more than 30 threads created for the process. Debugging through my code I don't see more than 2 threads being created. I'm not sure why I'm seeing so many threads for the process in the process explorer.
The threads are supposed to run every 2 minutes so I call Thread.Sleep(time).
Any ideas why I'm seeing so many threads in my process explorer?
The jist of what I'm seeing is shown below, but instead of 4 threads I'm saying a whole lot more:
Process PID Type Name
MyService.vshost.exe 1234 Thread MyService.vshost.exe(1234) 1265
MyService.vshost.exe 1234 Thread MyService.vshost.exe(1234) 6528
MyService.vshost.exe 1234 Thread MyService.vshost.exe(1234) 3175
MyService.vshost.exe 1234 Thread MyService.vshost.exe(1234) 5325
Thanks in advance.
