Process Management System Calls

In this section, I discuss the implementation of the fork and exec system call families. Normally, these calls are not issued directly by applications but are invoked via an intermediate layer — the C standard library — that is responsible for communication with the kernel.

The methods used to switch from user mode to kernel mode differ from architecture to architecture. In Appendix A, I describe at length the mechanisms used to switch between these two modes and also explain how parameters are exchanged between userspace and kernel space. For the time being, it is sufficient to regard the kernel as a ''program library'' used by the C standard library as mentioned briefly in Chapter 1.

Continue reading here: Process Duplication

Was this article helpful?

0 0