?
Solved

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

Posted on 2009-06-29
5
Medium Priority
?
342 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

770 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