Introduction to Operating Systems

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

Which component is NOT typically part of the computer system organization directly connected to the USB controller?

  • Printer
  • Mouse
  • Disk controller (correct)
  • Keyboard

What is the primary role of an Operating System (OS) in managing computer hardware?

  • Managing the physical storage and distribution of hardware.
  • Optimizing the marketing and sales of computer hardware.
  • Directly controlling the manufacturing of hardware components.
  • Serving as an intermediary between applications and hardware. (correct)

In the context of Operating Systems, what does the term 'abstraction' refer to?

  • The detailed study of hardware architecture and design.
  • The process of physically separating hardware components.
  • Hiding complex hardware details to provide a simplified interface. (correct)
  • Creating complex algorithms for hardware interaction.

Which of the following is NOT a typical function of an Operating System (OS)?

<p>Directly translating high-level code into machine code. (C)</p> Signup and view all the answers

Which of the following is a key characteristic of Kernel Mode operation?

<p>Full access to system hardware and unrestricted instruction execution. (C)</p> Signup and view all the answers

Which of the following describes a primary function of the Operating System?

<p>Managing all pieces of a complex system. (B)</p> Signup and view all the answers

What was a defining hardware technology of the first generation of operating systems (1945-55)?

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

Which of the following best characterizes operating systems of the second generation (1955-65)?

<p>Use of transistors along with batch processing. (B)</p> Signup and view all the answers

What key advancement defined the third generation of operating systems (1965-1980)?

<p>The implementation of integrated circuits (ICs) and multiprogramming. (B)</p> Signup and view all the answers

What technological advancement marks the fourth generation of operating systems (1980-Present)?

<p>The proliferation of personal computers. (B)</p> Signup and view all the answers

Which of the following is a characteristic of fifth-generation operating systems (1990-Present)?

<p>Emphasis on mobile computing and operating systems like iOS and Android. (C)</p> Signup and view all the answers

What is the primary function of the Memory Management Unit (MMU) in computer architecture?

<p>To manage and translate virtual addresses to physical addresses. (B)</p> Signup and view all the answers

What is the role of registers within a CPU?

<p>To temporarily store data and instructions for immediate use. (B)</p> Signup and view all the answers

Which of the following best describes the function of a Program Counter (PC) in a CPU?

<p>It contains the memory address of the next instruction to be fetched. (C)</p> Signup and view all the answers

What is the primary benefit of multithreading in CPU architecture?

<p>Improves performance by allowing multiple threads to run concurrently. (C)</p> Signup and view all the answers

Which memory type is typically the fastest and smallest in a computer's memory hierarchy?

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

In the context of I/O Device management, what is the role of the device driver?

<p>To provide an interface between the operating system and the device controller. (B)</p> Signup and view all the answers

What is the purpose of Direct Memory Access (DMA) in I/O operations?

<p>To enable I/O devices to access system memory independently of the CPU. (A)</p> Signup and view all the answers

What is the role of the system bus in computer architecture?

<p>To facilitate communication between different components. (B)</p> Signup and view all the answers

What is the main function of the Basic Input/Output System (BIOS)?

<p>To perform hardware initialization during the booting process. (A)</p> Signup and view all the answers

Which type of operating system is designed to manage and coordinate a large number of networked computers?

<p>Mainframe OS (C)</p> Signup and view all the answers

Which operating system is specifically designed for devices with limited resources, such as sensors and embedded systems?

<p>Sensor Node OS (B)</p> Signup and view all the answers

What is the key characteristic of a Real-Time Operating System (RTOS)?

<p>Providing immediate and predictable response to events. (B)</p> Signup and view all the answers

Which of the following is a fundamental aspect of an Operating System's concept of 'Processes'?

<p>An instance of a program in execution. (D)</p> Signup and view all the answers

What is the purpose of 'Protection' mechanisms in an Operating System?

<p>To prevent unauthorized access to system resources. (D)</p> Signup and view all the answers

What is the kernel's primary function regarding process management in an operating system?

<p>Managing the execution, scheduling, and termination of processes. (B)</p> Signup and view all the answers

What is the primary role of a 'Shell' in an Operating System?

<p>To provide an interface for user interaction. (C)</p> Signup and view all the answers

In the context of operating systems, what action is initiated when a program running in user mode requires access to a protected resource?

<p>A System Call (A)</p> Signup and view all the answers

What does a 'System Call' typically involve?

<p>A request from a user-level process to the OS kernel for a service. (C)</p> Signup and view all the answers

Which of the following is a common function performed via system calls?

<p>Creating and deleting files. (B)</p> Signup and view all the answers

What is the main purpose of a hypervisor?

<p>To create and run virtual machines. (D)</p> Signup and view all the answers

One key benefit of using a hypervisor is increased efficiency. How does a hypervisor contribute to this?

<p>By enabling better utilization of physical resources through virtualization. (D)</p> Signup and view all the answers

How does a type 1 hypervisor interact with the system hardware?

<p>Installs directly onto the hardware without an underlying OS. (A)</p> Signup and view all the answers

How does a Type 2 hypervisor differ from a Type 1 hypervisor?

<p>It runs on top of an Operating System. (D)</p> Signup and view all the answers

What is a primary benefit of flexibility by using a hypervisor?

<p>Ability to run operating systems on different hardware types. (D)</p> Signup and view all the answers

Which of the below options describe an Address space?

<p>A range of available memory addresses to a process. (D)</p> Signup and view all the answers

Which correctly describes Address Space Layout?

<p>It's a technique used by the operating system to determine how a program is loaded and organized in memory. (C)</p> Signup and view all the answers

Why introduce randomness of the memory address within the stack?

<p>To make it difficult for attackers to predict memory locations. (D)</p> Signup and view all the answers

Which of these statements is NOT true in regards to Address Space Layout randomization (ASLR)?

<p>Memory address locations will always be a moving target. (C)</p> Signup and view all the answers

Flashcards

Operating System (OS)

Software that manages computer hardware and software resources and provides common services for computer programs

Kernel Mode

The fundamental piece of software that has complete access to hardware and executes instructions.

User Mode

A more restricted mode where only a subset of machine instructions is available for software execution.

Abstraction Layers

A method by which the OS turns the complicated hardware into a simplified, user-friendly interface to allow for easier accessibility and management.

Signup and view all the flashcards

First Generation OS (1945-55)

An era which used vacuum tubes, plugboards, and punched cards.

Signup and view all the flashcards

Second Generation OS (1955-65)

An era utilizing transistors and batch systems to improve processing power.

Signup and view all the flashcards

Third Generation OS (1965-1980)

An era characterized by the use of integrated circuits (ICs) and multiprogramming.

Signup and view all the flashcards

Fourth Generation OS (1980-Present)

An era that brought about the personal computer through Large Scale Integration.

Signup and view all the flashcards

Fifth Generation OS (1990-Present)

A contemporary period in OS history focused on mobile computing.

Signup and view all the flashcards

Motherboard

A computer's main circuit board which includes the CPU, memory sockets, and expansion slots.

Signup and view all the flashcards

Memory (RAM)

The primary storage area used for currently running programs and data.

Signup and view all the flashcards

Multithreading

A technique allowing multiple parts of a program to run concurrently and improve performance.

Signup and view all the flashcards

Program Counter (PC)

A program counter that contains the memory address of the next instruction.

Signup and view all the flashcards

Current Instruction Register (CIR)

A register holding the instruction being executed

Signup and view all the flashcards

I/O Devices

An Input/Output system that handles communication with peripherals

Signup and view all the flashcards

Virtual Memory Management

A method where user operations are translated into hardware instructions

Signup and view all the flashcards

Interoperability

A series of interconnected routines that facilitate the flow of information across different systems

Signup and view all the flashcards

Process ID (PID)

A number used by most operating system kernels to uniquely identify an active process.

Signup and view all the flashcards

User Identification (UID)

Each person authorized to use a system is assigned a User Identification by the system administrator

Signup and view all the flashcards

Group ID (GID)

Users can be members of groups, each of which has a Group ID.

Signup and view all the flashcards

Container

Where processes are contained within to operate

Signup and view all the flashcards

System Call

A request made to the OS kernel by a program running in user mode. Used to access system resources.

Signup and view all the flashcards

Hypervisor (VMM)

Software that creates and runs virtual machines (VMs), sharing resources like memory and processing power.

Signup and view all the flashcards

Type 1 Hypervisors

Hypervisors that run directly on the hardware.

Signup and view all the flashcards

Type 2 Hypervisors

Hypervisors that run on top of an existing operating system.

Signup and view all the flashcards

Study Notes

  • Education transcends mere fact memorization, it cultivates critical thinking
  • The presentation covers an introduction to operating systems

Outline

  • Definition of Operating System (OS)
  • History of OS's
  • Computer Hardware Architecture
  • Types of Operating System
  • Operating System Concept
  • System Calls
  • Hypervisor

Learning Outcomes

  • Understanding the definition, importance, and main functions of an OS
  • Differentiating between Kernel and User modes of operation
  • Knowing key milestones in OS history
  • Reviewing the architecture of computer hardware
  • Identifying various OS types
  • Grasping the core ideas and parts of an OS
  • Defining System Calls
  • Knowing the importance of System Calls
  • Understanding the different kinds of System Calls, their applications, and functions
  • Grasping the concept of virtualization

Definition of OS

  • A diagram illustrates a computer system's organization
  • Components include the CPU, disk controller, USB controller, and graphics adapter
  • Peripherals like mouse, keyboard, printer, and monitor connect via these controllers to the memory

Role of OS

  • An OS acts as the central point connecting applications with hardware
  • Applications interact with the Monitor, Printer, Hard Drive, Keyboard and Mouse via the OS

Examples of OS

  • Examples of Operating systems include: Windows, MacOS and Linux

Where the OS fits

  • The OS resides between the hardware and software layers
  • User mode includes web browsers, e-mail readers, and music players
  • Kernel mode houses the operating system
  • Software such as user interface programs exists between user mode and the OS
  • The hardware is the foundation upon which the OS operates

Kernel Mode vs User Mode

  • Kernel mode grants complete hardware access
  • It allows the execution of any instruction the machine can perform, and is often called supervisor mode
  • User mode limits available machine instructions, and it is the software's access

What is an OS?

  • Operating Systems convert the ugly into the beautiful by providing a beautiful interface

OS and Abstraction

  • The OS provides layers of abstraction
  • Interacts by dealing with hardware to provide an interface to read and write disk blocks
  • Programs can create, write, and read files without direct hardware interaction

What is an OS?

  • The OS buffers output for the printer on the disk

Main Jobs of the OS

  • Two main jobs include: providing abstractions to applications, and managing all the pieces of a complex system

History of OS's

The First Generation (1945-55): Vacuum Tubes

  • Vacuum tubes and punched cards were used

Second Generation (1955-65): Transistors and Batch Systems

  • During this era, transistors replaced vacuum tubes, leading to the development of batch systems and the FMS Fortran Monitor System

Third Generation (1965–1980): ICs and Multiprogramming

  • Integrated circuits led to multiprogramming, IBM 360, SPOOLING (Simultaneous Peripheral Operation On Line) and computer time sharing

Minicomputers

  • Bell Labs leads to Unix with Small PDP-7 Minicomputers

Fourth Generation (1980–Present): Personal Computers

  • Large-scale integration (LSI) helped create Personal Computers

Windows Timeline

  • MSDOS (1980)
  • Windows 3.1 (1992)
  • Windows XP (2001)
  • Windows 7 (2009)
  • Windows 10 (2015)
  • Windows 1 (1985)
  • Windows 95 (1995)
  • Windows Vista (2007)
  • Windows 8 (2012)
  • Windows 11 (2021)
  • GUI: Graphical User Interface

Macintosh Timeline

  • 1984 Macintosh release
  • 1999 Macintosh release
  • 2001 Macintosh release
  • 2017 Macintosh release
  • GUI: Graphical User Interface

Unix History

  • Unix versions and their derivatives are shown in a detailed architecture diagram

Fifth Generation (1990–Present): Mobile Computers

  • The history and timeline of mobile phones

  • Motorola 8900X-2

  • Nokia 2146

  • Nokia 3210

  • Nokia 6210

  • Ericsson T39

  • Alcatel OT511

  • Samsung E250

  • Apple iPhone

  • Blackberry Curve 8900

  • Samsung Galaxy S2

  • Samsung Galaxy S4

  • Sony Xperia Z Ultra

  • The Brick Phone was the First Mobile Phone from 1970

  • The first real smart phone appeared in the mid -1990's: Nokia N900

  • Ericsson released a smart phone in 1997 called The GS88 Penelope

Mobile Operating Systems

  • iOS - Released by Apple in 2007
  • Android - Released by Google in 2008

Computer Hardware Architecture

Simple Personal Computer Components

  • Components include the monitor, keyboard, USB printer, and hard disk drive
  • CPU and Memory are also key components
  • Video controller, Keyboard controller, USB controller and Hard disk controller are important
  • All components communicate through a bus

CPU

  • CPU consists of fetching from memory, decode, type determination and execute

CPU Architecture

  • The Central Processing Unit contains the control unit and arithmetic/logic unit
  • Input and output devices communicate with the CPU via registers and memory
  • Registers
  • PC: Program Counter that contains the memory address of the next instruction to be fetched
  • CIR: Current Instruction Register
  • AC: Accumulator that stores intermediate ALU results

Multithreading

  • Multi-core ships include Core 1, Core 2, Core 3 and Core 4

Memory

  • Registers have the fastest access time and the least storage
  • Cache is second fastest access time and more storage
  • Main memory is slower access time and more storage
  • Magnetic disk is very slow access time and highest storage
  • Typical Memory Hierarchy:
  • CPU > Registers (<1 KB)
  • Cache (4 MB)
  • Main memory (1-8 GB)
  • Magnetic disk (1-4 TB)

Input/Output

  • The OS interacts with I/O devices through device drivers and I/O controllers

Input Output Devices (I/O) and Methods

  • The First Method consists of User Mode, Kernel Mode, Device Drive, Input and returning output
  • The second method shows an interrupt controller
  • The third method shows a DMA controller interacting with the CPU and Memory

Buses

  • Buses link different components or devices to a computer
  • CPU, ALU Registers and controls all communicate with memory and Input / Output via the system bus
  • System Bus (Internal) consists of Data Bus, Address Bus, Control Bus

Basic Input Output System

  • BIOS configurations, boot order, security and exit options

Types of Operating System

  • Mainframe OS
  • Server OS
  • Multiprocessor OS
  • Embedded OS
  • Personal Computer OS
  • Sensor Node OS
  • Real Time OS
  • Smart Cards OS

Operating System Concept

Core Components

  • Processes
  • Addresses Space
  • File
  • Protection
  • Shell

Processes

  • A program needs an executable program, program's data, resources, and synchronization to operate
  • The virtual address space for processes must be contained

Process Communication

  • Processes interact with resource-friendly, performance, and security, scalability
  • Processes interact with interoperability, accessibility, and monitoability

Process Terminology

  • PID (Process ID) is used to uniquely identify an active process
  • UID (User IDentification) identifies users authorized to use the system
  • GID identifies the groups to which users can belong

Address space

  • 32 bits Address Space
  • Stack
  • Heap
  • BSS
  • Data
  • Text
  • 64 bits Address Space
  • Reserved
  • Stack
  • Shared Libraries
  • Reserved
  • Heap
  • Data
  • Text

Address Space

  • Virtual Memory Management handles memory map and RAM

Files

  • Hierarchy of files including Root directory, Students, Faculty

I/O

  • The operating system manages input/output operations through interfaces with keyboards, display terminals, and printers

Protection

  • Protection includes access control and malware protection and information protection provided by the operating system

UNIX Example

  • Describes file access control in a UNIX-like system using commands like ls (list files) and getfacl (get file access control list) to display permissions

Shell

  • Shell interfaces with the Operating System and are mostly UNIX, such as Bourne Shell and C Shell

System Call

  • Access to resources in kernel mode by a program running in user mode is achieved via a system call

System Call Sequence

  • System call sequence for reading data from one file and copying to another with the following sequence:
  • Source file> Writing a Prompt> Accept input> Writing a prompt> Accept input> Acquire input file> Acquire output file> open input file> create output file> Write to output file> Destination file> Read from Input file> close output file> Write completion message> Terminate completely

Types of System Calls

  • System calls are categorized by function:Process Control, File Manipulation, Device Manipulation, Information Maintenance, and Communications

Hypervisor

  • A hypervisor (Virtual Machines Monitor - VMM) which supports multiple guest VMS by virtually sharing its resources

Benefits of Hypervisor

  • Speed - Hypervisor allows virtual machines to be created instantly
  • Efficiency - Hypervisors allow for more efficient utilization of one physical server, with lower costs to run several virtual machines
  • Flexibility - Hypervisors allow operating systems and their applications to run on a variety of hardware types by separating os from underyling hardware

Hypervisors

  • Type 1 Hypervisor interacts directly with the physical server
  • Type 2 Hypervisor interacts with the physical server through a host OS

Studying That Suits You

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

Quiz Team

Related Documents

More Like This

Operating System - Lecture 1
10 questions

Operating System - Lecture 1

EnthralledTelescope1181 avatar
EnthralledTelescope1181
Operating Systems Chapter on System Calls
42 questions
Operating System Services and System Calls
46 questions
Use Quizgecko on...
Browser
Browser