Describe the purpose of the exec system call family in Unix-like operating systems. How does it affect the process identifier and the process memory layout?
The exec system call family helps change the process image from the current to the new process image specified in the system call. The PID stays the same while the image is changed and all the segments in the process context are completely refreshed i.e. the new image gets a clean slate in terms of process context.