April 20, 2026
Homework 10 due next Monday
Lab 12 tomorrow
Final exam: 7-10pm April 30, Gilmer 301 (different room!)
Cumulative, see practice tests
Exam conflict form in email
Could you write printf?
int printf(const char *format, ...);
int fprintf(FILE *stream, const char *format, ...);
printf("hi: %s and %d\n", mystr, myint);
Backing up...
write:
Argument checking
syscall
Return value checking
ret
Process - approximately what we think of as a “running program"
Operating System effectively has a giant array of processes started since computer turned on
Try ps -A
Has access to all memory (but only its own!)
Operating System maintains data structure about each process
What program is running, who ran it, when it started, ...
Array of “file like objects"
Using write