15: Understanding task_struct in Process Replacement
What is the `task_struct` in the Linux kernel, and what role does it play during an `execve()` system call? Highlight some of its key fields and how they are updated during process replacement.
task_struct is the primary data structure that represents a process in the linux kernel. It contains information about the process's state, memory layout, open files,signal handlers,etc. During the execve call it is updated to reflect the new executable. Some of the key fields that are updated during process replacement are program counter , mm_struct and signal handlers.