当前位置: 首页 > news >正文

c++ windows 之下 CreateThread vs CreateProcess

微软的解释,作个地址备注:

https://docs.microsoft.com/en-us/windows/win32/procthread/processes-and-threads

Processes and Threads

  • 05/31/2018

An application consists of one or more processes. A process, in the simplest terms, is an executing program. One or more threads run in the context of the process. A thread is the basic unit to which the operating system allocates processor time. A thread can execute any part of the process code, including parts currently being executed by another thread.

  • Process and Thread Reference
  • Using Processes and Threads
  • About Processes and Threads
  • What's New in Processes and Threads

job object allows groups of processes to be managed as a unit. Job objects are namable, securable, sharable objects that control attributes of the processes associated with them. Operations performed on the job object affect all processes associated with the job object.

thread pool is a collection of worker threads that efficiently execute asynchronous callbacks on behalf of the application. The thread pool is primarily used to reduce the number of application threads and provide management of the worker threads.

fiber is a unit of execution that must be manually scheduled by the application. Fibers run in the context of the threads that schedule them.

User-mode scheduling (UMS) is a lightweight mechanism that applications can use to schedule their own threads. UMS threads differ from fibers in that each UMS thread has its own thread context instead of sharing the thread context of a single thread.

相关文章:

  • libusb源码学习:list_entry
  • libusb源码学习:几个函数加载的宏(windows)
  • MCU_如何通过硬件VID 查找生产厂家
  • MCU_WireShark USB抓包内容解析
  • MCU_Wireshark USB 抓包过滤(抓特定端口地址)
  • STM32F4xx usb库源码详解 custom HID
  • STM32F4xx usb库源码详解:HAL_PCDEx_SetRxFiFo 和 HAL_PCDEx_SetTxFiFo
  • Libuv 1.34.2 源码详解 ---- 以uvCat为例讲解
  • 步进电机的细分驱动中1-2相, W1-2相, 2W1-2相, 4W1-2相 表示什么意思?
  • MCU_关于STM32Fxxx中断EXTI产生时多次(两次)进入中断的原因
  • MCU_通过windows串口API控制RTS和DTR
  • MCU_STM32的HAL库中的宏DMA_FLAG_TCIF0_4/DMA_FLAG_TCIF1_5/DMA_FLAG_TCIF2_6/DMA_FLAG_TCIF3_7
  • LWIP_TCP如何理解数据发送,何时使用tcp_recved函数
  • MCU_使用STM32CUBEMX配置STM32F107/407 RMII-ETHERNET要注意的细节:PHY Address和MCO时钟
  • MCU_STM32CUBEMX v5.5.0的一个BUG:ethernetif_input引起进入HardFault_Handler
  • angular2开源库收集
  • cookie和session
  • Create React App 使用
  • docker容器内的网络抓包
  • HTTP请求重发
  • isset在php5.6-和php7.0+的一些差异
  • Java IO学习笔记一
  • JavaScript-Array类型
  • java取消线程实例
  • python docx文档转html页面
  • SpiderData 2019年2月13日 DApp数据排行榜
  • vuex 学习笔记 01
  • vue学习系列(二)vue-cli
  • 安装python包到指定虚拟环境
  • 分享几个不错的工具
  • 海量大数据大屏分析展示一步到位:DataWorks数据服务+MaxCompute Lightning对接DataV最佳实践...
  • 基于OpenResty的Lua Web框架lor0.0.2预览版发布
  • 经典排序算法及其 Java 实现
  • 设计模式(12)迭代器模式(讲解+应用)
  • 想写好前端,先练好内功
  • 新版博客前端前瞻
  • JavaScript 新语法详解:Class 的私有属性与私有方法 ...
  • kubernetes资源对象--ingress
  • ​​​​​​​sokit v1.3抓手机应用socket数据包: Socket是传输控制层协议,WebSocket是应用层协议。
  • ​LeetCode解法汇总518. 零钱兑换 II
  • # C++之functional库用法整理
  • #多叉树深度遍历_结合深度学习的视频编码方法--帧内预测
  • (2)STL算法之元素计数
  • (42)STM32——LCD显示屏实验笔记
  • (C语言)strcpy与strcpy详解,与模拟实现
  • (C语言)球球大作战
  • (附源码)计算机毕业设计SSM智能化管理的仓库管理
  • (三分钟了解debug)SLAM研究方向-Debug总结
  • (一) springboot详细介绍
  • (一)为什么要选择C++
  • (原創) 如何使用ISO C++讀寫BMP圖檔? (C/C++) (Image Processing)
  • ..thread“main“ com.fasterxml.jackson.databind.JsonMappingException: Jackson version is too old 2.3.1
  • .gitignore文件设置了忽略但不生效
  • .NET Core实战项目之CMS 第十二章 开发篇-Dapper封装CURD及仓储代码生成器实现
  • .NET Micro Framework初体验(二)