127k views
3 votes
What are signals SIGKILL and SIGSTOP ? Can we catch them ?

1 Answer

4 votes

Final answer:

SIGKILL is used to forcefully terminate a process, while SIGSTOP is used to suspend the execution temporarily. SIGSTOP can be caught but cannot be ignored.

Step-by-step explanation:

SIGKILL is a signal used to forcefully terminate a process. It cannot be caught or ignored by the process being terminated. SIGSTOP is a signal used to suspend the execution of a process temporarily. It can be caught and handled by the process being suspended, allowing it to take appropriate actions before being suspended. However, it is important to note that while SIGSTOP can be caught, it cannot be ignored. Once caught, the process can perform any necessary cleanup or save its state before being suspended.

User Jaksky
by
9.1k points