CISC 361 Operating Systems Midterm Review Chien-Chung Shen cshen@udel.edu
March 20, Wednesday C pointer and struct malloc() and free() sizeof() malloc() and free() C string and associated library functions strcpy(), strcmp(), strlen() Gdb given only an executable file that had been compiled with –g flag, use gdb to run the executable, observe bug(s), view the source code, print values (addresses) of variables (pointers), and state how to fix bug(s) gdb commands of run, list, print, break, next, step, etc. Makefile Valgrind – definite and indirect leaks
Both Days Process creation (OSTEP Chapter 5) fork() wait() and waitpid() https://www.geeksforgeeks.org/fork-system-call/
March 22, Friday PATH environment variable Shell commands: which and where Unix pipe (Stevens & Rago’s Chapter 15.2) http://beej.us/guide/bgipc/html/multi/pipes.html