473,396 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to get current thread id

How do I get the current thread ID in C# 2.0? I know there is a deprecated
one, but I can't find it. Also, is there another, not deprecated way, of
finding the thread id?
May 11 '06 #1
1 13512
us thead.ManagedTheadId in lue of

http://msdn.microsoft.com/netframewo...ce.aspx#System

"Joachim" wrote:
How do I get the current thread ID in C# 2.0? I know there is a deprecated
one, but I can't find it. Also, is there another, not deprecated way, of
finding the thread id?

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

May 11 '06 #2

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

Similar topics

0
by: Karthey | last post by:
Getting "Could not instantiate ActiveX control because the current thread is not in a single-threaded apartment. " error while using AxMSComLib control. I am working on a Web Application. My...
6
by: Vladimir | last post by:
May be it's not obvious what am i asking for... I have 2 threads in my application. The first thread responds for the user interface and sending key combinations, the second thread listening...
5
by: Claire | last post by:
Ive a static logging routine that's called by all my objects in the application. Ive several threads running in my application and Id like the log file to show the thread ID so I can trace a...
1
by: Howard Weiss | last post by:
I would like to know what thread my form is running on in a Managed C++ Windows Form Application I tried using namespace System::Diagnostics; using namespace System::Threading; and...
1
by: Manu | last post by:
I have created a new culture : Dim objCulture As New CultureInfo("he") //hebrew When I tried to assign it to the current thread. Thread.CurrentThread.CurrentCulture = objCulture...
5
by: Mike | last post by:
Hi, How I can get access to current thread. I want to pause it for some seconds. MyThread.Sleep(2000) Thanks
0
by: Ben | last post by:
module main ... application.run(new splashform) .. end module after a few screen, I try to load a new codes I got from MSDN on datagrid that works on its own. I took out submain and ran...
15
by: nelsonbrodyk | last post by:
Hey All, Just curious, does anyone know if there is a way to check if the current executing thread is the main WPF GUI thread? I want to have it so that a non-threaded remoting call will fail if...
2
by: tamirmalas | last post by:
Hi, iam trying to set a culture info different than the current culture info on the system, the code compiles fine, but nothing happens, and the system culture is the one used for the program. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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...

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.