Storage Structure and Computer Booting Process

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

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?

  • Solid State Drives
  • Registers (correct)
  • Main Memory
  • Magnetic Disks

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?

  • Running user applications
  • Managing system hardware
  • Providing a user interface
  • Loading the operating system kernel (correct)

Where is the bootstrap program typically stored?

<p>ROM or EPROM (B)</p>
Signup and view all the answers

Which of the following is NOT a typical function of the bootstrap program?

<p>Managing user accounts (D)</p>
Signup and view all the answers

What is the purpose of the Power On Self Test (POST) during the booting process?

<p>To test hardware components (D)</p>
Signup and view all the answers

In a single-processor system, what is the primary function of the CPU?

<p>Executing general-purpose instructions (B)</p>
Signup and view all the answers

Which type of system contains two or more processors that work together?

<p>Multiprocessor system (A)</p>
Signup and view all the answers

Which of the following is an advantage of multiprocessor systems?

<p>Increased throughput and reliability (C)</p>
Signup and view all the answers

What does 'graceful degradation' refer to in the context of multiprocessor systems?

<p>A system's ability to continue operating, possibly at a reduced level, despite the failure of some components (C)</p>
Signup and view all the answers

In asymmetric multiprocessing, what is the role of the 'master' processor?

<p>Scheduling and allocating work to other processors (A)</p>
Signup and view all the answers

Which of the following best describes symmetric multiprocessing (SMP)?

<p>Each processor runs an identical copy of the operating system and shares memory. (B)</p>
Signup and view all the answers

How do clustered systems differ from multiprocessor systems?

<p>Clustered systems consist of multiple independent systems, while multiprocessor systems have CPUs within a single system. (C)</p>
Signup and view all the answers

What is a primary benefit of using clustered systems?

<p>High-availability service (A)</p>
Signup and view all the answers

What is the primary function of interrupts in an operating system?

<p>To signal the CPU to stop its current activities and handle a new task (B)</p>
Signup and view all the answers

Which type of interrupt is generated by a program to request a service from the operating system?

<p>Software Interrupt (D)</p>
Signup and view all the answers

What is a 'trap' in the context of interrupts?

<p>An interrupt generated by the CPU due to an error or condition. (B)</p>
Signup and view all the answers

What is the purpose of an Interrupt Service Routine (ISR)?

<p>To determine the action to be taken for a specific type of interrupt (D)</p>
Signup and view all the answers

What does the Interrupt Vector contain?

<p>The address of the interrupt service routine (D)</p>
Signup and view all the answers

What action does the operating system take when an interrupt occurs?

<p>Preserves the state of the CPU and executes the interrupt service routine. (B)</p>
Signup and view all the answers

In the Intel Pentium interrupt vector table, what type of exception does the vector number 0 represent?

<p>Divide error (B)</p>
Signup and view all the answers

Which of the following is a characteristic of a simple operating system structure like MS-DOS?

<p>Monolithic structure with limited modularity (A)</p>
Signup and view all the answers

Which of the following are key components of the UNIX operating system structure?

<p>Systems programs and the kernel (D)</p>
Signup and view all the answers

What is a key function of the kernel in the UNIX operating system?

<p>Managing the file system, CPU scheduling, and memory management (B)</p>
Signup and view all the answers

In a layered operating system structure, what is the main characteristic of each layer?

<p>Each layer is built on top of lower layers and uses their functions. (B)</p>
Signup and view all the answers

What is a primary benefit of using a layered approach in operating system design?

<p>Simplified design and modularity (A)</p>
Signup and view all the answers

What best describes the microkernel architecture?

<p>A kernel that provides minimal services, with other services in user space (A)</p>
Signup and view all the answers

What is the typical method of communication between user modules in a microkernel system?

<p>Message passing (B)</p>
Signup and view all the answers

Which of the following is a potential drawback of the microkernel system structure?

<p>Performance overhead due to user-kernel communication (C)</p>
Signup and view all the answers

What is a key feature of loadable kernel modules?

<p>They can be dynamically added and removed from the kernel at runtime. (C)</p>
Signup and view all the answers

Which of the following is a characteristic of modern operating systems that implement loadable kernel modules?

<p>Object-oriented approach (C)</p>
Signup and view all the answers

What is the main purpose of 'Economy of scale' in multiprocessor systems?

<p>To share I/O devices, memory storage, and power supplies (B)</p>
Signup and view all the answers

Which interrupt vector number in the Intel Pentium interrupt vector table indicates a 'stack fault'?

<p>12 (B)</p>
Signup and view all the answers

What is the most accurate description of the difference between 'Fault-tolerant' and 'Graceful degradation' in multiprocessor systems?

<p>'Fault-tolerant' systems continue functioning without any loss of performance, whereas 'Graceful degradation' systems may have reduced performance. (B)</p>
Signup and view all the answers

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?

<p>General Protection Fault (Trap) (A)</p>
Signup and view all the answers

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)?

<p>Layer A uses only the exposed interfaces and functions of Layer B, without needing to know Layer B's internal implementation details. (D)</p>
Signup and view all the answers

What is the impact on interrupt system when external devices are using Direct Memory Access (DMA) to transfer data?

<p>DMA transfer reduces the number of interrupts, with a single interrupt typically generated upon completion of the entire block transfer. (D)</p>
Signup and view all the answers

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?

<p>Configuring the interrupt controller to mask or disable interrupts from low-priority devices during the execution of high-priority tasks. (E)</p>
Signup and view all the answers

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'?

<p>Lock Contention (A)</p>
Signup and view all the answers

Flashcards

Storage Hierarchy

Storage systems are organized in a hierarchy based on speed, cost, volatility, and size/capacity.

Booting

A process that loads and starts the operating system when a user switches on the power.

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

A single-processor system contains one CPU for general instructions, and may contain special purpose processors.

Signup and view all the flashcards

Multiprocessor System

A multiprocessor system contains two or more processors sharing resources like the system bus, clock, memory, and I/O devices; also called a parallel or multicore system.

Signup and view all the flashcards

Increased Throughput

Getting more work done in less time due to presence of multiple processors. It's not linear speedup.

Signup and view all the flashcards

Economy of Scale

The ability of a multiprocessor system to share I/O devices, memory, and power supplies, reducing costs.

Signup and view all the flashcards

Increased Reliability

One processors failure does not make the whole system down, maintaining system functionality despite individual component failures.

Signup and view all the flashcards

Graceful Degradation

The system can perform operations proportional to the level of the surviving parts of the system.

Signup and view all the flashcards

Fault-Tolerant System

The system continues its function even in component failures through redundancy and error correction.

Signup and view all the flashcards

Asymmetric Multiprocessing

A multiprocessor system where one master processor assigns tasks to slave processors.

Signup and view all the flashcards

Symmetric Multiprocessing (SMP)

A multiprocessor system where each processor runs an identical copy of the operating system and shares memory. Load balancing and improved performance.

Signup and view all the flashcards

Clustered Systems

A system consisting of multiple CPUs (nodes) that are individual systems sharing storage and communicating via LAN; offers high-availability service.

Signup and view all the flashcards

Interrupts

Signals sent to the CPU by external devices, requesting the CPU to stop its current activities and execute the appropriate part of the operating system.

Signup and view all the flashcards

Hardware Interrupts

Interrupts generated by hardware devices signaling they need attention from the OS.

Signup and view all the flashcards

Software Interrupts

Interrupts generated by programs to request a system call to be performed by the operating system.

Signup and view all the flashcards

Traps

Interrupts generated by the CPU to indicate an error or condition requiring assistance from the operating system.

Signup and view all the flashcards

Interrupt Handling

A routine that suspends the execution of the current program and starts the execution of another program upon interrupt.

Signup and view all the flashcards

Interrupt Service Routine (ISR)

A segment of code in the OS that determines the action to be taken for each type of interrupt.

Signup and view all the flashcards

Interrupt Vector

A location near the bottom of memory associated with each I/O device, containing the address of the interrupt service routine.

Signup and view all the flashcards

Simple Structure

An operating system structure where the OS is written to provide maximum functionality in minimal space, without modular separation.

Signup and view all the flashcards

Non Simple Structure

An operating system structure where the OS consists of systems programs and the kernel that comprises everything below the system-call interface.

Signup and view all the flashcards

Layered Approach

OS structure divided into levels, each built on top of lower layers, from hardware to the user interface, promoting modularity.

Signup and view all the flashcards

Microkernel System Structure

OS structure that moves as much from the kernel into user space, using message passing for communication. easier to extend.

Signup and view all the flashcards

Loadable Kernel Modules

A flexible OS design where core components are separate, object oriented, and loadable as needed within the kernel.

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.

Quiz Team

Related Documents

More Like This

Memory Hierarchy Quiz
10 questions

Memory Hierarchy Quiz

DesirableInfinity avatar
DesirableInfinity
Memory Hierarchy Quiz
10 questions

Memory Hierarchy Quiz

UpbeatTourmaline avatar
UpbeatTourmaline
Memory Hierarchy and Virtual Memory Quiz
5 questions
Use Quizgecko on...
Browser
Browser