473,718 Members | 2,060 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Any Connection between ProcessThread and Thread?

Is there anyway to connect a ProcessThread and a Thread object?

When a debug event is notified, I receive a thread ID. I would like to get
the name of this thread, but ProcessThread (which is what it is an ID for)
does not have a name property. Thread objects do have a name property, but
no ID property. Is there any connection, or is there a way to link one to
the other?

TIA

Charles
[He's here with his questions again, I hear you cry]
Nov 20 '05 #1
2 5883

Is there anyway to connect a ProcessThread and a Thread object?

When a debug event is notified, I receive a thread ID. I would like to get
the name of this thread, but ProcessThread (which is what it is an ID for)
does not have a name property. Thread objects do have a name property, but
no ID property. Is there any connection, or is there a way to link one to
the other?

TIA

Charles
[He's here with his questions again, I hear you cry]


Have you find any answer for this question I am also interested in it

Thanks
User submitted from AEWNET (http://www.aewnet.com/)
Nov 21 '05 #2
"Note An operating-system ThreadId has no fixed relationship to a managed
thread, because an unmanaged host can control the relationship between
managed and unmanaged threads. Specifically, a sophisticated host can use
the CLR Hosting API to schedule many managed threads against the same
operating system thread, or to move a managed thread between different
operating system threads."

As I understand it, the ProcessThread class refers to an operating system
thread while the Thread class refers to a managed thread.

--
Jonathan Allen
"dotnethasy ou" <dotnethasyou@a ew_nospam.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..

Is there anyway to connect a ProcessThread and a Thread object?

When a debug event is notified, I receive a thread ID. I would like to
get
the name of this thread, but ProcessThread (which is what it is an ID
for)
does not have a name property. Thread objects do have a name property,
but
no ID property. Is there any connection, or is there a way to link one to
the other?

TIA

Charles
[He's here with his questions again, I hear you cry]


Have you find any answer for this question I am also interested in it

Thanks
User submitted from AEWNET (http://www.aewnet.com/)

Nov 21 '05 #3

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

Similar topics

0
1420
by: oren | last post by:
how to retrieve the executing method from the ProcessThread.StartAddress ?
26
16512
by: Rajeev Tipnis | last post by:
http://support.microsoft.com/default.aspx?scid=kb;en- us;819450 Questions: 1) Is this patch (fix) applicable to the .NET 1.1 Framework as well? That is, if we have Framework 1.1 (On Win2K3/IIS6.0), do we still need this patch? 2) Does it specifically solve only this error: The underlying connection was closed. An unexpected error
1
12135
by: mingki | last post by:
Hi Developers, I am a .Net developer of a Large Online Retailling Company. I would like to have your help on a Connection Pool issue. Recently we have developed a Web Application on ODP .Net to work with Oracle Database 10g. To gain the performance, connection pool enable is a must. Everything work fine throughout the development period and the performance is Great, however while the Web Application is deployed to the production,...
3
7505
by: MegaGreg | last post by:
I'm trying to inherit from System.Diagnostics.ProcessThread but I keep getting the same error no matter what I try:The namespace 'CSRSystem' already contains a definition for 'Program' None of these pieces of code work: using System.Diagnostics; namespace CSRSystem { class Program : ProcessThread{ }
29
7058
by: Bryce K. Nielsen | last post by:
Suddenly this week, I've started getting this error message: System.Data.SqlClient.SqlConnection(GetOpenConnection)ExecuteNonQuery requires an open and available Connection. The connection's current state is connecting. I'm very puzzled since I'm not calling "ExecuteNonQuery" and I am calling "Open", which I've always assumed was Synchronous, i.e. would not return until either A) the connection was open or B) there was an error. Here...
1
6156
by: Steph | last post by:
hello, i ve create a stress test prog for IIs. And now i want know the domain name of the process... PID = virtual domaine name ID; ProcessThreadCollection ThreadList = Process.GetProcessById(PID).Threads; foreach (ProcessThread TempThread in ThreadList) { int ProcessIDChild = TempThread.Id; string PIDname = ??; // i want retrieve : www.johndoe.com
1
4812
by: lesani | last post by:
hi, i want to find out stacktrace of a thread that is only have its thread id (which have created in vc++ project), i can find processthread by searching in ids of System.Diagnostics.Process.GetCurrentProcess().Threads but how can find stacktrace while stacktrace constructor only accept system.threading.thread but not system.diagnostics.processthread? tanx
167
8302
by: darren | last post by:
Hi I have to write a multi-threaded program. I decided to take an OO approach to it. I had the idea to wrap up all of the thread functions in a mix-in class called Threadable. Then when an object should run in its own thread, it should implement this mix-in class. Does this sound like plausible design decision? I'm surprised that C++ doesn't have such functionality, say in its STL. This absence of a thread/object relationship in...
0
1640
by: chivateatul | last post by:
How to retrive method information from ProcessThread.StartAddress?
0
8724
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9208
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...
1
9121
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7991
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
6654
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
5971
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
4481
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4743
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3182
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.