Week 5 - Operating System Fundamental (Part 2) Flashcards
What happens when a computer is started or rebooted regarding the bootstrap process?
When a computer is started or rebooted, a small bootstrap program is loaded into memory to initiate the startup process.
What is the meaning behind the term “bootstrap”?
The term “bootstrap” comes from the saying “to pull oneself up by one’s bootstraps,” referring to a seemingly impossible task and describing a self-sustaining process that proceeds without external help.
Who first coined the term “bootstrap” in computing, and in what context?
The term “bootstrap” was first coined in 1953 by computer scientist Werner Buchholz when describing the “self-loading procedure” of the IBM Type 701 Computer.
Where is the bootstrap program stored, and why?
The bootstrap program is stored in Read-Only Memory (ROM) or Electrically Erasable Programmable Read-Only Memory (EEPROM) because these types of memory cannot be easily infected by a virus.
What is another name for the bootstrap program stored in ROM or EEPROM?
The bootstrap program stored in ROM or EEPROM is also known as firmware.
What system components does the bootstrap program initialise?
The bootstrap program initializes the CPU registers, device controllers, and the contents of memory.
What does the bootstrap program do after initializing the system hardware?
After initialisation, the bootstrap program loads the operating system kernel into memory to start the full operating environment.
What happens after the firmware is loaded during system startup?
After the firmware is loaded, some services are provided outside of the kernel. These services are loaded at boot time and become system processes or system daemons that run for the entire time the kernel is active.
What is the first system process loaded on UNIX systems?
On UNIX systems, the first system process loaded is called “init.”
What does the operating system do once everything is loaded?
Once the system processes and daemons are loaded, the operating system sits idle and waits for events to occur, ready to respond as needed.
What are examples of events that can happen after the operating system is loaded?
Examples of events include a user clicking a mouse or a program trying to access a file, both of which require the system to respond.
What are these events called, and how can they be triggered?
These events are called interrupts, and they can be triggered by either hardware or software.
How does hardware trigger an interrupt?
Hardware triggers an interrupt at any time by sending a signal directly to the CPU.
How does software trigger an interrupt?
Software triggers an interrupt by executing a special operation called a system call.
What does the CPU do when an interrupt occurs?
When an interrupt occurs, the CPU stops whatever it is currently doing and immediately transfers execution to a fixed location in memory.
What is located at the fixed memory location the CPU jumps to after an interrupt?
The fixed memory location usually contains the starting address of the service routine that handles the interrupt.
What happens after the interrupt service routine executes?
After the interrupt service routine finishes execution, the CPU resumes the computation that was interrupted.
What is the structure of Main Memory?
What is the structure of Main Memory?
What are Read-Only Memory (ROM) and Electrically Erasable Programmable ROM (EEPROM)?
Read-Only Memory (ROM) and Electrically Erasable Programmable ROM (EEPROM) are types of non-volatile memory. ROM cannot be modified and is suitable for storing things like bootstrap programs or game cartridges. EEPROM can be changed, but only infrequently, and is often used to store factory-bundled programs in smartphones.
What type of memory does the CPU need to read and write to?
The CPU requires Random-Access Memory (RAM), which is memory it can read from and write to. RAM is implemented using Dynamic RAM (DRAM) technology, which is a type of semiconductor memory.
What are Registers in terms of memory?
Registers are a type of memory that is directly accessed by the CPU to store temporary data and instructions during processing.
What happens to Main Memory when the machine is turned off?
Main memory is volatile, meaning it is erased when the machine is powered off.
What is Secondary Storage, and what are some examples?
Secondary storage is non-volatile memory used to store data long-term. Examples include magnetic disks, optical disks, and tapes.
What is Cache Memory, and why is it important?
Cache memory is a faster, smaller storage system that holds frequently used data. If the CPU needs information, it first checks the cache to improve speed and efficiency.