Podcast
Questions and Answers
In the storage structure hierarchy, which of the following is generally the fastest but also the most expensive per unit of storage?
In the storage structure hierarchy, which of the following is generally the fastest but also the most expensive per unit of storage?
- Solid State Drives
- Registers (correct)
- Main Memory
- Magnetic Disks
Which of the following memory types retains data even when power is removed?
Which of the following memory types retains data even when power is removed?
- Registers
- Optical Disks (correct)
- Main Memory
- Cache
What is the primary role of a bootstrap program?
What is the primary role of a bootstrap program?
- Running user applications
- Managing system hardware
- Providing a user interface
- Loading the operating system kernel (correct)
Where is the bootstrap program typically stored?
Where is the bootstrap program typically stored?
Which of the following is NOT a typical function of the bootstrap program?
Which of the following is NOT a typical function of the bootstrap program?
What is the purpose of the Power On Self Test (POST) during the booting process?
What is the purpose of the Power On Self Test (POST) during the booting process?
In a single-processor system, what is the primary function of the CPU?
In a single-processor system, what is the primary function of the CPU?
Which type of system contains two or more processors that work together?
Which type of system contains two or more processors that work together?
Which of the following is an advantage of multiprocessor systems?
Which of the following is an advantage of multiprocessor systems?
What does 'graceful degradation' refer to in the context of multiprocessor systems?
What does 'graceful degradation' refer to in the context of multiprocessor systems?
In asymmetric multiprocessing, what is the role of the 'master' processor?
In asymmetric multiprocessing, what is the role of the 'master' processor?
Which of the following best describes symmetric multiprocessing (SMP)?
Which of the following best describes symmetric multiprocessing (SMP)?
How do clustered systems differ from multiprocessor systems?
How do clustered systems differ from multiprocessor systems?
What is a primary benefit of using clustered systems?
What is a primary benefit of using clustered systems?
What is the primary function of interrupts in an operating system?
What is the primary function of interrupts in an operating system?
Which type of interrupt is generated by a program to request a service from the operating system?
Which type of interrupt is generated by a program to request a service from the operating system?
What is a 'trap' in the context of interrupts?
What is a 'trap' in the context of interrupts?
What is the purpose of an Interrupt Service Routine (ISR)?
What is the purpose of an Interrupt Service Routine (ISR)?
What does the Interrupt Vector contain?
What does the Interrupt Vector contain?
What action does the operating system take when an interrupt occurs?
What action does the operating system take when an interrupt occurs?
In the Intel Pentium interrupt vector table, what type of exception does the vector number 0 represent?
In the Intel Pentium interrupt vector table, what type of exception does the vector number 0 represent?
Which of the following is a characteristic of a simple operating system structure like MS-DOS?
Which of the following is a characteristic of a simple operating system structure like MS-DOS?
Which of the following are key components of the UNIX operating system structure?
Which of the following are key components of the UNIX operating system structure?
What is a key function of the kernel in the UNIX operating system?
What is a key function of the kernel in the UNIX operating system?
In a layered operating system structure, what is the main characteristic of each layer?
In a layered operating system structure, what is the main characteristic of each layer?
What is a primary benefit of using a layered approach in operating system design?
What is a primary benefit of using a layered approach in operating system design?
What best describes the microkernel architecture?
What best describes the microkernel architecture?
What is the typical method of communication between user modules in a microkernel system?
What is the typical method of communication between user modules in a microkernel system?
Which of the following is a potential drawback of the microkernel system structure?
Which of the following is a potential drawback of the microkernel system structure?
What is a key feature of loadable kernel modules?
What is a key feature of loadable kernel modules?
Which of the following is a characteristic of modern operating systems that implement loadable kernel modules?
Which of the following is a characteristic of modern operating systems that implement loadable kernel modules?
What is the main purpose of 'Economy of scale' in multiprocessor systems?
What is the main purpose of 'Economy of scale' in multiprocessor systems?
Which interrupt vector number in the Intel Pentium interrupt vector table indicates a 'stack fault'?
Which interrupt vector number in the Intel Pentium interrupt vector table indicates a 'stack fault'?
What is the most accurate description of the difference between 'Fault-tolerant' and 'Graceful degradation' in multiprocessor systems?
What is the most accurate description of the difference between 'Fault-tolerant' and 'Graceful degradation' in multiprocessor systems?
Consider a scenario where a program attempts to access a memory location it is not authorized to access. What type of interrupt is most likely to be generated by the CPU in this situation?
Consider a scenario where a program attempts to access a memory location it is not authorized to access. What type of interrupt is most likely to be generated by the CPU in this situation?
In a system using a layered operating system structure, which of the following is a key characteristic regarding the interaction between Layer A (higher layer) and Layer B (lower layer)?
In a system using a layered operating system structure, which of the following is a key characteristic regarding the interaction between Layer A (higher layer) and Layer B (lower layer)?
What is the impact on interrupt system when external devices are using Direct Memory Access (DMA) to transfer data?
What is the impact on interrupt system when external devices are using Direct Memory Access (DMA) to transfer data?
Consider an operating system that is designed to support real-time task scheduling along with traditional time-sharing processes. Certain critical real-time tasks require immediate attention and must not be delayed by interrupts from less important processes. Which strategy would be most effective to prevent interrupt-related delays for high-priority real-time tasks?
Consider an operating system that is designed to support real-time task scheduling along with traditional time-sharing processes. Certain critical real-time tasks require immediate attention and must not be delayed by interrupts from less important processes. Which strategy would be most effective to prevent interrupt-related delays for high-priority real-time tasks?
Consider a highly scalable system with Symmetric Multiprocessing (SMP) architecture. During extensive load testing, the developers see the performance increases, and then drops substantially at higher values. Which of these is the most prevalent reason for 'Performance Saturation'?
Consider a highly scalable system with Symmetric Multiprocessing (SMP) architecture. During extensive load testing, the developers see the performance increases, and then drops substantially at higher values. Which of these is the most prevalent reason for 'Performance Saturation'?
Flashcards
Storage Hierarchy
Storage Hierarchy
Storage systems are organized in a hierarchy based on speed, cost, volatility, and size/capacity.
Booting
Booting
A process that loads and starts the operating system when a user switches on the power.
Bootstrap program
Bootstrap program
A program loaded at power-up or reboot that initializes all aspects of the system and loads the OS kernel. Usually stored in ROM or EPROM.
Single-Processor System
Single-Processor System
Signup and view all the flashcards
Multiprocessor System
Multiprocessor System
Signup and view all the flashcards
Increased Throughput
Increased Throughput
Signup and view all the flashcards
Economy of Scale
Economy of Scale
Signup and view all the flashcards
Increased Reliability
Increased Reliability
Signup and view all the flashcards
Graceful Degradation
Graceful Degradation
Signup and view all the flashcards
Fault-Tolerant System
Fault-Tolerant System
Signup and view all the flashcards
Asymmetric Multiprocessing
Asymmetric Multiprocessing
Signup and view all the flashcards
Symmetric Multiprocessing (SMP)
Symmetric Multiprocessing (SMP)
Signup and view all the flashcards
Clustered Systems
Clustered Systems
Signup and view all the flashcards
Interrupts
Interrupts
Signup and view all the flashcards
Hardware Interrupts
Hardware Interrupts
Signup and view all the flashcards
Software Interrupts
Software Interrupts
Signup and view all the flashcards
Traps
Traps
Signup and view all the flashcards
Interrupt Handling
Interrupt Handling
Signup and view all the flashcards
Interrupt Service Routine (ISR)
Interrupt Service Routine (ISR)
Signup and view all the flashcards
Interrupt Vector
Interrupt Vector
Signup and view all the flashcards
Simple Structure
Simple Structure
Signup and view all the flashcards
Non Simple Structure
Non Simple Structure
Signup and view all the flashcards
Layered Approach
Layered Approach
Signup and view all the flashcards
Microkernel System Structure
Microkernel System Structure
Signup and view all the flashcards
Loadable Kernel Modules
Loadable Kernel Modules
Signup and view all the flashcards
Study Notes
Storage Structure
- Storage systems are organized in a hierarchy based on speed, cost, volatility, and size/capacity
- Registers are the fastest and most expensive memory, while magnetic tapes are the slowest and least expensive
- Volatile memory loses its data when power is lost (Registers, Cache, Main Memory)
- Non-volatile memory retains data even without power (Solid State Drives, Magnetic Disks, Optical disks, Magnetic Tapes)
Computer Startup/Booting Process
- Booting is a process that loads the OS when the user turns on the power
- The bootstrap program is loaded at power-up or reboot
- The bootstrap program is stored in ROM or EPROM (firmware)
- Bootstrap program initializes all system aspects
- Bootstrap program loads the OS kernel and starts execution
- Boot process steps:
- User presses the start button, creating an electric signal
- Power supply sends wake up signals to the CPU
- CMOS Battery powers the CMOS Memory
- Power on Self Test (POST) runs
- If the POST fails the error is displayed
- Master Boot Record(MBR) is loaded
- OS starts
Computer-System Architecture
- Single-processor systems contain one CPU for general-purpose instructions
- Some single-processor systems also have special-purpose processors for tasks like disk, keyboard, DMA, and graphic control
- OS may manage special processors, like disk controllers, to schedule algorithms
- Multiprocessor systems have two or more processors working together
- Multiprocessor systems share computer bus, system clock, memory, and I/O devices
- Multiprocessor systems are also called parallel or multicore systems
Multiprocessor Systems: Advantages
- Multiprocessor systems increase thoughput to complete more work in less time
- Increased speed up in n processor system is not n due to overhead
- Multiprocessor systems are more economical due to shared I/O devices, memory, and power
- Multiprocessor systems increase reliability because failure will not stop the entire system
Multiprocessor Systems: Reliability
- Graceful degradation allows the system to maintain operations proportional to surviving parts
- Fault-tolerant systems continue functioning during component failures
- Fault-tolerant systems require failure detection, diagnoses, and correction
- Fault-tolerant systems may duplicate hardware/software to execute tasks in parallel
Multiprocessor Systems: Types
- Asymmetric multiprocessing uses a master processor to schedule and allocate work to slave processors
- Each slave processor waits for instructions from the master or has a predefined task
- Often used in extremely large systems
- Symmetric multiprocessing (SMP) does not use a master-slave model
- Each processor runs an identical copy of the OS, has its own registers and cache
- SMP shares the same memory
- SMP ensures that many processes can run without significant performance deterioration
- SMP often needs load balancing to improve performance
- Symmetric and asymmetric configurations can result from hardware or software design
Clustered Systems
- Clustered systems consists of multiple CPUs, like multiprocessors
- Clustered systems are individual systems or nodes
- Each node can be a single processor or multicore
- Clustered system share storage and communicate via LAN
- Clustered systems offer high-availability service
Interrupts
- Interrupts are signals sent to the CPU by external I/O devices
- Interrupts tell the CPU to stop its current activities and execute the OS
- There are three types of interrupts:
- Hardware interrupts are generated by hardware devices needing attention
- An example of hardware interupts are keystrokes on the keyboard completing a data transfer
- Software interrupts are generated by programs requesting a system call
- Traps are generated by the CPU itself to indicate an error requiring OS assistance
Interrupt Handling
- An interrupt suspends one program's execution to begin another
- Separate OS code segments handle each interrupt type
- The code that handles interrupts is called an Interrupt Service Routine
- Each I/O device has an associated memory location called an Interrupt Vector
- The Interrupt Vector contains the ISR's address
Interrupt Handling Process
- When an interrupt (or trap) occurs, hardware transfers control to the OS
- The OS preserves the CPU's state by storing registers and the Program Counter
- ISRs determine what action should be taken for each type of interrupt
- Intel Pentium interrupt vector table lists the vector number and description
Operating System Structure
- General-purpose OS is a large program that may be structured in various ways
- Simple structure (MS-DOS)
- More complex structure (UNIX)
- Layered structure (an abstraction)
- Microkernel (Mach)
Simple Structure: MS-DOS
- MS-DOS was written to provide the most functionality in the least space
- MS-DOS is not divided into modules
- MS-DOS has some structure, but its interfaces and functionality levels are not well separated
Non-Simple Structure: UNIX
- The original UNIX operating system had limited structuring due to hardware limitations
- UNIX OS consists of two separable parts:
- Systems programs
- The kernel consists of everything below the system-call interface and above physical hardware
- The kernel provides file system, CPU scheduling, memory management, and other operating-system functions
Layered Approach
- Layered approach divides the OS into levels, stacked on top of one another in layers
- The bottom layer (layer 0) is the hardware
- The highest layer (layer N) is the user interface
- Layers use operations/services of only lower-level layers by using MODULARITY
Microkernel System Structure
- Microkernel moves most of the kernel into user space
- Mach is an example of microkernel
- Mac OS X kernel (Darwin) is partly based on Mach
- Communication takes place between user modules using message passing
- Benefits of microkernel:
- Easier to extend the OS and port to new architectures
- More reliable and secure
- Detriments of microkernel:
- Performance overhead of user space to kernel space communication
Modules
- Modern operating systems implement loadable kernel modules
- This approach uses object-oriented programming
- Each core component is separate and talks to others over known interfaces
- Every module is loadable as needed within the kernel
- Modules are similar to layers but are more flexible (Linux, Solaris)
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.