Skip to content

Processes Review Questions

Anon edited this page Dec 29, 2016 · 4 revisions

Correct use of fork, exec and waitpid Using exec with a path Understanding what fork and exec and waitpid do. E.g. how to use their return values. Correct use of free, malloc, calloc and realloc and spotting common errors associated with these calls. SIGKILL vs SIGSTOP vs SIGINT. What signal is sent when you press CTRL-C Using kill from the shell or the kill POSIX call. Process memory isolation. Process memory layout (where is the heap, stack etc; invalid memory addresses). What is a fork bomb, zombie and orphan? How to create/remove them. getpid vs getppid Parent-child process relationships when forking. How to use the WAIT exit status macros WIFEXITED etc. Implementing a memory allocator is NOT in this quiz.

Clone this wiki locally