SlideShare a Scribd company logo
1 of 26
Lecture 1
Agenda for Today
 Introduction and purpose of the course
 Organization of a computer system
 Purpose of a computer system—setting
the stage for OS concepts and principles
 Outline of topics to be discussed in the
course
 What is an operating system?
 Recap of the lecture
1. Hardware
2. Operating system
3. Applications programs
4. Users
Computer systems consist of
software and hardware that
are combined to provide a
tool to solve specific
problems in an efficient
manner
Execute programs
Computer System Hardware
Keyboard Mouse
Printer
RAM/ROM
HD
Mem
Bus
System Bus
Monitor
CD
Processor
Floating Point
Unit
Integer
Unit
Cache
Control
Unit
Course Outline
 Operating system concepts
 Operating system structures
 Introduction to UNIX/Linux user interface
 Processes and threads—scheduling,
concurrency, synchronization, etc.
 Deadlocks
 Memory management
 Virtual memory
 File system
 Secondary storage management
Single-user systems
Batch systems
Multiprogrammed systems
Time-sharing systems
Real-time systems
Interrupts, traps, and software interrupts
(UNIX signals)
Hardware protection
Operating system services
System calls
Semantics of system call execution
Operating system structures (monolithic,
microkernel-based, layered, virtual
machines, DOS-Windows, UNIX)
System design and implementation
Directory structure
Browsing directory structure
Useful commands
Process concept (process, states,
attributes, etc.)
Process scheduling (scheduler)
Context switching (dispatcher)
Operations on processes (creation,
termination, signaling, suspend,
foreground, background, etc.)
Process management in UNIX (fork, wait,
exec, exit, etc.)
Sample code for UNIX/Linux process
management
Cooperating processes
Interprocess communication (IPC)
IPC in UNIX/Linux (pipe, FIFO, socket,
message queue, etc.)
Communication between UNIX/Linux
processes (pipe, mkfifo, read, write, close,
etc.)
Sample code
UNIX/Linux processes (process images,
control structures, etc. explained with
sample code)
Managing UNIX/Linux processes (ps, top,
fg, bg, <Ctrl-Z>, <Ctrl-C>, etc.)
Thread concept (thread, states,
attributes, etc.)
User- and kernel-level threads
POSIX threads (the pthread
library)
Sample code
Basic concepts
Scheduling criteria
Scheduling triggers
Scheduling algorithms
UNIX System V scheduling algorithm
Optimal scheduling
Algorithm evaluation
Basic concept
The Critical Section Problem
Solutions for the Critical Section Problem
Software-based solutions—the Bakery
Algorithm
Hardware-based solutions
Semaphores
Binary and counting semaphores
Classic problems of synchronization
Deadlocks and starvation
Critical regions
Monitors
Synchronization tools used in Solaris,
Linux, and Windows
Deadlocks and starvation
Pthread library functions
Basic concept
Deadlock characterization
Deadlock handling (prevention, avoidance,
detection and recovery)
Banker’s algorithm
Basic concepts
Various techniques for memory
management
Logical to physical address translation
Swapping
Contiguous memory allocation: MFT, MVT
External fragmentation
Paging
Hardware support for paging
Internal fragmentation
Performance of paging
Protection and sharing
Page table issues: Multi-level paging,
Hashed page tables, Inverted page tables
Segmentation
Protection and sharing
Segmentation with paging
Intel P4 example
Basic concept
Demand paging
Page fault
Performance of demand paging
Page replacement
Allocation of frames
Thrashing
Operating-system examples
Other considerations (I/O locking, page
size, …)
Basic concepts (file attributes, operations,
types, structure, etc.)
Access methods (sequential, random, etc.)
Directory structure
UNIX/Linux directory structure (links in UNIX)
File system mounting, sharing, and protection
UNIX/Linux examples for sharing and
protection, and relevant commands (chmod,
ln, ln –s, etc.)
Basic concepts (overview of disk structure,
file structure, boot control block, super block,
inode, per process file descriptor table,
system-wide open-file table, etc.)
Directory implementation
Free space management methods
Space Allocation Methods
Time and space performance of allocation
methods
Brief introduction to Network File System
(NFS)
Disk structure and scheduling
Disk management (formatting,
boot block, bad blocks, etc.)
Course Recap
What is an Operating
System?
 A program that acts as an intermediary
between a user of a computer and the
computer hardware—provides the user a
simpler (virtual) machine to work with
 A program that allocates and deallocates
computer system resources in an efficient,
fair, and secure manner—a resource
manager
Execute user programs and make solving
user problems easier.
Make the computer system convenient to
use.
Use the computer hardware in an efficient
manner.

More Related Content

Similar to Lecture1.pptx

Apos week 1 4
Apos week 1   4Apos week 1   4
Apos week 1 4alixafar
 
Understanding operating systems 5th ed ch15
Understanding operating systems 5th ed ch15Understanding operating systems 5th ed ch15
Understanding operating systems 5th ed ch15BarrBoy
 
chapter 3 opreating system lecture note and its is impaortamt concept for mn
chapter 3 opreating system  lecture note and its is impaortamt concept for mnchapter 3 opreating system  lecture note and its is impaortamt concept for mn
chapter 3 opreating system lecture note and its is impaortamt concept for mndejenehundaol91
 
Operating system new syllabus
Operating system new syllabusOperating system new syllabus
Operating system new syllabusrama sama
 
Unit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptxUnit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptxThamaraiselviAvinuty
 
OS in 6 hours 640764073707670476407640.pdf
OS in 6 hours 640764073707670476407640.pdfOS in 6 hours 640764073707670476407640.pdf
OS in 6 hours 640764073707670476407640.pdfChetanRaut43
 
Evolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave ProbertEvolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave Probertyang
 
Lecture_02_Operating System Structures Operating Systems
Lecture_02_Operating System Structures Operating SystemsLecture_02_Operating System Structures Operating Systems
Lecture_02_Operating System Structures Operating SystemsArnoyKhan
 
ch3 - operating system structures.ppt
ch3 - operating system structures.pptch3 - operating system structures.ppt
ch3 - operating system structures.pptdivyang32
 
Operating-System Structures
Operating-System StructuresOperating-System Structures
Operating-System StructuresCloudbells.com
 
Visual comparison of Unix-like systems & Virtualisation
Visual comparison of Unix-like systems & VirtualisationVisual comparison of Unix-like systems & Virtualisation
Visual comparison of Unix-like systems & Virtualisationwangyuanyi
 
Operating System 2
Operating System 2Operating System 2
Operating System 2tech2click
 
Understanding operating systems 5th ed ch10
Understanding operating systems 5th ed ch10Understanding operating systems 5th ed ch10
Understanding operating systems 5th ed ch10BarrBoy
 

Similar to Lecture1.pptx (20)

operating system structure
operating system structureoperating system structure
operating system structure
 
Apos week 1 4
Apos week 1   4Apos week 1   4
Apos week 1 4
 
Understanding operating systems 5th ed ch15
Understanding operating systems 5th ed ch15Understanding operating systems 5th ed ch15
Understanding operating systems 5th ed ch15
 
chapter 3 opreating system lecture note and its is impaortamt concept for mn
chapter 3 opreating system  lecture note and its is impaortamt concept for mnchapter 3 opreating system  lecture note and its is impaortamt concept for mn
chapter 3 opreating system lecture note and its is impaortamt concept for mn
 
Operating system new syllabus
Operating system new syllabusOperating system new syllabus
Operating system new syllabus
 
Unit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptxUnit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptx
 
OS in 6 hours.pdf
OS in 6 hours.pdfOS in 6 hours.pdf
OS in 6 hours.pdf
 
OS in 6 hours 640764073707670476407640.pdf
OS in 6 hours 640764073707670476407640.pdfOS in 6 hours 640764073707670476407640.pdf
OS in 6 hours 640764073707670476407640.pdf
 
Operating system
Operating systemOperating system
Operating system
 
Evolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave ProbertEvolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave Probert
 
Oct2009
Oct2009Oct2009
Oct2009
 
Lecture_02_Operating System Structures Operating Systems
Lecture_02_Operating System Structures Operating SystemsLecture_02_Operating System Structures Operating Systems
Lecture_02_Operating System Structures Operating Systems
 
ch3 - operating system structures.ppt
ch3 - operating system structures.pptch3 - operating system structures.ppt
ch3 - operating system structures.ppt
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Unit 4
Unit  4Unit  4
Unit 4
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating system
 
Operating-System Structures
Operating-System StructuresOperating-System Structures
Operating-System Structures
 
Visual comparison of Unix-like systems & Virtualisation
Visual comparison of Unix-like systems & VirtualisationVisual comparison of Unix-like systems & Virtualisation
Visual comparison of Unix-like systems & Virtualisation
 
Operating System 2
Operating System 2Operating System 2
Operating System 2
 
Understanding operating systems 5th ed ch10
Understanding operating systems 5th ed ch10Understanding operating systems 5th ed ch10
Understanding operating systems 5th ed ch10
 

Recently uploaded

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationNeilDeclaro1
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactisticshameyhk98
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answersdalebeck957
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 

Recently uploaded (20)

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

Lecture1.pptx

  • 2. Agenda for Today  Introduction and purpose of the course  Organization of a computer system  Purpose of a computer system—setting the stage for OS concepts and principles  Outline of topics to be discussed in the course  What is an operating system?  Recap of the lecture
  • 3. 1. Hardware 2. Operating system 3. Applications programs 4. Users
  • 4.
  • 5. Computer systems consist of software and hardware that are combined to provide a tool to solve specific problems in an efficient manner Execute programs
  • 6. Computer System Hardware Keyboard Mouse Printer RAM/ROM HD Mem Bus System Bus Monitor CD Processor Floating Point Unit Integer Unit Cache Control Unit
  • 7. Course Outline  Operating system concepts  Operating system structures  Introduction to UNIX/Linux user interface  Processes and threads—scheduling, concurrency, synchronization, etc.  Deadlocks  Memory management  Virtual memory  File system  Secondary storage management
  • 8. Single-user systems Batch systems Multiprogrammed systems Time-sharing systems Real-time systems Interrupts, traps, and software interrupts (UNIX signals) Hardware protection
  • 9. Operating system services System calls Semantics of system call execution Operating system structures (monolithic, microkernel-based, layered, virtual machines, DOS-Windows, UNIX) System design and implementation
  • 10. Directory structure Browsing directory structure Useful commands
  • 11. Process concept (process, states, attributes, etc.) Process scheduling (scheduler) Context switching (dispatcher) Operations on processes (creation, termination, signaling, suspend, foreground, background, etc.) Process management in UNIX (fork, wait, exec, exit, etc.)
  • 12. Sample code for UNIX/Linux process management Cooperating processes Interprocess communication (IPC) IPC in UNIX/Linux (pipe, FIFO, socket, message queue, etc.)
  • 13. Communication between UNIX/Linux processes (pipe, mkfifo, read, write, close, etc.) Sample code UNIX/Linux processes (process images, control structures, etc. explained with sample code) Managing UNIX/Linux processes (ps, top, fg, bg, <Ctrl-Z>, <Ctrl-C>, etc.)
  • 14. Thread concept (thread, states, attributes, etc.) User- and kernel-level threads POSIX threads (the pthread library) Sample code
  • 15. Basic concepts Scheduling criteria Scheduling triggers Scheduling algorithms UNIX System V scheduling algorithm Optimal scheduling Algorithm evaluation
  • 16. Basic concept The Critical Section Problem Solutions for the Critical Section Problem Software-based solutions—the Bakery Algorithm Hardware-based solutions Semaphores Binary and counting semaphores
  • 17. Classic problems of synchronization Deadlocks and starvation Critical regions Monitors Synchronization tools used in Solaris, Linux, and Windows Deadlocks and starvation Pthread library functions
  • 18. Basic concept Deadlock characterization Deadlock handling (prevention, avoidance, detection and recovery) Banker’s algorithm
  • 19. Basic concepts Various techniques for memory management Logical to physical address translation Swapping Contiguous memory allocation: MFT, MVT External fragmentation Paging Hardware support for paging Internal fragmentation
  • 20. Performance of paging Protection and sharing Page table issues: Multi-level paging, Hashed page tables, Inverted page tables Segmentation Protection and sharing Segmentation with paging Intel P4 example
  • 21. Basic concept Demand paging Page fault Performance of demand paging Page replacement Allocation of frames Thrashing Operating-system examples Other considerations (I/O locking, page size, …)
  • 22. Basic concepts (file attributes, operations, types, structure, etc.) Access methods (sequential, random, etc.) Directory structure UNIX/Linux directory structure (links in UNIX) File system mounting, sharing, and protection UNIX/Linux examples for sharing and protection, and relevant commands (chmod, ln, ln –s, etc.)
  • 23. Basic concepts (overview of disk structure, file structure, boot control block, super block, inode, per process file descriptor table, system-wide open-file table, etc.) Directory implementation Free space management methods Space Allocation Methods Time and space performance of allocation methods Brief introduction to Network File System (NFS)
  • 24. Disk structure and scheduling Disk management (formatting, boot block, bad blocks, etc.) Course Recap
  • 25. What is an Operating System?  A program that acts as an intermediary between a user of a computer and the computer hardware—provides the user a simpler (virtual) machine to work with  A program that allocates and deallocates computer system resources in an efficient, fair, and secure manner—a resource manager
  • 26. Execute user programs and make solving user problems easier. Make the computer system convenient to use. Use the computer hardware in an efficient manner.