Solved

Monitor the threads created by windows application done in c#.

Posted on 2009-06-29
5
328 Views
Last Modified: 2013-12-17
Hi experts,

I want to monitor the threads created by windows application done in c#.
Since the project is big and i use lot of threads in my code, i want to
keep track of the threads created.

I need some idea like, i want to write the Thread name created ny application
in sequence, number of threads running and status of the thread.

All i need is Monitoring the threads and write them inside log file.
How to achive this???.
0
Comment
Question by:srk1982
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

by:elimesika
ID: 24734306
0
 

Author Comment

by:srk1982
ID: 24734408
Hi elimesika,

     I read that artilce already, but it is for monitoring all the processes in the system. Moreover i need to write the info of thread in a log file whenever there
are changes in the application threads

Thanks...
0
 
LVL 19

Expert Comment

by:elimesika
ID: 24735628
HI again

First , you can adapt  the sample to display just your process thread, the method receives a process Id ...

What do you mean by "whenever there are changes in the application threads"
do you mean that you will have to implement some kind of listener on the thread state change ??? or a solution that uses pooling to monitor thread state is OK???
0
 

Author Comment

by:srk1982
ID: 24742200
Yes elimesika, i want a Listener for monitoring the threads states, new threads created,
and threads disposed.

Thanks.
0
 
LVL 19

Accepted Solution

by:
elimesika earned 500 total points
ID: 24803270
Sorry for the delay (have lot of work to do)
Anyway

It seems that you will have to write a custom manager class and manage it by yourself.

I am loaded with work now, so , I will be able only to give advice

Good Luck
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now