473,406 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Number of threads in a .NET exe

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
Nov 20 '05 #1
1 980
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.

"Glenn Dekhayser" <gd********@clearnetwork.com> wrote in message
news:d4**************************@posting.google.c om...
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

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Tzach | last post by:
I'm developing a simple Java client that runs over a CORBA server. The main client thread is waiting for notification from this server. On each notification, The client creates a new thread...
3
by: Ronan Viernes | last post by:
Hi, I have created a python script (see below) to count the maximum number of threads per process (by starting new threads continuously until it breaks). ###### #testThread.py import...
1
by: Hype | last post by:
When a query gets executed as parallel threads, how can we ascertain how many threads have been created for the query ? TIA Hype.
11
by: Mark Rae | last post by:
Hi, My R&D department has asked me to look at threading in a Web Service written in C#, so I came up with the following code: using System; using System.ComponentModel; using...
1
by: Novice | last post by:
Hi all, I have written some code that invokes a method a few hundred times and then it immediately finishes. I would like it to instead: 1. start the hundreds of threads (asynchronously) 2....
10
by: HK | last post by:
With VB.NET 2005, and a Windows Form, running on a dual CPU box, I need to take a recordset (e.g. 100,000 records) and spawn a thread to handle an internet XML transaction routine for each of the...
4
by: Amir Shitrit | last post by:
What is the maximum number of threads Windows supports (for all processes), and what's the maximum number of threads available per process? Thanks.
12
by: Paul Sijben | last post by:
I have a server in Python 2.5 that generates a lot of threads. It is running on a linux server (Fedora Core 6). The server quickly runs out of threads. I am seeing the following error. File...
1
by: =?Utf-8?B?UGF1bCBIYXRjaGVy?= | last post by:
I have a small program which has a large (~50K) number of objects which need to do work. I create a BackgroundWorker object and fire it off whenever each of the instances needs to do work; this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.