OPERATING SYSTEMS 1 - HARDWARE PIETER HARTEL 1. Hardware 2.
-
Upload
jonah-berry -
Category
Documents
-
view
224 -
download
0
Transcript of OPERATING SYSTEMS 1 - HARDWARE PIETER HARTEL 1. Hardware 2.
1
OPERATING SYSTEMS 1 - HARDWAREPIETER HARTEL
2
Hardware
3
Interrupts
Why?
Sources?
4
Instruction and interrupt processing
Cost of interrupt processing?
5
Interrupt stack
Why a stack?
6
Memory hierarchy
Why?
7
Cache – principle of locality
8
MMU
9
Multiprocessor (why?)
10
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
/* Uname.c */#include <stdio.h>#include <sys/utsname.h>
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;}
11
Summary
Hardware resources
CPU & Instruction cycle
Interrupts & stack
Memory hierarchy & caches
Single & Multi processors
Principle of locality
How to manage these resources?