Add two questions - killing a zombie and tail implementation
This commit is contained in:
parent
e5e8c945bc
commit
49763097a3
18
README.md
18
README.md
@ -2,7 +2,7 @@
|
||||
|
||||
:information_source: This repository contains interview questions on various DevOps and SRE related topics
|
||||
|
||||
:bar_chart: There are currently **551** questions
|
||||
:bar_chart: There are currently **553** questions
|
||||
|
||||
:books: To learn more about DevOps check the resources in [DevOpsBit.com](https://devopsbit.com)
|
||||
|
||||
@ -1156,7 +1156,17 @@ Zombie
|
||||
</b></details>
|
||||
|
||||
<details>
|
||||
<summary>What is a zombie process? How do you get rid of it?</summary>
|
||||
<summary>What is a zombie process?</summary><br><b>
|
||||
</b></details>
|
||||
|
||||
<details>
|
||||
<summary>How to get rid of zombie processes?</summary><br><b>
|
||||
|
||||
You can't kill a zombie process the regular way with `kill -9` for example as it's already dead.
|
||||
|
||||
One way to kill zombie process is by sending SIGCHLD to the parent process telling it to terminate its child processes. This might not work if the parent process wasn't programmed properly. The invocation is `kill -s SIGCHLD [parent_pid]`
|
||||
|
||||
You can also try closing/terminating the parent process. This will make the zombie process a child of init (1) which does periodic cleanups and will at some point clean up the zombie process.
|
||||
</b></details>
|
||||
|
||||
<details>
|
||||
@ -2738,6 +2748,10 @@ a = f()
|
||||
<summary>Can you implement Linked List in Python?<br><b>
|
||||
</b></details>
|
||||
|
||||
<details>
|
||||
<summary>Can you implement Linux's <code>tail</code> command in Python? Bonus: implement <code>head</code> as well</summary><br><b>
|
||||
</b></details>
|
||||
|
||||
<details>
|
||||
<summary>You have created a web page where a user can upload a document. But the function which reads the uploaded files, runs for a long time, based on the document size and user has to wait for the read operation to complete before he/she can continue using the web site. How can you overcome this?</summary><br><b>
|
||||
</b></details>
|
||||
|
Loading…
Reference in New Issue
Block a user