当前位置:网站首页>Thread considerations
Thread considerations
2022-06-24 07:47:00 【Fog dispels eyesight】
Thread considerations
How the thread ends :
1 Thread functions return This is a normal exit
2 ExitThread
This function will terminate the thread , And causes the operating system to clear all operating system resources used by the thread . however ,C++ resources ( Such as C++ Class object ) Will not be revoked . For this reason , It's best to return... From a thread function , Instead of calling ExitThread Come back to .
Of course , have access to ExitThread Of dwExitThread Parameter tells the system why to set the exit code of the thread .ExitThread The function does not return any value , Because the thread has terminated , Can't execute more code .
3 TerminateThread
This kind of situation , Do not release the stack resources of the thread
4 The process exited .
边栏推荐
- 本地备份和还原 SQL Server 数据库
- 《canvas》之第4章 线条操作
- Tencent cloud security and privacy computing has passed the evaluation of the ICT Institute and obtained national recognition
- Virtual machine security disaster recovery construction
- BOM笔记
- How VPN works
- Several misunderstandings of VPN
- Group policy disables command prompt bypass
- MSSQL high permission injection write horse to Chinese path
- Detailed explanation of C language compilation, link and operation
猜你喜欢
图形技术之管线概念
本地备份和还原 SQL Server 数据库
Maxcompute remote connection, uploading and downloading data files
Selector (>, ~, +, [])
【008】表格数据逐行筛选,跳出for循环及跳过本次循环思路_#VBA
Baidu map, coordinate inversion, picking coordinate position
『C语言』系统日期&时间
Free ICP domain name filing interface
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its
Win10 build webservice
随机推荐
Global and Chinese market of anion sanitary napkins 2022-2028: Research Report on technology, participants, trends, market size and share
POM configuration provided and test
Knowledge points of 2022 system integration project management engineer examination: ITSS information technology service
2.1.1 QML grammar foundation I
Terminal network in VPN client connection settings of router
Thread blocking
MySQL case: analysis of full-text indexing
Detailed explanation of C language compilation, link and operation
Super fast reading in OI
How to realize high stability and high concurrency of live video streaming transmission and viewing?
First acquaintance with JUC - day01
RDD的执行原理
Teach you how to use the reflect package to parse the structure of go - step 2: structure member traversal
《canvas》之第4章 线条操作
报错“Computation failed in `stat_summary_hex()`”
交友相亲类软件是如何割你韭菜的
Baidu map, coordinate inversion, picking coordinate position
Global and Chinese market of offshore furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
Shell script for MySQL real-time synchronization of binlog
UTC、GMT、CST