当前位置:网站首页>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
边栏推荐
- [TA frost wolf \u may- hundred talents plan] 1.2.2 matrix calculation
- 这可能是你进腾讯最后的机会了..
- Go learning --- unit test subtest
- [shortcut key]
- 【TA-霜狼_may-《百人计划》】2.4 传统经验光照模型
- 不同性能测试工具的并发模式
- Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)
- Browser top loading (from Zhihu)
- 【TA-霜狼_may-《百人计划》】1.2.3 MVP矩阵运算
- 206.反转链表
猜你喜欢

京东智能客服言犀意图体系搭建和意图识别技术介绍

【人话版】WEB3黑暗森林中的隐私博弈

JD intelligent customer service Yanxi intention system construction and intention recognition technology introduction

【TA-霜狼_may-《百人計劃》】2.3 常用函數介紹
![[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

类和对象收尾

跳槽一次涨8k,5年跳了3次...

分账技术赋能农贸市场,重塑交易管理服务效能

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

Unity's 3D multi-point arrow navigation
随机推荐
Mallbook: how can hotel enterprises break the situation in the post epidemic era?
Promql select time series
互联网行业最佳产品开发流程 推荐!
[TA frost wolf _may - "hundred people plan"] 1.4 introduction to PC mobile phone graphics API
【TA-霜狼_may-《百人计划》】1.2.1 向量基础
【TA-霜狼_may-《百人計劃》】1.2.1 向量基礎
How to ensure the idempotency of the high concurrency interface?
171. Excel 表列序号
Procurement intelligence is about to break out, and Alipay'3+2'system helps enterprises build core competitive advantages
浏览器顶部loading(来自知乎)
Usage of AfxMessageBox and MessageBox
HoloLens2开发环境搭建及部署app
NFT:使用 EIP-2981 开启 NFT 版税之旅
214. minimum palindrome string
Possible problems and solutions of using scroll view to implement slider view
166. 分数到小数
Embedded System Development Notes 79: why should I get the IP address of the local network card
Analysis and case of pageobject mode
Valid @suppresswarnings warning name
盘点华为云GaussDB(for Redis)六大秒级能力