interview-questions
Introduction
1.
LeetCode
2.
LintCode
2.1.
Find the Missing Number
2.2.
Invert Binary Tree
2.3.
Max Points on l Line
2.4.
Space Replacement
2.5.
Longest Wrods
2.6.
String
2.6.1.
Two Strings Are Anagrams
2.6.2.
Compare Strings
3.
Others
4.
Unsolved
5.
Puzzle
5.1.
PUZZLE 1
6.
OS-Questions
6.1.
进程通信方式
6.2.
线程同步方式
6.3.
进程死锁的条件
6.4.
零零散散小题
7.
Linux-Questions
7.1.
Mess
8.
数据库
8.1.
Mess
9.
Systems Design
9.1.
Scalability for Dummies
10.
Useful Tips
11.
Project Euler
11.1.
PE001: Multiple of 3 and 5
Powered by
GitBook
A
A
Serif
Sans
White
Sepia
Night
Share on Twitter
Share on Google
Share on Facebook
Share on Weibo
Share on Instapaper
interview-questions
在shell脚本成功执行之前,如何中断脚本执行?
使用
exit
命令来实现上述情景,
exit
命令被强制输出非0值时,脚本会报错并退出。所以命令
exit -1
可以使脚本中止。
Linux进程经历的各个阶段
等待:Linux进程等待资源
运行:Linux进程当前正在执行中
停止:Linux进程在成功执行后或收到杀死进程信号后停止
僵尸:如果该进程已经结束,但仍停留在进程表中,被称为僵尸