473,813 Members | 3,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Thread Collections

I may be missing something simple, but I cannot find any way to get a
collection of managed threads in a process. What am I missing?

Steve
(P.S. When I say managed, I mean System.Threadin g.Thread, not
System.Diagnost ics.ProcessThre ad).
Jun 21 '06 #1
3 1367
Hi Steve,

I don't think your missing anything.

What do you need from Thread that ProcessThread doesn't provide?

"Steve Foster" <no****@nospam. com> wrote in message
news:WZ******** ************@bt .com...
I may be missing something simple, but I cannot find any way to get a
collection of managed threads in a process. What am I missing?

Steve
(P.S. When I say managed, I mean System.Threadin g.Thread, not
System.Diagnost ics.ProcessThre ad).

Jun 21 '06 #2
I need the thread name. It's an app for processing BEEP messages and which
creates threads per BEEP channel and BEEP session. I need to check that the
threads are starting up and closing down as expected. I could do it
explicitly in code, but I'd hoped there be a simple way to do it.

Steve
"Dave Sexton" <dave@jwa[remove.this]online.com> wrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
Hi Steve,

I don't think your missing anything.

What do you need from Thread that ProcessThread doesn't provide?

"Steve Foster" <no****@nospam. com> wrote in message
news:WZ******** ************@bt .com...
I may be missing something simple, but I cannot find any way to get a
collection of managed threads in a process. What am I missing?

Steve
(P.S. When I say managed, I mean System.Threadin g.Thread, not
System.Diagnost ics.ProcessThre ad).


Jun 21 '06 #3
Hi Steve, probably it does not have any short card. Play with the
threadstate perhpas.
http://msdn2.microsoft.com/en-us/lib...readstate.aspx

chanmm

"Steve Foster" <no****@nospam. com> wrote in message
news:WZ******** ************@bt .com...
I may be missing something simple, but I cannot find any way to get a
collection of managed threads in a process. What am I missing?

Steve
(P.S. When I say managed, I mean System.Threadin g.Thread, not
System.Diagnost ics.ProcessThre ad).

Jun 22 '06 #4

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

Similar topics

2
5234
by: David | last post by:
Hi guys I have in my application many collections (HashTable and ArrayList)loaded with configuration data, that means they are loaded at startup and then they are accessed only for read-only (items are only retrieved, never added, removed or replaced). To be thread-safe after startup do I need to made them Synchronized (and so slower), or are they thread safe in such case ? Thanks in advance
7
439
by: Ivan | last post by:
Hi there My work on threads continues with more or less success. Here is what I'm trying to do: Class JobAgent is incharged for some tasks and when it's called it starts thread which performs the job. Application contains one list of agents that are idle at the moment and list of busy agents. In loop it checks if there are agents in idle list and if there are some, it starts them.
2
3232
by: Jack | last post by:
How does dotnet handles thread safety of Collections ? I derived some classes from CollectionBase and DictionaryBase, and created some typed Add, Remove methods to call typeless based Add, Remove methods. Do I have to handle the locking myself ? If one thread gets the IEnumerator, and iterate it. What happens when another thread wanna add things to the collection ? Thanks
2
1515
by: S | last post by:
Hi there, I'm building an application that makes heavy use of centralized static methods (and variables) and would just appreciate hearing someone grade my understanding of the concept. In probably common fashion, my static methods are typically in the DAL of my web application. I don't have any concerns about the methods, but a lot of collections (ArrayLists, custom collections inheriting from System.Collections.CollectionBase, etc)...
8
4857
by: Pieter | last post by:
Hi, I'm having some weird problem using the BackGroundWorker in an Outlook (2003) Add-In, with VB.NET 2005: I'm using the BackGroundWorker to get the info of some mailitems, and after each item I want to raise the ProgressChanged-event to update the DataGridView. It works fine when only one Progresschanged is fired, but at the second, third, fopurth etc it raises everytile a 'Cross-thread operation not valid"-exception on lmy...
12
31964
by: Andrew Bullock | last post by:
Hi, I'm using a second thread within my program to do some long calculations, without locking up the UI: worker = new Thread(new ThreadStart(myClass.Run)); worker.Start(); I want to be able to pause the calculating, so I'm using
6
16721
by: les | last post by:
Here's a class which uses 2.0 generics to implement an inter-thread message queue in C#. Any number of threads can post and read from the queue simultaneously, and the message object can be any type. There's a test driver at the bottom which demonstrates usage. /*-----------------------------------------------------------------------------------------------------*/ using System; using System.Collections.Generic;
8
5376
by: =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post by:
I'm trying to figure out how to modify a panel (panel1) from a backgroundworker thread. But can't get the panel to show the new controls added by the backgroundwork task. Here is my code. In this code there is a panel panel1, that I populate with a lable in the foreground. Then when I click on "button1" a backgroundworker thread in async mode is started. When the backgoundworker thread completes the thread returns a panel to populate...
6
3145
by: fniles | last post by:
I am using VB.NET 2003 and a socket control to receive and sending data to clients. As I receive data in 1 thread, I put it into an arraylist, and then I remove the data from arraylist and send it to the client. Before adding data to the arraylist, I check if the depth of the arraylist is longer than iMaxQueueDepth, and if it is, I clear the arraylist. Is it possible that while I am clearing the arraylist, the ThreadMain at the same time...
12
2083
by: Ronny | last post by:
Thanks Chris, Looks nice but I miss the dual way communication. In the main thread to deliver paramters and data to the worker thread- how can I do that? Regards Ronny Take a look at the background worker thread component. It has what you want built into it. http://msdn.microsoft.com/en-us/library/8xs8549b.aspx
0
9734
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10669
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10407
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10140
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9224
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7684
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5706
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3885
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.