当前位置:网站首页>0号进程,1号进程,2号进程
0号进程,1号进程,2号进程
2022-06-27 08:14:00 【KingOfMyHeart】
0号进程
是一个内核进程,是所有进程的祖先,也叫做swapper进程。
主要作用:
执行start_kernel()函数,初始化内核需要的所有数据结构,激活中断,创建1号内核进程(init进程)。
只有当没有可运行的进程的时候,才会运行0号进程,0号进程不是一个实实在在可见的进程,它
是单用户,单任务的系统启动代码
1号进程
由0号进程创建的1号进程,pid=1,1号进程共享0号进程的所有的数据结构。
1号进程一开始是内核进程,先执行init()函数完成内核初始化,然后调用exec()装入可执行程序init(),这样
init就变成可一个普通进程,1号进程也叫做systemed进程,是所有普通进程的父亲,所有普通进程由它创建。
在系统关闭之前,init进程一直存活,因为它创建和监控在操作系统外层执行的所有进程的活动。
2号进程
是一个内核进程,是所有内核进程的祖先

边栏推荐
- 【批处理DOS-CMD命令-汇总和小结】-输出/显示命令——echo
- Index +sql exercise optimization
- 粗读DS-TransUNet: Dual Swin Transformer U-Net for Medical Image Segmentation
- Redis的持久化机制
- lvgl 说明3关于lvgl guider的使用
- Install Jenkins
- March into machine learning -- Preface
- PayPal账户遭大规模冻结!跨境卖家如何自救?
- Recognize the ordering of O (nlogn)
- ACM course term summary
猜你喜欢

淘宝虚拟产品开店教程之作图篇

Redis主从复制以及哨兵模式
![[c++ primer notes] Chapter 4 expression](/img/cb/d543dd1f461653e9adf399b42d1d26.png)
[c++ primer notes] Chapter 4 expression

MySQL索引详解
![[10. difference]](/img/15/ffd93da75858943fe887de1718e0f6.png)
[10. difference]

LVGL GUI GUIDER移植代码到STM32
![[12. maximum continuous non repeating subsequence]](/img/eb/230cd6062e28374c86863f2122e43b.png)
[12. maximum continuous non repeating subsequence]

Helix QAC is updated to 2022.1 and will continue to provide high standard compliance coverage

【11. 二维差分】
![[batch dos-cmd command - summary and summary] - environment variables, path variables, search file location related instructions - set, path, where, what if there are spaces in the path parameters of](/img/ca/0b96294336810187e833429fcea5bf.png)
[batch dos-cmd command - summary and summary] - environment variables, path variables, search file location related instructions - set, path, where, what if there are spaces in the path parameters of
随机推荐
参考 | 升级 Win11 移动热点开不了或者开了连不上
Programming life - what do you think of the 35 year old bottleneck of programmers?
Redis五种基本类型
Index +sql exercise optimization
MySQL环境变量配置的教程
vim 从嫌弃到依赖(19)——替换
什么是期货反向跟单?
八大误区,逐个击破(终篇):云难以扩展、定制性差,还会让管理员失去控制权?
【云原生】2.3 Kubernetes 核心实战(上)
c#的初步认识
[batch dos-cmd command - summary and summary] - how to distinguish the internal command and external command of CMD, and the difference between CMD command and run (win+r) command,
野風藥業IPO被終止:曾擬募資5.4億 實控人俞蘠曾進行P2P投資
盲測調查顯示女碼農比男碼農更優秀
Five basic types of redis
准备好迁移上云了?请收下这份迁移步骤清单
sql注入之order by注入
正确的理解MySQL的MVCC
[10. difference]
【批处理DOS-CMD命令-汇总和小结】-批处理命令中的参数%0、%1、%2、%[0-9]、%0-9和批处理命令参数位置切换命令shift,dos命令中操作符%用法
2022 love analysis · panoramic report of it operation and maintenance manufacturers