Properties of the Thread Class


A thread is defined as the execution path of a program. Each thread defines a unique flow of control.

The following are the properties of the Thread class −

Sr.No.Property & Description
1CurrentContext
Gets the current context in which the thread is executing.
2CurrentCulture
Gets or sets the culture for the current thread.
3CurrentPrinciple
Gets or sets the thread's current principal (for role-based security).
4currentThread
Gets the currently running thread.
5CurrentUICulture
Gets or sets the current culture used by the Resource Manager to look up culture-specific resources at run-time.
6ExecutionContext
Gets an ExecutionContext object that contains information about the various contexts of the current thread.
7IsAlive
Gets a value indicating the execution status of the current thread.
8IsBackground
Gets or sets a value indicating whether or not a thread is a background thread.
9IsThreadPoolThread
Gets a value indicating whether or not a thread belongs to the managed thread pool.
10ManagedThreadId
Gets a unique identifier for the current managed thread.
11Name
Gets or sets the name of the thread.
12Priority
Gets or sets a value indicating the scheduling priority of a thread.

Updated on: 22-Jun-2020

4K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements