当前位置:网站首页>Programs and processes, process management, foreground and background processes
Programs and processes, process management, foreground and background processes
2022-07-01 04:06:00 【-Joucy-】
Procedures and processes 、 Process management 、 Foreground and background processes
One 、 Procedures and processes
Program Program: Refers to a program file , Such as notepad.exe
process Process: When a program runs , Create a in the operating system Record , Used to describe and control its operation
such as , Open multiple notepad.exe , You get multiple processes
Run multiple /usr/bin/vim, and Observe the process information
ps -ef
among , Meaning of each field :
User: practitioners
PID: process ID
PPID: The parent process ID
STIME: Starting time
CMD: Command line invoked at startup
ps -ef | grep vi: Filter find yes vi The process of
Two 、 Process management
3、 ... and 、 Foreground and background processes
Foreground process : Processes running in the foreground
Background processes : Processes running in the background
Example :
./run_tomcat run Run in front desk mode (CTRL+C End )
./run_tomcat start Operation in background mode
difference :
- Is there a console
Foreground process : There's a console , Output to current terminal
Background processes : No console , No output seen - Whether there is a parent process
Foreground process :
There are parent processes , The parent process is the current terminal
When the terminal is turned off , The foreground process is shut down together
Background processes :
The parent process is the system process (1 Process of no. )
When the terminal is turned off , The background process is not affected - force finish
Foreground process : Use CTRL+C force finish
Background processes : shiykill -9 NNN force finish
边栏推荐
- 431. encode n-ary tree as binary tree DFS
- Class and object finalization
- [ta- frost wolf \u may- hundred people plan] 2.2 model and material space
- [untitled] Li Kou 496 Next larger element I
- 类和对象收尾
- 【TA-霜狼_may-《百人计划》】1.1 渲染流水线
- PageObject模式解析及案例
- [today in history] June 30: von Neumann published the first draft; The semiconductor war in the late 1990s; CBS acquires CNET
- Embedded System Development Notes 80: using QT designer to design the main interface
- [ta - Frost Wolf May - 100 people plan] 1.2.1 base vectorielle
猜你喜欢
Unexpected token o in JSON at position 1, JSON parsing problem
NFT: start NFT royalty journey with eip-2981
Unity's 3D multi-point arrow navigation
[TA frost wolf \u may- hundred talents plan] 1.2.2 matrix calculation
【TA-霜狼_may-《百人计划》】2.4 传统经验光照模型
[TA frost wolf \u may- hundred people plan] 2.3 introduction to common functions
Grid system in bootstrap
Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)
【历史上的今天】6 月 30 日:冯·诺依曼发表第一份草案;九十年代末的半导体大战;CBS 收购 CNET
京东智能客服言犀意图体系搭建和意图识别技术介绍
随机推荐
JMeter login failure, extracting login token, and obtaining token problem solving
206.反转链表
How to ensure the idempotency of the high concurrency interface?
MFC window scroll bar usage
242. valid Letter heteronyms
【TA-霜狼_may-《百人计划》】1.2.2 矩阵计算
跳槽一次涨8k,5年跳了3次...
[JPCs publication] the Third International Conference on control theory and application in 2022 (icocta 2022)
PageObject模式解析及案例
It's settled! 2022 JD cloud summit of JD global technology Explorer conference see you in Beijing on July 13
283.移动零
Edge浏览器的小技巧:Enter+Ctrl可以自动将地址栏转换为网址
Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)
HoloLens2开发环境搭建及部署app
多次跳槽后,月薪等于老同事的年薪
Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)
线程常用方法与守护线程
嵌入式系統開發筆記80:應用Qt Designer進行主界面設計
Volley parsing data shows networking failure
TS type gymnastics: illustrating a complex advanced type