310 likes | 460 Views
COSC1078 Introduction to Information Technology Lecture 15 Booting. James Harland james.harland@rmit.edu.au. Introduction. James Harland Email: james.harland@rmit.edu.au URL: www.cs.rmit.edu.au/~jah Phone: 9925 2045 Office: 14.10.1 Consultation: Mon 4.30-5.30, Thu 11.30-12.30
E N D
Intro to IT COSC1078 Introduction to Information TechnologyLecture 15Booting James Harland james.harland@rmit.edu.au
Intro to IT Introduction • James Harland • Email:james.harland@rmit.edu.au • URL:www.cs.rmit.edu.au/~jah • Phone:9925 2045 • Office:14.10.1 • Consultation:Mon 4.30-5.30, • Thu 11.30-12.30 • What colour is my office door? Carpet? Chair?
Intro to IT Introduction to IT 1 Introduction 2Images 3Audio 4Video WebLearnTest 1 5 Binary Representation Assignment 1 6 Data Storage 7Machine Processing 8 Operating Systems WebLearn Test 2 9 Processes Assignment 2 10 Internet 11Internet Security WebLearn Test 3 12Future of IT Assignment 3, Peer and Self Assessment
Intro to IT Overview • Questions? • Assignments 1 & 2 • Booting • Questions?
Where to begin? • How do you start an operating system? • Boot it! (or bootstrap) • Turn on power () • Machine loads bootstrap program from ROM (non-volatile memory) • Bootstrap program loads OS • OS takes over Lecture 15: Booting Intro to IT
Initial State When Turned On Processor Memory Disk ROM 00 00 Bootstrap Program Program Counter RAM Instruction Register Lecture 15: Booting Intro to IT
Load Bootstrap Program Processor Memory Disk ROM 00 00 Bootstrap Program Program Counter RAM Instruction Register Lecture 15: Booting Intro to IT
Bootstrap program loads OS Processor Memory Disk ROM 00 00 Bootstrap Program Program Counter RAM Instruction Register Lecture 15: Booting Intro to IT
Bootstrap program loads OS Processor Memory Disk ROM 00 00 Bootstrap Program Program Counter RAM Instruction Register Lecture 15: Booting Intro to IT
Bootstrap program has loaded OS Processor Memory Disk ROM AA 00 Bootstrap Program Program Counter AA RAM Instruction Register Lecture 15: Booting Intro to IT
OS takes over execution Processor Memory Disk ROM AA 00 Bootstrap Program Program Counter AA RAM Instruction Register Lecture 15: Booting Intro to IT
Starting Up Operating Systems Processor Memory Disk ROM AA 00 Bootstrap Program Program Counter AA RAM Instruction Register Lecture 15: Booting Intro to IT
Starting Up Operating Systems Processor Memory Disk ROM AA 00 Bootstrap Program Program Counter AA RAM Instruction Register Lecture 15: Booting Intro to IT
Starting Up Operating Systems Processor Memory Disk ROM AA 00 Bootstrap Program Program Counter AA RAM Instruction Register Lecture 15: Booting Intro to IT
Multiple boot scenario … Processor Memory Disk ROM 00 00 Bootstrap Program Program Counter RAM Instruction Register Lecture 15: Booting Intro to IT
Multiple boot scenario … Processor Memory Disk ROM 00 00 Bootstrap Program Program Counter RAM Instruction Register Lecture 15: Booting Intro to IT
Multiple boot scenario … Processor Memory Disk ROM 00 00 Bootstrap Program Program Counter RAM Instruction Register Lecture 15: Booting Intro to IT
Multiple boot scenario … Processor Memory Disk ROM 00 00 Bootstrap Program Program Counter RAM Instruction Register Lecture 15: Booting Intro to IT
OS Software Classification Software Application System Utility Operating System Shell Kernel Lecture 15: Booting Intro to IT
Processes Lecture 15: Booting Intro to IT
Processes A program is astatic set of instructions A processes is the execution of a program, which changes state over time. Lecture 15: Booting Intro to IT
Processes Executing in Context Processor Memory Disk ROM CC 00 Program Counter RAM CC Instruction Register Lecture 15: Booting Intro to IT
Processes Executing in Context Processor Memory Disk ROM DD 00 Program Counter RAM CC DD Instruction Register Lecture 15: Booting Intro to IT
Processes Switching Scheduler maintains process table Ready Ready Waiting Lecture 15: Booting Intro to IT
Processes Switching Lecture 15: Booting Intro to IT
Interrupts • Signals to the CPU • Often generated by timing circuits • CPU reacts by jumping to appropriate memory location • Dispatcher • selects a ready process • resets timing circuit • starts process • CPUs often designed to switch process states efficiently Lecture 15: Booting Intro to IT
Processes Executing in Context Processor Memory Disk 00 BB ROM Program Counter RAM BB Instruction Register Lecture 15: Booting Intro to IT
Processes Executing in Context Processor Memory Disk 00 11 ROM Program Counter RAM BB Instruction Register Lecture 15: Booting Intro to IT
Processes Executing in Context Processor Memory Disk 00 FF ROM Program Counter RAM FF Instruction Register Lecture 15: Booting Intro to IT
Interrupts • Provide mechanism to switch processes • CPU doesn’t have to wait for I/O transfers • Switching leads to faster throughput • `Save document’ means CPU does something else while the save takes place Lecture 15: Booting Intro to IT
Intro to IT Conclusion Assignment 2 specified sometime this week Finish reading book!