当前位置:网站首页>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 .
边栏推荐
- Global and Chinese market of anion sanitary napkins 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese market of water massage column 2022-2028: Research Report on technology, participants, trends, market size and share
- 《canvas》之第3章 曲线图形
- Thread blocking
- Selector (>, ~, +, [])
- Explain the input attribute in PHP (hide the read-only restriction)
- RDD的执行原理
- 【NILM】非入侵式负荷分解模块nilmtk安装教程
- Hubei College Upgraded to undergraduate - Hushi family planning department
- MySQL case: analysis of full-text indexing
猜你喜欢

Blue Bridge Cup seven segment code (dfs/ shape pressing + parallel search)

RDD的执行原理

Combine with (& &) logic or (||), dynamic binding and ternary operation

语料库数据处理个案实例(读取多个文本文件、读取一个文件夹下面指定的多个文件、解码错误、读取多个子文件夹文本、多个文件批量改名)

语料库数据处理个案实例(句子检索相关个案)

uniapp uni-app H5 端如何取消 返回按钮的显示 autoBackButton不生效

2022年PMP项目管理考试敏捷知识点(1)

LeetCode 207:课程表(拓扑排序判断是否成环)

Cloud development who is the source code of undercover applet

Win10 build webservice
随机推荐
How VPN works
MySQL case: analysis of full-text indexing
2022年PMP项目管理考试敏捷知识点(1)
免费ICP域名备案查接口
Deploy L2TP in VPN (medium)
L2tp/ipsec one click installation script
What kind of experience is it when the Institute earns 20000 yuan a month!
Maxcompute remote connection, uploading and downloading data files
Group policy disables command prompt bypass
Combine with (& &) logic or (||), dynamic binding and ternary operation
Global and Chinese market of basketball uniforms 2022-2028: Research Report on technology, participants, trends, market size and share
Experience of Shenzhou computer
Reconfiguration of nebula integration testing framework based on BDD theory (Part 2)
L2TP connection failure guide in VPN
Global and Chinese markets for food puffers 2022-2028: Research Report on technology, participants, trends, market size and share
js实现查看一个数组对象中是否包含另一个数组对象中的值
MSSQL high permission injection write horse to Chinese path
位运算
Deploy L2TP in VPN (Part 1)
GPU is not used when the code is running