Home  >  Article  >  Backend Development  >  Properties of Thread class

Properties of Thread class

WBOY
WBOYforward
2023-09-06 12:05:061314browse

Thread 类的属性

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

The following are the attributes of the Thread class-

CurrentContext

Get the current context in which the thread is executing.

Mr. Number Attributes and Description
1
2 CurrentCulture

Gets or sets the culture of the current thread.

3 CurrentPrinciple

Gets or sets the current principal of the thread (for role-based security).

td>

4 currentThread

Get the currently running thread.

td>

5 CurrentUICulture

Gets or sets the current resource manager uses to find the culture Culture - A specific resource at runtime.

6 ExecutionContextGet an ExecutionContext object that contains various information about the current thread contextual information.

7 IsAlive

Get the value of the current thread execution status.

8 IsBackground

Gets or sets a value indicating whether the thread is a background thread .

9 IsThreadPoolThread

Gets a value indicating whether the thread belongs to a managed thread pool.

10 ManagedThreadId

Get the unique identifier of the current managed thread. p>

11 Name

Gets or sets the name of the thread.

12 Priority

Gets or sets the value indicating the thread's scheduling priority.

The above is the detailed content of Properties of Thread class. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete