当前位置:网站首页>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
边栏推荐
- 不同性能测试工具的并发模式
- NFT: start NFT royalty journey with eip-2981
- 有效的 @SuppressWarnings 警告名称
- 【TA-霜狼_may-《百人计划》】2.2 模型与材质空间
- Introduction of Spock unit test framework and its practice in meituan optimization___ Chapter I
- JD intelligent customer service Yanxi intention system construction and intention recognition technology introduction
- 392. judgment subsequence
- 8. string conversion integer (ATOI)
- 30. 串联所有单词的子串
- 【TA-霜狼_may-《百人计划》】1.4 PC手机图形API介绍
猜你喜欢

Jenkins自动清理构建历史

这可能是你进腾讯最后的机会了..

How keil displays Chinese annotations (simple with pictures)

【TA-霜狼_may-《百人计划》】1.4 PC手机图形API介绍
![[TA frost wolf \u may- hundred people plan] 2.3 introduction to common functions](/img/be/325f78dee744138a865c13d2c20475.png)
[TA frost wolf \u may- hundred people plan] 2.3 introduction to common functions
![[TA frost wolf \u may- hundred people plan] 2.4 traditional empirical lighting model](/img/05/85c004e4fbfc8d4984ac04ddb1190b.png)
[TA frost wolf \u may- hundred people plan] 2.4 traditional empirical lighting model

熊市下的Coinbase:亏损、裁员、股价暴跌

JMeter learning notes 2 - brief introduction to graphical interface

431. 将 N 叉树编码为二叉树 DFS

Unity之三维空间多点箭头导航
随机推荐
[send email with error] 535 error:authentication failed
[TA frost wolf _may - "hundred people plan"] 1.4 introduction to PC mobile phone graphics API
"Target detection" + "visual understanding" realizes the understanding of the input image
NFT: utilisez EIP - 2981 pour commencer un voyage de redevances NFT
NFT:使用 EIP-2981 开启 NFT 版税之旅
283. move zero
Redis(七)优化建议
Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)
It's settled! 2022 JD cloud summit of JD global technology Explorer conference see you in Beijing on July 13
431. encode n-ary tree as binary tree DFS
Millet College wechat scanning code login process record and bug resolution
Qt开发经验小技巧226-230
166. 分数到小数
嵌入式系统开发笔记81:使用Dialog组件设计提示对话框
【TA-霜狼_may-《百人计划》】2.2 模型与材质空间
30. Concatenate substrings of all words
Introduction of Spock unit test framework and its practice in meituan optimization___ Chapter I
205. isomorphic string
171. excel table column No
[TA frost wolf \u may - "hundred people plan"] 2.1 color space