Solved

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

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

15 Experts available now in Live!

Get 1:1 Help Now