SlideShare a Scribd company logo
1 of 29
Operating-System Structures
Operating System Services
ī‚´ One set of operating-system services provides functions that
are helpful to the user:
ī‚´ User interface - Almost all operating systems have a user interface (UI)
ī‚´ Varies between Command-Line (CLI), Graphics User Interface (GUI), Batch
ī‚´ Program execution - The system must be able to load a program into
memory and to run that program, end execution, either normally or
abnormally (indicating error)
ī‚´ I/O operations - A running program may require I/O, which may involve a
file or an I/O device.
ī‚´ File-system manipulation - The file system is of particular interest.
Obviously, programs need to read and write files and directories, create
and delete them, search them, list file Information, permission
management.
Operating System Services
(Cont.)
ī‚´ One set of operating-system services provides functions that
are helpful to the user (Cont):
ī‚´ Communications – Processes may exchange information, on the same
computer or between computers over a network
ī‚´ Communications may be via shared memory or through message passing
(packets moved by the OS)
ī‚´ Error detection – OS needs to be constantly aware of possible errors
ī‚´ May occur in the CPU and memory hardware, in I/O devices, in user program
ī‚´ For each type of error, OS should take the appropriate action to ensure correct
and consistent computing
ī‚´ Debugging facilities can greatly enhance the user’s and programmer’s abilities
to efficiently use the system
Operating System Services
(Cont.)
ī‚´ Another set of OS functions exists for ensuring the efficient operation of the
system itself via resource sharing
ī‚´ Resource allocation - When multiple users or multiple jobs running
concurrently, resources must be allocated to each of them
ī‚´ Many types of resources - Some (such as CPU cycles,mainmemory,
and file storage) may have special allocation code, others (such as
I/O devices) may have general request and release code.
ī‚´ Accounting - To keep track of which users use how much and what kinds
of computer resources
ī‚´ Protection and security - The owners of information stored in a multiuser
or networked computer system may want to control use of that
information, concurrent processes should not interfere with each other
ī‚´ Protection involves ensuring that all access to system resources is
controlled
ī‚´ Security of the system from outsiders requires user authentication,
extends to defending external I/O devices from invalid access
attempts
ī‚´ If a system is to be protected and secure, precautions must be
instituted throughout it. A chain is only as strong as its weakest link.
User Operating System
Interface - CLI
CLI allows direct command entry
ī‚´ Sometimes implemented in kernel, sometimes by systems program
ī‚´ Sometimes multiple flavors implemented – shells
ī‚´ Primarily fetches a command from user and executes it
ī‚´ Sometimes commands built-in, sometimes just names of programs
ī‚´ If the latter, adding new features doesn’t require shell modification
User Operating System
Interface - GUI
ī‚´ User-friendly desktop metaphor interface
ī‚´ Usually mouse, keyboard, and monitor
ī‚´ Icons represent files, programs, actions, etc
ī‚´ Various mouse buttons over objects in the interface cause
various actions (provide information, options, execute
function, open directory (known as a folder)
ī‚´ Invented at Xerox PARC
ī‚´ Many systems now include both CLI and GUI interfaces
ī‚´ Microsoft Windows is GUI with CLI “command” shell
ī‚´ Apple Mac OS X as “Aqua” GUI interface with UNIX kernel
underneath and shells available
ī‚´ Solaris is CLI with optional GUI interfaces (Java Desktop, KDE)
System Calls
ī‚´ Programming interface to the services provided by the
OS
ī‚´ Typically written in a high-level language (C or C++)
ī‚´ Mostly accessed by programs via a high-level Application
Program Interface (API) rather than direct system call use
ī‚´ Three most common APIs are Win32 API for Windows,
POSIX API for POSIX-based systems (including virtually all
versions of UNIX, Linux, and Mac OS X), and Java API for
the Java virtual machine (JVM)
ī‚´ Why use APIs rather than system calls?
(Note that the system-call names used throughout this
text are generic)
Example of System Calls
ī‚´ System call sequence to copy the contents of one
file to another file
Example of Standard API
ī‚´ Consider the ReadFile() function in the
ī‚´ Win32 API—a function for reading from a file
ī‚´ A description of the parameters passed to ReadFile()
ī‚´ HANDLE file—the file to be read
ī‚´ LPVOID buffer—a buffer where the data will be read into
and written from
ī‚´ DWORD bytesToRead—the number of bytes to be read into
the buffer
ī‚´ LPDWORD bytesRead—the number of bytes read during the
last read
ī‚´ LPOVERLAPPED ovl—indicates if overlapped I/O is being
used
System Call Implementation
ī‚´ Typically, a number associated with each system call
ī‚´ System-call interface maintains a table indexed according
to these numbers
ī‚´ The system call interface invokes intended system call in
OS kernel and returns status of the system call and any
return values
ī‚´ The caller need know nothing about how the system call
is implemented
ī‚´ Just needs to obey API and understand what OS will do as a
result call
ī‚´ Most details of OS interface hidden from programmer by API
ī‚´ Managed by run-time support library (set of functions built into
libraries included with compiler)
API – System Call – OS
Relationship
System Call Parameter
Passing
ī‚´ Often, more information is required than simply identity of
desired system call
ī‚´ Exact type and amount of information vary according to OS
and call
ī‚´ Three general methods used to pass parameters to the
OS
ī‚´ Simplest: pass the parameters in registers
ī‚´ In some cases, may be more parameters than registers
ī‚´ Parameters stored in a block, or table, in memory, and
address of block passed as a parameter in a register
ī‚´ This approach taken by Linux and Solaris
ī‚´ Parameters placed, or pushed, onto the stack by the
program and popped off the stack by the operating system
ī‚´ Block and stack methods do not limit the number or length
of parameters being passed
Types of System Calls
ī‚´ Process control
ī‚´ File management
ī‚´ Device management
ī‚´ Information maintenance
ī‚´ Communications
System Programs
ī‚´ System programs provide a convenient environment for
program development and execution. The can be divided
into:
ī‚´ File manipulation
ī‚´ Status information
ī‚´ File modification
ī‚´ Programming language support
ī‚´ Program loading and execution
ī‚´ Communications
ī‚´ Application programs
ī‚´ Most users’ view of the operation system is defined by system
programs, not the actual system calls
System Programs
ī‚´ Provide a convenient environment for program development and
execution
ī‚´ Some of them are simply user interfaces to system calls; others
are considerably more complex
ī‚´ File management - Create, delete, copy, rename, print, dump, list,
and generally manipulate files and directories
ī‚´ Status information
ī‚´ Some ask the system for info - date, time, amount of available
memory, disk space, number of users
ī‚´ Others provide detailed performance, logging, and debugging
information
ī‚´ Typically, these programs format and print the output to the
terminal or other output devices
ī‚´ Some systems implement a registry - used to store and retrieve
configuration information
System Programs (cont’d)
ī‚´ File modification
ī‚´ Text editors to create and modify files
ī‚´ Special commands to search contents of files or perform
transformations of the text
ī‚´ Programming-language support - Compilers, assemblers,
debuggers and interpreters sometimes provided
ī‚´ Program loading and execution- Absolute loaders,
relocatable loaders, linkage editors, and overlay-loaders,
debugging systems for higher-level and machine
language
ī‚´ Communications - Provide the mechanism for creating
virtual connections among processes, users, and
computer systems
ī‚´ Allow users to send messages to one another’s screens,
browse web pages, send electronic-mail messages, log in
remotely, transfer files from one machine to another
Operating System Design and
Implementation
ī‚´ Design and Implementation of OS not “solvable”, but
some approaches have proven successful
ī‚´ Internal structure of different Operating Systems can vary
widely
ī‚´ Start by defining goals and specifications
ī‚´ Affected by choice of hardware, type of system
ī‚´ User goals and System goals
ī‚´ User goals – operating system should be convenient to use,
easy to learn, reliable, safe, and fast
ī‚´ System goals – operating system should be easy to design,
implement, and maintain, as well as flexible, reliable, error-
free, and efficient
Operating System Design and
Implementation (Cont.)
ī‚´ Important principle to separate
Policy: What will be done?
Mechanism: How to do it?
ī‚´ Mechanisms determine how to do something, policies
decide what will be done
ī‚´ The separation of policy from mechanism is a very
important principle, it allows maximum flexibility if policy
decisions are to be changed later
Simple Structure
ī‚´ MS-DOS – written to provide the most functionality in
the least space
ī‚´ Not divided into modules
ī‚´ Although MS-DOS has some structure, its interfaces and
levels of functionality are not well separated
MS-DOS Layer Structure
Layered Approach
ī‚´ The operating system is divided into a number of layers
(levels), each built on top of lower layers. The bottom
layer (layer 0), is the hardware; the highest (layer N) is
the user interface.
ī‚´ With modularity, layers are selected such that each
uses functions (operations) and services of only lower-
level layers
Layered Operating System
Mac OS X Structure
Modules
ī‚´ Most modern operating systems implement kernel
modules
ī‚´ Uses object-oriented approach
ī‚´ Each core component is separate
ī‚´ Each talks to the others over known interfaces
ī‚´ Each is loadable as needed within the kernel
ī‚´ Overall, similar to layers but with more flexible
Virtual Machines
ī‚´ A virtual machine takes the layered approach to its
logical conclusion. It treats hardware and the operating
system kernel as though they were all hardware
ī‚´ A virtual machine provides an interface identical to the
underlying bare hardware
ī‚´ The operating system creates the illusion of multiple
processes, each executing on its own processor with its
own (virtual) memory
Virtual Machines (Cont.)
ī‚´ The resources of the physical computer are shared to
create the virtual machines
ī‚´ CPU scheduling can create the appearance that users
have their own processor
ī‚´ Spooling and a file system can provide virtual card
readers and virtual line printers
ī‚´ A normal user time-sharing terminal serves as the virtual
machine operator’s console
Operating System
Generation
ī‚´ Operating systems are designed to run on any of a
class of machines; the system must be configured for
each specific computer site
ī‚´ SYSGEN program obtains information concerning the
specific configuration of the hardware system
ī‚´ Booting – starting a computer by loading the kernel
ī‚´ Bootstrap program – code stored in ROM that is able
to locate the kernel, load it into memory, and start its
execution
System Boot
ī‚´ Operating system must be made available to
hardware so hardware can start it
ī‚´ Small piece of code – bootstrap loader, locates the
kernel, loads it into memory, and starts it
ī‚´ Sometimes two-step process where boot block at fixed
location loads bootstrap loader
ī‚´ When power initialized on system, execution starts at a
fixed memory location
ī‚´ Firmware used to hold initial boot code
THANK YOU

More Related Content

What's hot

2 operating system structures
2 operating system structures2 operating system structures
2 operating system structuresDr. Loganathan R
 
OS Functions and Services
OS Functions and ServicesOS Functions and Services
OS Functions and Servicessgpraju
 
Chapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresChapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresWayne Jones Jnr
 
STRUCTURE OF OPERATING SYSTEMS
STRUCTURE OF OPERATING SYSTEMSSTRUCTURE OF OPERATING SYSTEMS
STRUCTURE OF OPERATING SYSTEMSKABILESH RAMAR
 
Os structure
Os structureOs structure
Os structureMohd Arif
 
Operating System Structure (documentation)
Operating System Structure (documentation)Operating System Structure (documentation)
Operating System Structure (documentation)Navid Daneshvaran
 
OS Components and Structure
OS Components and StructureOS Components and Structure
OS Components and Structuresathish sak
 
Operating system structures
Operating system structuresOperating system structures
Operating system structuresMohd Arif
 
Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts PresentationNitish Jadia
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1sphs
 
Operating systems system structures
Operating systems   system structuresOperating systems   system structures
Operating systems system structuresMukesh Chinta
 
OPERATING SYSTEMS DESIGN AND IMPLEMENTATION
OPERATING SYSTEMSDESIGN AND IMPLEMENTATIONOPERATING SYSTEMSDESIGN AND IMPLEMENTATION
OPERATING SYSTEMS DESIGN AND IMPLEMENTATION sathish sak
 
Operating system components
Operating system componentsOperating system components
Operating system componentsSyed Zaid Irshad
 
Operating system 02 os as an extended machine
Operating system 02 os as an extended machineOperating system 02 os as an extended machine
Operating system 02 os as an extended machineVaibhav Khanna
 
Operating System
Operating SystemOperating System
Operating SystemSubhasis Dash
 
15. Computer Systems Basic Software 1
15. Computer Systems   Basic Software 115. Computer Systems   Basic Software 1
15. Computer Systems Basic Software 1New Era University
 
16. Computer Systems Basic Software 2
16. Computer Systems   Basic Software 216. Computer Systems   Basic Software 2
16. Computer Systems Basic Software 2New Era University
 
Windows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolWindows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolStacksol
 

What's hot (20)

2 operating system structures
2 operating system structures2 operating system structures
2 operating system structures
 
OS Functions and Services
OS Functions and ServicesOS Functions and Services
OS Functions and Services
 
Chapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresChapter 2 - Operating System Structures
Chapter 2 - Operating System Structures
 
STRUCTURE OF OPERATING SYSTEMS
STRUCTURE OF OPERATING SYSTEMSSTRUCTURE OF OPERATING SYSTEMS
STRUCTURE OF OPERATING SYSTEMS
 
Os structure
Os structureOs structure
Os structure
 
Operating System Structure (documentation)
Operating System Structure (documentation)Operating System Structure (documentation)
Operating System Structure (documentation)
 
operating system structure
operating system structureoperating system structure
operating system structure
 
OS Components and Structure
OS Components and StructureOS Components and Structure
OS Components and Structure
 
Operating system structures
Operating system structuresOperating system structures
Operating system structures
 
App A
App AApp A
App A
 
Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts Presentation
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1
 
Operating systems system structures
Operating systems   system structuresOperating systems   system structures
Operating systems system structures
 
OPERATING SYSTEMS DESIGN AND IMPLEMENTATION
OPERATING SYSTEMSDESIGN AND IMPLEMENTATIONOPERATING SYSTEMSDESIGN AND IMPLEMENTATION
OPERATING SYSTEMS DESIGN AND IMPLEMENTATION
 
Operating system components
Operating system componentsOperating system components
Operating system components
 
Operating system 02 os as an extended machine
Operating system 02 os as an extended machineOperating system 02 os as an extended machine
Operating system 02 os as an extended machine
 
Operating System
Operating SystemOperating System
Operating System
 
15. Computer Systems Basic Software 1
15. Computer Systems   Basic Software 115. Computer Systems   Basic Software 1
15. Computer Systems Basic Software 1
 
16. Computer Systems Basic Software 2
16. Computer Systems   Basic Software 216. Computer Systems   Basic Software 2
16. Computer Systems Basic Software 2
 
Windows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolWindows Architecture Explained by Stacksol
Windows Architecture Explained by Stacksol
 

Viewers also liked

30326851 -operating-system-unit-1-ppt
30326851 -operating-system-unit-1-ppt30326851 -operating-system-unit-1-ppt
30326851 -operating-system-unit-1-pptraj732723
 
Interrupts
InterruptsInterrupts
InterruptsNOTES EDU
 
REAL TIME OPERATING SYSTEM
REAL TIME OPERATING SYSTEMREAL TIME OPERATING SYSTEM
REAL TIME OPERATING SYSTEMprakrutijsh
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORGurudev joshi
 

Viewers also liked (6)

30326851 -operating-system-unit-1-ppt
30326851 -operating-system-unit-1-ppt30326851 -operating-system-unit-1-ppt
30326851 -operating-system-unit-1-ppt
 
Interrupts
InterruptsInterrupts
Interrupts
 
REAL TIME OPERATING SYSTEM
REAL TIME OPERATING SYSTEMREAL TIME OPERATING SYSTEM
REAL TIME OPERATING SYSTEM
 
Interrupts
InterruptsInterrupts
Interrupts
 
Interrupts
InterruptsInterrupts
Interrupts
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
 

Similar to Operating-System Structures

Operating System 2
Operating System 2Operating System 2
Operating System 2tech2click
 
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
 
OS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptxOS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptxPRABAVATHIH
 
MELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structureMELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structureMELJUN CORTES
 
OS Services, System call, Virtual Machine
OS Services, System call, Virtual MachineOS Services, System call, Virtual Machine
OS Services, System call, Virtual MachineDivya S
 
ch3 - operating system structures.ppt
ch3 - operating system structures.pptch3 - operating system structures.ppt
ch3 - operating system structures.pptdivyang32
 
Ch3 OS
Ch3 OSCh3 OS
Ch3 OSC.U
 
Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Amit Gupta
 
Ch2 operating-system structures
Ch2   operating-system structuresCh2   operating-system structures
Ch2 operating-system structuresWelly Dian Astika
 
Unit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptxUnit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptxThamaraiselviAvinuty
 
operating system structure
operating system structureoperating system structure
operating system structureHAMZA AHMED
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating systemJitendrakumar Upadhyay
 

Similar to Operating-System Structures (20)

Operating System 2
Operating System 2Operating System 2
Operating System 2
 
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
 
OS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptxOS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptx
 
CH02.pdf
CH02.pdfCH02.pdf
CH02.pdf
 
MELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structureMELJUN CORTES operating_system_structure
MELJUN CORTES operating_system_structure
 
OS Services, System call, Virtual Machine
OS Services, System call, Virtual MachineOS Services, System call, Virtual Machine
OS Services, System call, Virtual Machine
 
ch3 - operating system structures.ppt
ch3 - operating system structures.pptch3 - operating system structures.ppt
ch3 - operating system structures.ppt
 
Ch3
Ch3Ch3
Ch3
 
Ch3 OS
Ch3 OSCh3 OS
Ch3 OS
 
OSCh3
OSCh3OSCh3
OSCh3
 
OS_Ch3
OS_Ch3OS_Ch3
OS_Ch3
 
Os unit 1(cont)
Os unit 1(cont)Os unit 1(cont)
Os unit 1(cont)
 
Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]
 
Ch2 operating-system structures
Ch2   operating-system structuresCh2   operating-system structures
Ch2 operating-system structures
 
chapter2.pptx
chapter2.pptxchapter2.pptx
chapter2.pptx
 
Os lecture 6
Os lecture 6Os lecture 6
Os lecture 6
 
Unit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptxUnit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptx
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating system
 
OS-ch02-part-1-2024.ppt
OS-ch02-part-1-2024.pptOS-ch02-part-1-2024.ppt
OS-ch02-part-1-2024.ppt
 

More from Cloudbells.com

Raid : Redundant Array of Inexpensive Disks
Raid : Redundant Array of Inexpensive DisksRaid : Redundant Array of Inexpensive Disks
Raid : Redundant Array of Inexpensive DisksCloudbells.com
 
Introduction to Data Management
Introduction to Data ManagementIntroduction to Data Management
Introduction to Data ManagementCloudbells.com
 
Introductin to Data Modeling.
Introductin to Data Modeling.Introductin to Data Modeling.
Introductin to Data Modeling.Cloudbells.com
 
Client-Server Computing
Client-Server ComputingClient-Server Computing
Client-Server ComputingCloudbells.com
 
Database & Data Security
Database & Data SecurityDatabase & Data Security
Database & Data SecurityCloudbells.com
 
Green datacenters
Green datacentersGreen datacenters
Green datacentersCloudbells.com
 
Big data : Coudbells.com
Big data : Coudbells.comBig data : Coudbells.com
Big data : Coudbells.comCloudbells.com
 
Introduction to Web Hosting.
Introduction to Web Hosting.Introduction to Web Hosting.
Introduction to Web Hosting.Cloudbells.com
 

More from Cloudbells.com (10)

Raid : Redundant Array of Inexpensive Disks
Raid : Redundant Array of Inexpensive DisksRaid : Redundant Array of Inexpensive Disks
Raid : Redundant Array of Inexpensive Disks
 
Internet
InternetInternet
Internet
 
Introduction to Data Management
Introduction to Data ManagementIntroduction to Data Management
Introduction to Data Management
 
Introductin to Data Modeling.
Introductin to Data Modeling.Introductin to Data Modeling.
Introductin to Data Modeling.
 
Client-Server Computing
Client-Server ComputingClient-Server Computing
Client-Server Computing
 
Database & Data Security
Database & Data SecurityDatabase & Data Security
Database & Data Security
 
Data mining
Data miningData mining
Data mining
 
Green datacenters
Green datacentersGreen datacenters
Green datacenters
 
Big data : Coudbells.com
Big data : Coudbells.comBig data : Coudbells.com
Big data : Coudbells.com
 
Introduction to Web Hosting.
Introduction to Web Hosting.Introduction to Web Hosting.
Introduction to Web Hosting.
 

Recently uploaded

Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)
Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)
Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)lakshayb543
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A BeÃąa
 
call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸
call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸
call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 

Recently uploaded (20)

Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)
Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)
Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸
call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸
call girls in Kamla Market (DELHI) 🔝 >āŧ’9953330565🔝 genuine Escort Service 🔝✔ī¸âœ”ī¸
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 

Operating-System Structures

  • 2. Operating System Services ī‚´ One set of operating-system services provides functions that are helpful to the user: ī‚´ User interface - Almost all operating systems have a user interface (UI) ī‚´ Varies between Command-Line (CLI), Graphics User Interface (GUI), Batch ī‚´ Program execution - The system must be able to load a program into memory and to run that program, end execution, either normally or abnormally (indicating error) ī‚´ I/O operations - A running program may require I/O, which may involve a file or an I/O device. ī‚´ File-system manipulation - The file system is of particular interest. Obviously, programs need to read and write files and directories, create and delete them, search them, list file Information, permission management.
  • 3. Operating System Services (Cont.) ī‚´ One set of operating-system services provides functions that are helpful to the user (Cont): ī‚´ Communications – Processes may exchange information, on the same computer or between computers over a network ī‚´ Communications may be via shared memory or through message passing (packets moved by the OS) ī‚´ Error detection – OS needs to be constantly aware of possible errors ī‚´ May occur in the CPU and memory hardware, in I/O devices, in user program ī‚´ For each type of error, OS should take the appropriate action to ensure correct and consistent computing ī‚´ Debugging facilities can greatly enhance the user’s and programmer’s abilities to efficiently use the system
  • 4. Operating System Services (Cont.) ī‚´ Another set of OS functions exists for ensuring the efficient operation of the system itself via resource sharing ī‚´ Resource allocation - When multiple users or multiple jobs running concurrently, resources must be allocated to each of them ī‚´ Many types of resources - Some (such as CPU cycles,mainmemory, and file storage) may have special allocation code, others (such as I/O devices) may have general request and release code. ī‚´ Accounting - To keep track of which users use how much and what kinds of computer resources ī‚´ Protection and security - The owners of information stored in a multiuser or networked computer system may want to control use of that information, concurrent processes should not interfere with each other ī‚´ Protection involves ensuring that all access to system resources is controlled ī‚´ Security of the system from outsiders requires user authentication, extends to defending external I/O devices from invalid access attempts ī‚´ If a system is to be protected and secure, precautions must be instituted throughout it. A chain is only as strong as its weakest link.
  • 5. User Operating System Interface - CLI CLI allows direct command entry ī‚´ Sometimes implemented in kernel, sometimes by systems program ī‚´ Sometimes multiple flavors implemented – shells ī‚´ Primarily fetches a command from user and executes it ī‚´ Sometimes commands built-in, sometimes just names of programs ī‚´ If the latter, adding new features doesn’t require shell modification
  • 6. User Operating System Interface - GUI ī‚´ User-friendly desktop metaphor interface ī‚´ Usually mouse, keyboard, and monitor ī‚´ Icons represent files, programs, actions, etc ī‚´ Various mouse buttons over objects in the interface cause various actions (provide information, options, execute function, open directory (known as a folder) ī‚´ Invented at Xerox PARC ī‚´ Many systems now include both CLI and GUI interfaces ī‚´ Microsoft Windows is GUI with CLI “command” shell ī‚´ Apple Mac OS X as “Aqua” GUI interface with UNIX kernel underneath and shells available ī‚´ Solaris is CLI with optional GUI interfaces (Java Desktop, KDE)
  • 7. System Calls ī‚´ Programming interface to the services provided by the OS ī‚´ Typically written in a high-level language (C or C++) ī‚´ Mostly accessed by programs via a high-level Application Program Interface (API) rather than direct system call use ī‚´ Three most common APIs are Win32 API for Windows, POSIX API for POSIX-based systems (including virtually all versions of UNIX, Linux, and Mac OS X), and Java API for the Java virtual machine (JVM) ī‚´ Why use APIs rather than system calls? (Note that the system-call names used throughout this text are generic)
  • 8. Example of System Calls ī‚´ System call sequence to copy the contents of one file to another file
  • 9. Example of Standard API ī‚´ Consider the ReadFile() function in the ī‚´ Win32 API—a function for reading from a file ī‚´ A description of the parameters passed to ReadFile() ī‚´ HANDLE file—the file to be read ī‚´ LPVOID buffer—a buffer where the data will be read into and written from ī‚´ DWORD bytesToRead—the number of bytes to be read into the buffer ī‚´ LPDWORD bytesRead—the number of bytes read during the last read ī‚´ LPOVERLAPPED ovl—indicates if overlapped I/O is being used
  • 10. System Call Implementation ī‚´ Typically, a number associated with each system call ī‚´ System-call interface maintains a table indexed according to these numbers ī‚´ The system call interface invokes intended system call in OS kernel and returns status of the system call and any return values ī‚´ The caller need know nothing about how the system call is implemented ī‚´ Just needs to obey API and understand what OS will do as a result call ī‚´ Most details of OS interface hidden from programmer by API ī‚´ Managed by run-time support library (set of functions built into libraries included with compiler)
  • 11. API – System Call – OS Relationship
  • 12. System Call Parameter Passing ī‚´ Often, more information is required than simply identity of desired system call ī‚´ Exact type and amount of information vary according to OS and call ī‚´ Three general methods used to pass parameters to the OS ī‚´ Simplest: pass the parameters in registers ī‚´ In some cases, may be more parameters than registers ī‚´ Parameters stored in a block, or table, in memory, and address of block passed as a parameter in a register ī‚´ This approach taken by Linux and Solaris ī‚´ Parameters placed, or pushed, onto the stack by the program and popped off the stack by the operating system ī‚´ Block and stack methods do not limit the number or length of parameters being passed
  • 13. Types of System Calls ī‚´ Process control ī‚´ File management ī‚´ Device management ī‚´ Information maintenance ī‚´ Communications
  • 14. System Programs ī‚´ System programs provide a convenient environment for program development and execution. The can be divided into: ī‚´ File manipulation ī‚´ Status information ī‚´ File modification ī‚´ Programming language support ī‚´ Program loading and execution ī‚´ Communications ī‚´ Application programs ī‚´ Most users’ view of the operation system is defined by system programs, not the actual system calls
  • 15. System Programs ī‚´ Provide a convenient environment for program development and execution ī‚´ Some of them are simply user interfaces to system calls; others are considerably more complex ī‚´ File management - Create, delete, copy, rename, print, dump, list, and generally manipulate files and directories ī‚´ Status information ī‚´ Some ask the system for info - date, time, amount of available memory, disk space, number of users ī‚´ Others provide detailed performance, logging, and debugging information ī‚´ Typically, these programs format and print the output to the terminal or other output devices ī‚´ Some systems implement a registry - used to store and retrieve configuration information
  • 16. System Programs (cont’d) ī‚´ File modification ī‚´ Text editors to create and modify files ī‚´ Special commands to search contents of files or perform transformations of the text ī‚´ Programming-language support - Compilers, assemblers, debuggers and interpreters sometimes provided ī‚´ Program loading and execution- Absolute loaders, relocatable loaders, linkage editors, and overlay-loaders, debugging systems for higher-level and machine language ī‚´ Communications - Provide the mechanism for creating virtual connections among processes, users, and computer systems ī‚´ Allow users to send messages to one another’s screens, browse web pages, send electronic-mail messages, log in remotely, transfer files from one machine to another
  • 17. Operating System Design and Implementation ī‚´ Design and Implementation of OS not “solvable”, but some approaches have proven successful ī‚´ Internal structure of different Operating Systems can vary widely ī‚´ Start by defining goals and specifications ī‚´ Affected by choice of hardware, type of system ī‚´ User goals and System goals ī‚´ User goals – operating system should be convenient to use, easy to learn, reliable, safe, and fast ī‚´ System goals – operating system should be easy to design, implement, and maintain, as well as flexible, reliable, error- free, and efficient
  • 18. Operating System Design and Implementation (Cont.) ī‚´ Important principle to separate Policy: What will be done? Mechanism: How to do it? ī‚´ Mechanisms determine how to do something, policies decide what will be done ī‚´ The separation of policy from mechanism is a very important principle, it allows maximum flexibility if policy decisions are to be changed later
  • 19. Simple Structure ī‚´ MS-DOS – written to provide the most functionality in the least space ī‚´ Not divided into modules ī‚´ Although MS-DOS has some structure, its interfaces and levels of functionality are not well separated
  • 21. Layered Approach ī‚´ The operating system is divided into a number of layers (levels), each built on top of lower layers. The bottom layer (layer 0), is the hardware; the highest (layer N) is the user interface. ī‚´ With modularity, layers are selected such that each uses functions (operations) and services of only lower- level layers
  • 23. Mac OS X Structure
  • 24. Modules ī‚´ Most modern operating systems implement kernel modules ī‚´ Uses object-oriented approach ī‚´ Each core component is separate ī‚´ Each talks to the others over known interfaces ī‚´ Each is loadable as needed within the kernel ī‚´ Overall, similar to layers but with more flexible
  • 25. Virtual Machines ī‚´ A virtual machine takes the layered approach to its logical conclusion. It treats hardware and the operating system kernel as though they were all hardware ī‚´ A virtual machine provides an interface identical to the underlying bare hardware ī‚´ The operating system creates the illusion of multiple processes, each executing on its own processor with its own (virtual) memory
  • 26. Virtual Machines (Cont.) ī‚´ The resources of the physical computer are shared to create the virtual machines ī‚´ CPU scheduling can create the appearance that users have their own processor ī‚´ Spooling and a file system can provide virtual card readers and virtual line printers ī‚´ A normal user time-sharing terminal serves as the virtual machine operator’s console
  • 27. Operating System Generation ī‚´ Operating systems are designed to run on any of a class of machines; the system must be configured for each specific computer site ī‚´ SYSGEN program obtains information concerning the specific configuration of the hardware system ī‚´ Booting – starting a computer by loading the kernel ī‚´ Bootstrap program – code stored in ROM that is able to locate the kernel, load it into memory, and start its execution
  • 28. System Boot ī‚´ Operating system must be made available to hardware so hardware can start it ī‚´ Small piece of code – bootstrap loader, locates the kernel, loads it into memory, and starts it ī‚´ Sometimes two-step process where boot block at fixed location loads bootstrap loader ī‚´ When power initialized on system, execution starts at a fixed memory location ī‚´ Firmware used to hold initial boot code