Docsity

Operating system notes, Slides of Operating Systems

Partial preview of the text

Download Operating system notes and more Slides Operating Systems in PDF only on Docsity!

Aritra Saha || Spring24 || HITAritra Saha || Summer24 || HIT - K - K

CSE2102 : OS

OPERATING

SYSTEMS BASICS

HIT-K CSE 2102 Operating Systems HIT-K Aritra Saha || Summer 24 || 2 of 33

OVERVIEW

HIT-K CSE 2102 Operating Systems HIT-K Aritra Saha || Summer 24 || 4 of 33

What OS do you know about?

HIT-K CSE 2102 Operating Systems HIT-K Aritra Saha || Summer 24 || 5 of 33

▰ Computer

▰ Mobile

▰ TVs

▰ Smart Devices

▰ IoT Devices

▰ Embedded Devices

▰ Autonomous Vehicles

What needs an OS?

HIT-K CSE 2102 Operating Systems HIT-K Aritra Saha || Summer 24 || 7 of 33

▰ Divided into four components:

▰ User

▰ Application Programs

▰ Operating System

▰ Hardware

Computer System Structure

HIT-K CSE 2102 Operating Systems HIT-K Aritra Saha || Summer 24 || 8 of 33

▰ “Everything a vendor ships when you order an operating

system” is a good approximation

▰ “The one program running at all times on the computer” is

the kernel, part of the operating system

▰ Everything else is either

▻ a system program (ships with the operating system, but not part

of the kernel) , or

▻ an application program , all programs not associated with the

operating system

▰ No Universally Accepted Definition

Defining Operating System

HIT-K CSE 2102 Operating Systems HIT-K Aritra Saha || Summer 24 || 10 of 33

▰ Single-Processor

▰ Multiprocessor

  • Also known as parallel systems , tightly-coupled systems
  • Advantages include: Increased throughput, Economy of scale, Increased reliability
  • Two types: Asymmetric Multiprocessing, Symmetric Multiprocessing

▰ Clustered

  • Beowulf, Hadoop, Blockchain
  • Asymmetric clustering, Symmetric clustering
  • High Performance Computing

Computer System Architecture

HIT-K CSE 2102 Operating Systems HIT-K Aritra Saha || Summer 24 || 11 of 33

▰ Multi programming

  • Single user cannot keep CPU and I/O devices busy at all times
  • Multiprogramming organizes jobs (code and data) so CPU always has one to execute
  • A subset of total jobs in system is kept in memory
  • One job selected and run via job scheduling
  • When it has to wait (for I/O for example), OS switches to another job

▰ Time Sharing

  • Response time should be < 1 second
  • Each user has at least one program executing in memory  process
  • If several jobs ready to run at the same time  CPU scheduling
  • If processes don’t fit in memory, swapping moves them in and out to run
  • Virtual memory allows execution of processes not completely in memory

Types of OS

HIT-K CSE 2102 Operating Systems HIT-K Aritra Saha || Summer 24 || 13 of 33

▰ Embedded

  • Specific Task
  • Resource Efficient
  • Compact, Less Functionality
  • Handheld Devices

▰ Real Time

  • large number of events, mostly external, accepted and processed in within short critical deadlines
  • Specific case of Embedded
  • Hard, Soft

Types of OS

Aritra Saha || Summer 24 || HITAritra Saha || Spring24 || HIT––KK

Functions of OS

Module 1 Lecture 1

HIT-K CSE 2102 Operating Systems HIT-K Aritra Saha || Summer 24 || 16 of 33

▰ To execute a program all (or part) of the instructions must

be in memory

▰ All (or part) of the data that is needed by the program

must be in memory

▰ Memory management determines what is in memory and

when

▻ Optimizing CPU utilization and computer response to users

Memory Management

HIT-K CSE 2102 Operating Systems HIT-K Aritra Saha || Summer 24 || 17 of 33

▰ OS provides uniform, logical view of information storage

▻ Abstracts physical properties to logical storage unit - file

▰ File-System management

▻ Files usually organized into directories

▻ Access control on most systems to determine who can access

what

File System Management

HIT-K CSE 2102 Operating Systems HIT-K Aritra Saha || Summer 24 || 19 of 33

▰ One purpose of OS is to hide peculiarities of hardware

devices from the user

▰ I/O subsystem responsible for

▻ buffering (storing data temporarily while being transferred),

caching (storing parts of data in faster storage), spooling (the overlapping of output of one job with input of other jobs)

▻ General device-driver interface

▻ Drivers for specific hardware devices

I/O Management

HIT-K CSE 2102 Operating Systems HIT-K Aritra Saha || Summer 24 || 20 of 33

▰ Protection – any mechanism for controlling access of

processes or users to resources defined by the OS

▰ Security – defense of the system against internal and

external attacks

▻ Huge range, including denial-of-service, worms, viruses, identity

theft, theft of service

Protection & Security