OPERATING SYSTEMS 1 - HARDWARE PIETER HARTEL 1
Hardware 2
Interrupts Why? Sources? 3
Instruction and interrupt processing Cost of interrupt processing? 4
Interrupt stack Why a stack? 5
Memory hierarchy Why? 6
Cache – principle of locality 7
MMU 8
Multiprocessor (why?) 9
First Linux example: What kind of machine is this? Output? gcc Uname.c ./a.out man -k system more /usr/include/sys/utsname.h lscpu 10 /* Uname.c */ #include int main(int argc, char * argv[]) { struct utsname u; if(uname(&u) == 0) { printf("%s %s %s %s\n“ u.nodename, u.sysname, u.release, u.machine); } return 0; }
Summary Hardware resources CPU & Instruction cycle Interrupts & stack Memory hierarchy & caches Single & Multi processors Principle of locality How to manage these resources? 11