-
Notifications
You must be signed in to change notification settings - Fork 772
Processes Review Questions
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.
Legal and Licensing information: Unless otherwise specified, submitted content to the wiki must be original work (including text, java code, and media) and you provide this material under a Creative Commons License. If you are not the copyright holder, please give proper attribution and credit to existing content and ensure that you have license to include the materials.