Skip to content
Advertisement

what happens with a process tasks after it is killed? [closed]

When I kill (via shell) a process in Linux are the tasks in /proc/pid/tasks also killed immediately? Or can they run without the principal process?

Advertisement

Answer

Actually, each entry in /proc/pid/tasks is a thread in a process. Check this or this. So when you kill a process, all threads should be killed immediately.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement