Solved

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

Posted on 2009-06-29
5
336 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

685 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