Home > Backend Development > C++ > Properties of Thread class

Properties of Thread class

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2023-09-06 12:05:06
forward
1389 people have browsed it

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template