Operating System - Lecture 1
12 Questions
2 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is an operating system?

A program that acts as an intermediary between a user of a computer and the computer hardware.

Which of the following are goals of an operating system? (Select all that apply)

  • Make computers harder to use
  • Use computer hardware efficiently (correct)
  • Make solving user problems easier (correct)
  • Execute user programs (correct)
  • What are the four components of a computer system?

    Hardware, Operating System, Application Programs, Users.

    Users of dedicated systems often care about resource utilization.

    <p>False</p> Signup and view all the answers

    What does an operating system act as in terms of resource management?

    <p>A resource allocator.</p> Signup and view all the answers

    What is the kernel?

    <p>The one program running at all times on the computer.</p> Signup and view all the answers

    What is the purpose of a bootstrap program?

    <p>To initialize all aspects of the system and load the operating system kernel.</p> Signup and view all the answers

    An event external to the currently executing process that causes a change in the normal flow of instruction execution is called an ______.

    <p>interrupt</p> Signup and view all the answers

    What type of memory is also referred to as volatile?

    <p>RAM (Random Access Memory).</p> Signup and view all the answers

    Which of the following storage types is nonvolatile? (Select all that apply)

    <p>Magnetic disks</p> Signup and view all the answers

    What is caching in the context of storage systems?

    <p>Copying information into faster storage temporarily.</p> Signup and view all the answers

    What do device controllers do?

    <p>Manage the operation of attached devices.</p> Signup and view all the answers

    Study Notes

    Operating System - Lecture 1

    • Operating System (OS) acts as intermediary between user and hardware
    • OS goals include executing user programs, streamlining problem-solving, and efficiently utilizing hardware
    • Computer systems consist of hardware, OS, application programs, and users
    • Hardware provides basic resources (CPU, memory, I/O devices)
    • OS manages hardware among applications and users
    • Application programs are software designed for specific tasks (e.g. word processors, media players).
    • Users can be people, machines, or other computer systems
    • OS is a resource allocator that manages all resources and decides on efficient and fair resource use
    • OS is a control program that controls program execution and prevents errors

    Operating System Definition (cont.)

    • Kernel is the one program continuously running on the computer

    Computer System Organization

    • Computer systems operate with one or more CPUs and device controllers connected via a common bus, providing access to shared memory
    • Components include CPU, disk controller, USB controller, graphics adapter, memory, and various input/output (I/O) devices (e.g. mouse, keyboard, monitor, printer)

    Computer Startup

    • Bootstrap program initializes system aspects at power-up/reboot
    • Typically stored in ROM or EPROM (firmware)
    • Loads operating system kernel and begins execution

    Common Functions of Interrupts

    • An interrupt signals an event outside the currently running process, changing its execution flow
    • Possible solutions:
      • Polling: CPU periodically checks devices
      • Interrupt: Interrupt line signals the processor, allowing interrupt handling

    Storage Structures

    • Programs must be loaded into main memory for execution
    • Main memory (RAM) is semiconductor-based dynamic RAM
    • Read Only Memory (ROM) stores static programs (e.g. bootstrap)
    • EEPROM is used in devices for factory-installed programs

    Storage Structure

    • RAM is volatile
    • Secondary storage (e.g. magnetic disks) is non-volatile, extending main memory capacity
    • Magnetic disks use platters with magnetic recording material on tracks divided into sectors

    Storage Hierarchy

    • Storage systems form a hierarchy based on speed, cost, and volatility
    • Caching copies information to faster storage (e.g., main memory is a cache for secondary storage)

    I/O Structure

    • Devices connect to controller interface (e.g., SCSI)
    • Device controllers manage devices and OS maintains device drivers for each

    Working of Device Controller

    • Device controller has registers and local buffers
    • Direct Memory Access (DMA) is used for bulk data movement

    OS Objectives and Functions

    • OS is a layer of software that manages devices and offers a simplified interface between applications and hardware.
    • Primary objectives include convenience, efficiency and ability to evolve.

    Layers and Views of Computer Systems

    • Computer systems are layered, providing increasingly complex views.

    Layered Approach

    • Users interact through applications
    • Applications are created using programming languages by application programmers
    • Operating system programs (utilities) allow applications to access hardware
    • Operating systems use a simplified interface that hides complexities from application programmers

    OS as User/Computer Interface

    • OS provides services relating to:
      • Program development (editors/debuggers)
      • Program execution (loading, running, and executing programs)
      • I/O device access – hides complexities from the user
      • Controlled access to files (file structure and user protection)
      • System access – accessing system resources as a whole and resolving resource conflicts
      • Error detection and accounting (monitoring usage)

    OS as Resource Manager

    • OS controls basic computer functions (movement, storage, processing of data)
    • Manages:
      • Main memory
      • I/O devices and files (determining I/O use in programs)
      • Processor (scheduling execution)
    • Kernel (part of OS) resides in main memory, containing frequently used functions.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Related Documents

    Operating System Lecture 1 PDF

    Description

    This quiz covers the fundamental concepts of operating systems, including their role as intermediaries between users and hardware. It discusses key components such as the kernel, resource allocation, and computer system organization. Perfect for those starting their study of operating systems.

    More Like This

    Use Quizgecko on...
    Browser
    Browser