CreateProcess

当一个线程调用CreateProcess时,系统就会创建一个进程内核对象,其初始使用计数是1 。该进程内核对象不是进程本身,而是操作系统管理进程时使用的一个较小的数据结构。可以将进程内核对象视为由进程的统计信息组成的一个较小的数据结构。然后,系统为新进程创建一个虚拟地址空间,并将可执行文件或任何必要的D L L 文件的代码和数据加载到该进程的地址空间中。

When a thread calls CreateProcess, the system creates a process kernel object with an initial usage count of 1.
When CreateProcess is called by a thread, the system will create a process kernel object of which the reference count is 1.

This process kernel object is not the process itself but a small data structure that the operating system uses to manage the process—you can think of the process kernel object as a small data structure that consists of statistical information about the process.
This process kernel object is not the process itself, instead it is a small data structure used by the operating system when managing the process. Process kernel object can be seen as a small data structure which is composed of the statistical information of the process.

The system then creates a virtual address space for the new process and loads the code and data for the executable file and any required DLLs into the process's address space.
Then the system will create a virtual address space for the new process and put the code and data of the executable file and any nessary DLL files intot the address space.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值