Question

In: Computer Science

Unix: Compare a sure kill with a regular kill command. When should you use a sure...

Unix: Compare a sure kill with a regular kill command. When should you use a sure kill?

Solutions

Expert Solution

Both Kill and sure kill are used to kill a process . But the difference is seen in how the process which received the Kill or sure kill behaves.

Kill will generate a SIGTERM signal asking a process to kill itself gracefully i.e , free memory or take care of other child processes. Killing a process using kill will not have any side effects like unrelased memory because it was gracefully killed.

sure kill works similarly but it doesn't wait for the program to gracefully die. sure kill generates a SIGKILL signal which won't check the state of the process and kills the process immediately.

The major difference is SIGTERM(generated by Kill) can be ignored if the process is still to reach safe state(clear memory or similar activity) and the process may not be killed.Process cannot ignore the SIGKILL (generated by sure kill ) and will be killed immediately irrespective of the state they are in(this may some time cause some issues but the process is killed for sure).

When should you use a sure kill?

With the sure kill option, the kernel stops a process dead in its tracks giving it no time to execute a proper shutdown routine. Because this can result in data loss, this option should only be used when the process cannot otherwise be stopped.


Related Solutions

please use linux or unix to complete Diff command The diff command displays differences between two...
please use linux or unix to complete Diff command The diff command displays differences between two files on a line-by-line basis. It displays the differences as instructions that you can use to edit one of the files ( using the vi editor) to make it the same as the other. When you use diff, it produces a series of lines containing Append (a), Delete (d), and Change (c) instructions. Each of these lines is followed by the lines from the...
unix question please write a program and then show how to use top command that shows...
unix question please write a program and then show how to use top command that shows the zombie process, give snapshot of top command that shows the zombie process Write a very simple program that will show the possibility of having zombie processes. Write a program named zombie.c The main process will create a child. The child prints something like: “I am the child with pid ….. and my parent has ppid ….” Next, the child will sleep for 1...
**Need to use awk command in putty (should be a ONE LINE COMMAND) Write the command...
**Need to use awk command in putty (should be a ONE LINE COMMAND) Write the command that would find all lines that have an email address and place a label email = before the line in the file longfile output will multiple lines similar to this one : using a good awk command the output would be something like this email = From: "Linder, Jann/WDC" <[email protected]> email = To: Mr Arlington Hewes <[email protected]> email = > From: Mr Arlington Hewes...
Unix / Linux 6. vi editor: In vi command mode, what are the keystrokes you would...
Unix / Linux 6. vi editor: In vi command mode, what are the keystrokes you would type to... Quit the vi editor and save any changes? 7. C language source files, by convention, have the suffix ".c". The associated "header" files have the suffix ".h". What is the command to perform the following task: List all the C source and C header files in the current directory. [Hidden files may remain hidden.] 8. C language source files, by convention, have...
INSTRUCTION: Use “OptAll” program for the following questions. When you open “OptAll” program, be sure you...
INSTRUCTION: Use “OptAll” program for the following questions. When you open “OptAll” program, be sure you enable macro. The tabs of the worksheets indicate the corresponding option pricing models or exotic options. As demonstrated in the past two classes, the “OptAll” program is fairly straight forward to use. Enter the required inputs and the results will be automatically calculated. We have studied these options in Module 3. You may (and should) apply the “OptAll” program to the previous Module 3...
When should you use non-parametric tests of statistical significance? When is it inappropriate to use non-parametric...
When should you use non-parametric tests of statistical significance? When is it inappropriate to use non-parametric statistical tests? Describe what is meant by the phrase: "Power of a a statistical test". Are non-parametric statistical procedures as powerful as parametric statistical procedures?
For this assignment, you will create a command-line version of the game ​Hangman. You should work...
For this assignment, you will create a command-line version of the game ​Hangman. You should work in a group of two on the project and not view Hangman code of other students or found on-line. Submit this project-- your .java file-- here on Canvas. For this assignment you will research on StringBuilder Class (​Use this link​) and use it in your code. Functional requirements (rubric) ● Your game should have a list of at least ten phrases of your choosing...
When and how should you use rapid prototyping in the agile process.
When and how should you use rapid prototyping in the agile process.
In general, when should you use non-parametric vs. parametric tests?
In general, when should you use non-parametric vs. parametric tests?
Just answer the question in General. Don't need to use the graph Why can you kill...
Just answer the question in General. Don't need to use the graph Why can you kill the moths off in a few time steps? What does this indicate could happen in an environment to cause a species to go extinct? How could the model be modified so that the proportions of each moth color type would not change through time?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT