Today
- Booting
- Process abstraction
- Dual mode execution
Sept 19, 2018 Sprenkle - CSCI330 1
Today Booting Process abstraction Dual mode execution Sept 19, - - PowerPoint PPT Presentation
Today Booting Process abstraction Dual mode execution Sept 19, 2018 Sprenkle - CSCI330 1 Course Objectives Review Classical OS Emphasis on the why Agile class Synching with the Project
Sept 19, 2018 Sprenkle - CSCI330 1
Sept 19, 2018 Sprenkle - CSCI330 2
https://www.facebook.com/groups/169380229860838/
Sept 19, 2018 Sprenkle - CSCI330 3
How do we get the OS party started?
Sept 19, 2018 Sprenkle - CSCI330 4
Sept 19, 2018 Sprenkle - CSCI330 5
Sept 19, 2018 Sprenkle - CSCI330 6
Bootloader OS kernel Application
Sept 19, 2018 Sprenkle - CSCI330 7
Ø MBR = first sector on the disk (512 bytes). Ø Boot disk is identified by data stored in the configuration CMOS.
Ø Often indirectly by loading another program (a secondary boot loader) that then loads the kernel
Sept 19, 2018 Sprenkle - CSCI330 8
Sept 19, 2018 Sprenkle - CSCI330 9
Bootloader OS kernel Application
Sept 19, 2018 Sprenkle - CSCI330 10
Sept 19, 2018 Sprenkle - CSCI330 11
Sept 19, 2018 Sprenkle - CSCI330 12
Sept 19, 2018 Sprenkle - CSCI330 13
Data in Data in Data in Data in
32-bit Register #0
WE
32-bit Register #1
WE
32-bit Register #2
WE
32-bit Register #3
WE
MUX MUX
Register File A L U
Program Counter (PC): Memory address of next instr Instruction Register (IR): Instruction contents (bits)
Sept 19, 2018 Sprenkle - CSCI330 14
Program Counter (PC): Memory address of next instr Instruction Register (IR): Instruction contents (bits)
Sept 19, 2018 Sprenkle - CSCI330 15
Data in Data in Data in Data in
32-bit Register #0
WE
32-bit Register #1
WE
32-bit Register #2
WE
32-bit Register #3
WE
MUX MUX
Register File A L U
Sept 19, 2018 Sprenkle - CSCI330 16
Sept 19, 2018 Sprenkle - CSCI330 17
0x0 0xFFFFFFFF Operating system Stack Text Data Heap
Why do the heap and stack grow towards each other? What would an alternative organization look like?
Sept 19, 2018 Sprenkle - CSCI330 18
0x0 0xFFFFFFFF Operating system Stack Text Data Heap
Represents 32 bits à 232 locations
Sept 19, 2018 Sprenkle - CSCI330 19
Disk Wireless Network Keyboard / Mouse
Sept 19, 2018 Sprenkle - CSCI330 20
Sept 19, 2018 Sprenkle - CSCI330 21
Sept 19, 2018 Sprenkle - CSCI330 22
Sept 19, 2018 Sprenkle - CSCI330 23
Sept 19, 2018 Sprenkle - CSCI330 24
Text Data Stack Text Data Stack Text Data Stack
Kernel
System Calls write read fork System Management Scheduling Context Switching
OS OS Heap Heap OS Heap Process 1 Process 2 Process N
Sept 19, 2018 Sprenkle - CSCI330 26
Sept 19, 2018 Sprenkle - CSCI330 27
System call often implemented as a special case of exception: execute intentional exception-generating instruction.
Sept 19, 2018 Sprenkle - CSCI330 28
Sept 19, 2018 Sprenkle - CSCI330 31
Sept 19, 2018 Sprenkle - CSCI330 32
Sept 19, 2018 Sprenkle - CSCI330 33
Sept 19, 2018 Sprenkle - CSCI330 34
Sept 19, 2018 Sprenkle - CSCI330 35
Sept 19, 2018 Sprenkle - CSCI330 36