Number of threads in a .NET exe

  • Thread starter Thread starter Glenn Dekhayser
  • Start date Start date
G

Glenn Dekhayser

Does anyone know how I can increase the number of threads that my
executable file will create? Right now, it max's out at 13 or 14 and
won't go higher than that, even when it's called for. I'm using a
fileSystemWatcher component (it would be great if I could find
something that works better than that), that creates a new instance of
a class for every file that's created. If more than 14-20 files get
laid down at once, my program hoses without an error, the
fileSystemwatcher doesn't generate the events.

I 'think' it's related to how many threads the app can create. Is
this an OS parameter or something with my app?

Thanks in advance,

Glenn Dekhayser
 
How are you creating the threads? From the thread pool?

Do you actualy need to 14+ thread at one time or can you que the process
once you have been notified it is available.
 
Back
Top