
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 |
---|---|
1 |
CurrentContext Gets the current context in which the thread is executing. |
2 |
CurrentCulture Gets or sets the culture for the current thread. |
3 |
CurrentPrinciple Gets or sets the thread's current principal (for role-based security). |
4 |
currentThread Gets the currently running thread. |
5 |
CurrentUICulture Gets or sets the current culture used by the Resource Manager to look up culture-specific resources at run-time. |
6 |
ExecutionContext Gets an ExecutionContext object that contains information about the various contexts of the current thread. |
7 |
IsAlive Gets a value indicating the execution status of the current thread. |
8 |
IsBackground Gets or sets a value indicating whether or not a thread is a background thread. |
9 |
IsThreadPoolThread Gets a value indicating whether or not a thread belongs to the managed thread pool. |
10 |
ManagedThreadId Gets a unique identifier for the current managed thread. |
11 |
Name Gets or sets the name of the thread. |
12 |
Priority Gets or sets a value indicating the scheduling priority of a thread. |
Advertisements