473,385 Members | 1,357 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,385 software developers and data experts.

call stack tracing for Threads in Thread pool

Hey,

I am using delegates for asynchoronus communication. Its internally use
threads from thread pool.
I want to know whether this thread pool is on Application level or
System level?

If this is on system level, IS there any way to find out ,How many
thread my appliaction is using at any point of time?

My requirement is that whenever any thing goes wrong or an exception is
thrown out in my system, I need to dump thread state/ and its call
stack into a log file.

In this system most of the task are executed by delegaes in
asynchronous mode. If all those thread are created by us then we can
easily manage this situation.
Is their any other approach?

Thanks
Rakesh
Agilent Technology International

Nov 17 '05 #1
2 2400
Each app has it's own thread pool.

If you need to keep track of how many threads are in use and/or get
references to them, create a ThreadPoolProxy class that declares a
WaitCallback delegate and provides information about started/finished
state, access to the thread itself, and a way to iterate them.

HTH,

Sam

On 16 Aug 2005 02:57:10 -0700, "Rakesh" <as********@gmail.com> wrote:
Hey,

I am using delegates for asynchoronus communication. Its internally use
threads from thread pool.
I want to know whether this thread pool is on Application level or
System level?

If this is on system level, IS there any way to find out ,How many
thread my appliaction is using at any point of time?

My requirement is that whenever any thing goes wrong or an exception is
thrown out in my system, I need to dump thread state/ and its call
stack into a log file.

In this system most of the task are executed by delegaes in
asynchronous mode. If all those thread are created by us then we can
easily manage this situation.
Is their any other approach?

Thanks
Rakesh
Agilent Technology International


Nov 17 '05 #2
Thanks for replying , but now on this stage I can not change all
BeginInvoke call to WaitCallBack mechanism. Is there any way to find
out which thread is runing for an particular asynchronous delegate.

Or we need to simulate all framework itself?

Thanks
Rakesh

Nov 17 '05 #3

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

Similar topics

8
by: AnalogKid | last post by:
Short question: What's the difference between SingleUse and MultiUse ? Long question: I've been writing some sample code to see how different Instancing values and threading models work. I...
1
by: Daylor | last post by:
hi. i have application with 2 appdomain , and 2 threads (win32 threads(not logical threads)). i want to call the "remote" object on the second appdomain in async way, so the method will execute...
6
by: Max Adams | last post by:
Threads and ThreadPool's If I use a ThreadPool how can I tell when a thead in the threadpool has exited? I don't want to set a global member variable I would much rather be able to act on an...
9
by: Eric Sabine | last post by:
Can someone give me a practical example of why I would join threads? I am assuming that you would typically join a background thread with the UI thread and not a background to a background, but...
6
by: Quiet Man | last post by:
Hi all, I'm designing a fairly simple service that will run on W2K/SP4 and W2K3 servers. It's job is to be a very specialized database server that listens on a given IP address / TCP port and...
11
by: Peter Kirk | last post by:
Hi there I am looking at using a thread-pool, for example one written by Jon Skeet (http://www.yoda.arachsys.com/csharp/miscutil/). Can anyone tell me if this pool provides the possibility to...
0
by: Daylor | last post by:
hi. i have application with 2 appdomain , and 2 threads (win32 threads(not logical threads)). i want to call the "remote" object on the second appdomain in async way, so the method will execute...
0
by: TY | last post by:
Hi Everyone, I have a multithreading application, a typical Main thread that uses the ThreadPool.QueueUserWorkItem method to add new threads to the Thread POOL. I need a way to control the...
5
by: Stephen Barrett | last post by:
I have read many threads related to async fire and forget type calls, but none have addressed my particular problem. I have a webpage that instantiates a BL object and makes a method call. The...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.