SlideShare a Scribd company logo
Chapter 1: Introduction
Operating System Concepts
 What is an Operating System?
 Serial processing
 Desktop Systems
 Multiprocessor Systems
 Distributed Systems
 Clustered System
 Real -Time Systems
 Handheld Systems
 Computing Environments
What is an Operating System?
Operating System Concepts
 A program that acts as an intermediary
between a user of a computer and the
computer hardware.
 Operating system goals:
 Execute user programs and make solving user problems
easier.
 Make the computer system convenient to use.
 Use the computer hardware in an efficient
manner.
Operating System Definitions
Operating System Concepts
 Resource allocator – manages and allocates
resources.
 Control program – controls the execution of
user programs and operations of I/O devices
.
 Kernel – the one program running at all
times (all else being application programs).
Computer System Components
Operating System Concepts
1. Hardware – provides basic computing
resources (CPU, memory, I/O devices).
2. Applications programs – define the ways in which
the system resources are used to solve the
computing problems of the users (web browsers,
word processor, database systems, video games,
business programs).
3. Operating system – controls and coordinates the
use of the hardware among the various
application programs for the various users.
4. Users (people, machines, other computers).
Abstract View of System Components
Operating System Concepts
User and OS
Operating System Concepts
OS facilitates use of resources by hiding local details
and presenting an interface which is convenient to use.
For instance : computer games, e-mail, browsing or
preparing documents are applications launched by
simply
clicking on cue icons. How easy it is !
User and system view of OS
Operating System Concepts
User perspective : ease of usage is the main
consideration.
System perspective : efficiency in usage of resources is
the main consideration.
As a provider of resources - OS must have a policy and a
control program to regulate the allocation of resources.
System Boot
Operating System Concepts
The procedure of starting a computer by loading the kernel
Is known as booting the system.
The bootstrap program locates the kernel
This program resides in ROM for its convenience .
This form of ROM is known as firmware.
After loading the OS starts executing the first process
such as “init” and waits for some event to occur.
“Stage 1: the BIOS”
“Stage 2: the boot loader”
“Stage 3: the mini-Debian system”
“Stage 4: the normal Debian system”
Operating System Concepts
Serial Processing
Operating System Concepts
 Programs are directly interact with hardware( no
operating system)
 For executing the a programs the following serial
steps are necessary
 Type the program on punched card
 Convert the punched card to card reader
 Submit for computation. The error is indicated by
light
 Programmer it self identify the error
 Take the output
 Then the programmer ready for next program
Disadvantage
Difficult for the user and also time consuming
Memory Layout for a Simple Batch System
Operating System Concepts
Same type of jobs
batch together and
execute at a time
Multi programmed Systems
Operating System Concepts
Sequential processing wasteful.
 Processor and Memory not fully utilized.
 Processor idles during Input output.
 Solution: Allow multiple programs to reside in the
main memory.
 When one program engages I/O the other can use
the processor.
Multi programmed Systems
Operating System Concepts
Several jobs are kept in main memory at the same time, and the
CPU is multiplexed among them.
OS Features Needed for Multiprogramming
Operating System Concepts
 I/O routine supplied by the system.
 Memory management – the system must
allocate the memory to several jobs.
 CPU scheduling – the system must choose
among several jobs ready to run.
 Allocation of devices.
ADVANTAGES
 Efficient memory utilization
 CPU utilization more
 Increased Throughput
Time-Sharing Systems–Interactive Computing
Operating System Concepts
 It is a logical extension of multi programming.
 The CPU scheduler select a job from the ready
queue and switches the CPU to that job. When
time slot expired
the CPU switches from this job to another job.
 Users get an illusion as if he has the whole
system
for himself.
 In this method the CPU time is shared by
different process . So it is said to be TIME-
SHARING-SYSTEM.
 Time sharing provide interactive system where
the direct communication between user and
system is possible while executing.
Design Consideration
 How many programs may reside in the main
memory to allow, and also sustain timesharing?
 What should be the time slice allocated to
process each program?
 How would one protect a users’ program and data
from being overwritten by another users’
program?
Operating System Concepts
Real-Time Systems
Operating System Concepts
 Often used as a control device
in a dedicated application such
as controlling scientific
experiments, medical imaging
systems, industrial control
systems, and some display
systems.
 Well-defined fixed-time
constraints.
 Real-Time systems may be
either hard or soft real-time.
Real-Time Systems (Cont.)
Operating System Concepts
 Hard real-time:
 Secondary storage limited or absent, data stored in short term
memory, or read-only memory (ROM)
 Conflicts with time-sharing systems, not supported by
general-purpose operating systems.
 Soft real-time
 Limited utility in industrial control of robotics
 Useful in applications (multimedia, virtual reality) requiring
advanced operating-system features.
Parallel Systems
Operating System Concepts
 Multiprocessor systems with more than on
CPU in close communication.
 Tightly coupled system – processors share
memory and a clock; communication usually
takes place through the shared memory.
 Advantages of parallel system:
 Increased throughput
 Economical
 Increased reliability
 graceful degradation
 fail-soft systems
Parallel Systems (Cont.)
Operating System Concepts
 Symmetric multiprocessing (SMP)
 Each processor runs and identical copy of the operating
system.
 Many processes can run at once without performance
deterioration.
 Most modern operating systems support SMP
 Asymmetric multiprocessing
 Each processor is assigned a specific task; master processor
schedules and allocated work to slave processors.
 More common in extremely large systems
Symmetric Multiprocessing Architecture
Operating System Concepts
Desktop Systems
Operating System Concepts
 Personal computers – computer system
dedicated to a single user.
 I/O devices – keyboards, mice, display screens,
small printers.
 User convenience and responsiveness.
 Can adopt technology developed for larger
operating system’ often individuals have sole
use of computer and do not need advanced
CPU utilization of protection features.
 May run several different types of operating
systems (Windows, MacOS, UNIX, Linux)
Distributed Systems
Operating System Concepts
 Distribute the computation among several
physical processors.
 Loosely coupled system – each processor has
its own local memory; processors communicate
with one another through various
communications lines, such as high-speed
buses or telephone lines.
 Advantages of distributed systems.
 Resources Sharing
 Computation speed up – load sharing
 Reliability
 Communications(message passing)
Distributed Systems (cont)
Operating System Concepts
 Requires networking infrastructure.
 Local area networks (LAN) or Wide area
networks (WAN)
 May be either client-server or peer-to-peer
systems.
General Structure of Client-
Server
Operating System Concepts
Handheld Systems
Operating System Concepts
 Personal Digital Assistants
(PDAs)
 Cellular telephones
 Issues:
 Limited memory
 Slow processors
 Small display screens.
Simputer
Migration of Operating-System Concepts and Features
Operating System Concepts
Computing Environments
Operating System Concepts
 Traditional computing
 Client server computing
 Peer-to-Peer Computing
 Web-Based Computing
 Embedded Computing
Hardware Protection
Operating System Concepts
 Dual-Mode Operation
 I/O Protection
 Memory Protection
 CPU Protection
Dual-Mode Operation
Operating System Concepts
 Sharing system resources requires operating
system to ensure that an incorrect program
cannot cause other programs to execute
incorrectly.
 Provide hardware support to differentiate between
at least two modes of operations.
1. User mode – execution done on behalf of a user.
2. Monitor mode (also kernel mode or system
mode) – execution done on behalf of operating
system.
Dual-Mode Operation (Cont.)
Operating System Concepts
 Mode bit added to computer hardware to
indicate the current mode: monitor (0) or user
(1).
 When an interrupt or fault occurs hardware
switches to monitor mode.
Privileged instructions can be issued only in monitor mode.
monitor user
Interrupt/fault
set user mode
Operating System Concepts
I/O Protection
Operating System Concepts
 All I/O instructions are privileged instructions.
 Must ensure that a user program could never
gain control of the computer in monitor mode
(I.e., a user program that, as part of its execution,
stores a new address in the interrupt vector).
Use of A System Call to Perform
I/O
Operating System Concepts
Memory Protection
Operating System Concepts
 Must provide memory protection at least for the
interrupt vector and the interrupt service routines.
 In order to have memory protection, add two
registers that determine the range of legal
addresses a program may access:
 Base register – holds the smallest legal physical
memory address.
 Limit register – contains the size of the range
 Memory outside the defined range is protected.
Use of A Base and Limit Register
Operating System Concepts
Hardware Address Protection
Operating System Concepts
CPU Protection
Operating System Concepts
 Timer – interrupts computer after specified period
to ensure operating system maintains control.
 Timer is decremented every clock tick.
 When timer reaches the value 0, an interrupt
occurs.
 Timer commonly used to implement time sharing.
 Time also used to compute the current time.
 Load-timer is a privileged instruction.
Operating System Services
Operating System Concepts
 User interface – command –line interface, batch interface,
graphics user interface.
 Program execution – system capability to load a program into
memory and to run it.
 I/O operations – since user programs cannot execute I/O
operations directly, the operating system must provide some
means to perform I/O.
 File-system manipulation – program capability to read, write,
create, and delete files.
 Communications – exchange of information between processes
executing either on the same computer or on different systems
tied together by a network. Implemented via shared memory or
message passing.
 Error detection – ensure correct computing by detecting errors in
the CPU and memory hardware, in I/O devices, or in user
programs.
Operating System Services
Operating System Concepts
Additional functions exist not for helping the
user, but rather for ensuring efficient system
operations.
•Resource allocation – allocating resources to
multiple users or multiple jobs running at the
same time.
•Accounting – keep track of and record which
users use how much and what kinds of
computer resources for account billing or for
accumulating usage statistics.
•Protection – ensuring that all access to system
resources is controlled.
System Calls
Operating System Concepts
 System calls provide the interface between a
running program and the operating system.
 Generally available as assembly-language
instructions.
 Languages defined to replace assembly
language for systems programming allow
system calls to be made directly (e.g., C, C++)
System Calls Example
Operating System Concepts
System Calls Example
Operating System Concepts
 Most programmer never see this level of details
 Application developers design program
according to the API
 API specifies a set of function that are available
to the application programmer including input
parameters and expected return values from the
function.
 The system call interface intercepts function
calls in the API and invokes the necessary
system call within the operating system.
System Calls
Operating System Concepts
Passing of Parameters As A Table
Operating System Concepts
Three general methods are used to pass parameters between a
running program and the operating system.
1.Pass parameters in registers.
2.Store the parameters in a table in memory, and the table
address is passed as a parameter in a register.
3.Push (store) the parameters onto the stack by the
program, and pop off the stack by operating system.
Types of System Calls
Operating System Concepts
 Process control
(end,abort,load,execute,create,terminate,get
atrributes,set attributes,wait for time)
 File management (create file, delete file,
open,close,read,write,reposition,get file attributes)
 Device management (request device , release device,
get device attributes, set device attributes,)
 Information maintenance (get time or date, set time or
date, get system data, set system data, get process
file, get device attributes)
 Communications(send and receive message, transfer
status information)
Process Management
Operating System Concepts
 A process is a program in execution. A
process needs certain resources, including
CPU time, memory, files, and I/O devices, to
accomplish its task.
 The operating system is responsible for the
following activities in connection with
process management.
 Process creation and deletion.
 process suspension and resumption.
 Provision of mechanisms for:
 process synchronization
 process communication
Main-Memory Management
Operating System Concepts
 Memory is a large array of words or bytes, each
with its own address. It is a repository of quickly
accessible data shared by the CPU and I/O
devices.
 Main memory is a volatile storage device. It
loses its contents in the case of system failure.
 The operating system is responsible for the
following activities in connections with memory
management:
 Keep track of which parts of memory are currently
being used and by whom.
 Decide which processes to load when memory
space becomes available.
 Allocate and deallocate memory space as needed.
Secondary-Storage Management
Operating System Concepts
 Since main memory (primary storage) is volatile
and too small to accommodate all data and
programs permanently, the computer system
must provide secondary storage to back up
main memory.
 Most modern computer systems use disks as
the principle on-line storage medium, for both
programs and data.
 The operating system is responsible for the
following activities in connection with disk
management:
 Free space management
 Storage allocation
 Disk scheduling
File-System Management
Operating System Concepts
 A file is a collection of related information
defined by its creator.
 File represent programs and data in any
form( numeric, alphabetic, alphanumeric or
binary).
 The operating system is responsible for the
following activities in connection with file
management:
 Creating and deleting file
 Creating and deleting directories
 Manipulation of file and directories
 Mapping files onto secondary storage
 Backing of files on stable media
I/O System Management
Operating System Concepts
 The I/O system consists of:
 A buffer-caching system
 A general device-driver interface
 Drivers for specific hardware devices

More Related Content

Similar to Operting system

Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]
Amit Gupta
 
Types of os
Types of osTypes of os
Types of os
HIMANSHU TAYAL
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
Akhilesh Jain
 
Operating System
Operating SystemOperating System
Operating System
Subhasis Dash
 
3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf
rohitbaweja26
 
Operating system notes
Operating system notesOperating system notes
Operating system notesSANTOSH RATH
 
Unit 1 q&a
Unit  1 q&aUnit  1 q&a
Introduction to OS.pdf
Introduction to OS.pdfIntroduction to OS.pdf
Introduction to OS.pdf
CheriviralaNikhil
 
R20CSE2202-OPERATING-SYSTEMS .pdf
R20CSE2202-OPERATING-SYSTEMS        .pdfR20CSE2202-OPERATING-SYSTEMS        .pdf
R20CSE2202-OPERATING-SYSTEMS .pdf
cVan3
 
Os unit 1
Os unit 1Os unit 1
Os unit 1
Krupali Mistry
 
operating system notes by madhavi.pdf
operating system notes by madhavi.pdfoperating system notes by madhavi.pdf
operating system notes by madhavi.pdf
MadhaviAvhankar1
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating system
Jitendrakumar Upadhyay
 
Lecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionLecture_01 Operating System Course Introduction
Lecture_01 Operating System Course Introduction
ArnoyKhan
 
Operating system
Operating systemOperating system
Operating system
Ibrahim MH
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2
Ismail Mukiibi
 
LM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsLM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system calls
manideepakc
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)Sohaib Danish
 
Operating system
Operating systemOperating system
Operating system
chetan handa
 

Similar to Operting system (20)

Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]
 
Types of os
Types of osTypes of os
Types of os
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
 
Operating System
Operating SystemOperating System
Operating System
 
3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf
 
Operating system notes
Operating system notesOperating system notes
Operating system notes
 
Unit 1 q&a
Unit  1 q&aUnit  1 q&a
Unit 1 q&a
 
Ch1
Ch1Ch1
Ch1
 
Introduction to OS.pdf
Introduction to OS.pdfIntroduction to OS.pdf
Introduction to OS.pdf
 
Os notes
Os notesOs notes
Os notes
 
R20CSE2202-OPERATING-SYSTEMS .pdf
R20CSE2202-OPERATING-SYSTEMS        .pdfR20CSE2202-OPERATING-SYSTEMS        .pdf
R20CSE2202-OPERATING-SYSTEMS .pdf
 
Os unit 1
Os unit 1Os unit 1
Os unit 1
 
operating system notes by madhavi.pdf
operating system notes by madhavi.pdfoperating system notes by madhavi.pdf
operating system notes by madhavi.pdf
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating system
 
Lecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionLecture_01 Operating System Course Introduction
Lecture_01 Operating System Course Introduction
 
Operating system
Operating systemOperating system
Operating system
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2
 
LM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsLM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system calls
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)
 
Operating system
Operating systemOperating system
Operating system
 

More from KAnurag2

twitter ppt .pptx
twitter ppt                                  .pptxtwitter ppt                                  .pptx
twitter ppt .pptx
KAnurag2
 
Module-6 process managedf;jsovj;ksdv;sdkvnksdnvldknvlkdfsment.ppt
Module-6 process managedf;jsovj;ksdv;sdkvnksdnvldknvlkdfsment.pptModule-6 process managedf;jsovj;ksdv;sdkvnksdnvldknvlkdfsment.ppt
Module-6 process managedf;jsovj;ksdv;sdkvnksdnvldknvlkdfsment.ppt
KAnurag2
 
Module III - 1 - Orders of Growth.p df
Module III - 1 - Orders of Growth.p   dfModule III - 1 - Orders of Growth.p   df
Module III - 1 - Orders of Growth.p df
KAnurag2
 
Module-2Deadlock.ppt
Module-2Deadlock.pptModule-2Deadlock.ppt
Module-2Deadlock.ppt
KAnurag2
 
dsppt-141121224848-conversion-gate01.pptx
dsppt-141121224848-conversion-gate01.pptxdsppt-141121224848-conversion-gate01.pptx
dsppt-141121224848-conversion-gate01.pptx
KAnurag2
 
Feasibility Study.pptx
Feasibility Study.pptxFeasibility Study.pptx
Feasibility Study.pptx
KAnurag2
 
Law-Of-Supply-_-Elasticity-of-Supply-PPT.ppt
Law-Of-Supply-_-Elasticity-of-Supply-PPT.pptLaw-Of-Supply-_-Elasticity-of-Supply-PPT.ppt
Law-Of-Supply-_-Elasticity-of-Supply-PPT.ppt
KAnurag2
 
dsa project.pptx
dsa project.pptxdsa project.pptx
dsa project.pptx
KAnurag2
 
Transformer.pptx
Transformer.pptxTransformer.pptx
Transformer.pptx
KAnurag2
 
key (1).pptx
key (1).pptxkey (1).pptx
key (1).pptx
KAnurag2
 
C PROJECT 1.pptx
C PROJECT 1.pptxC PROJECT 1.pptx
C PROJECT 1.pptx
KAnurag2
 
PPT - Independent and Dependent.pptx
PPT - Independent and Dependent.pptxPPT - Independent and Dependent.pptx
PPT - Independent and Dependent.pptx
KAnurag2
 
MATH PROJECT (3).pptx
MATH PROJECT (3).pptxMATH PROJECT (3).pptx
MATH PROJECT (3).pptx
KAnurag2
 
DBMS .pptx
DBMS .pptxDBMS .pptx
DBMS .pptx
KAnurag2
 
ML PROJECT FINAL[1].pptx
ML PROJECT FINAL[1].pptxML PROJECT FINAL[1].pptx
ML PROJECT FINAL[1].pptx
KAnurag2
 
Project 1.pptx
Project 1.pptxProject 1.pptx
Project 1.pptx
KAnurag2
 
RELATIONSHIP IN DBMS.pptx
RELATIONSHIP IN DBMS.pptxRELATIONSHIP IN DBMS.pptx
RELATIONSHIP IN DBMS.pptx
KAnurag2
 
RLC Circuits^Jpedulum.pptx
RLC Circuits^Jpedulum.pptxRLC Circuits^Jpedulum.pptx
RLC Circuits^Jpedulum.pptx
KAnurag2
 
Human-Rights_Basic-Concepts-1.pptx
Human-Rights_Basic-Concepts-1.pptxHuman-Rights_Basic-Concepts-1.pptx
Human-Rights_Basic-Concepts-1.pptx
KAnurag2
 
DBMS[1].pptx
DBMS[1].pptxDBMS[1].pptx
DBMS[1].pptx
KAnurag2
 

More from KAnurag2 (20)

twitter ppt .pptx
twitter ppt                                  .pptxtwitter ppt                                  .pptx
twitter ppt .pptx
 
Module-6 process managedf;jsovj;ksdv;sdkvnksdnvldknvlkdfsment.ppt
Module-6 process managedf;jsovj;ksdv;sdkvnksdnvldknvlkdfsment.pptModule-6 process managedf;jsovj;ksdv;sdkvnksdnvldknvlkdfsment.ppt
Module-6 process managedf;jsovj;ksdv;sdkvnksdnvldknvlkdfsment.ppt
 
Module III - 1 - Orders of Growth.p df
Module III - 1 - Orders of Growth.p   dfModule III - 1 - Orders of Growth.p   df
Module III - 1 - Orders of Growth.p df
 
Module-2Deadlock.ppt
Module-2Deadlock.pptModule-2Deadlock.ppt
Module-2Deadlock.ppt
 
dsppt-141121224848-conversion-gate01.pptx
dsppt-141121224848-conversion-gate01.pptxdsppt-141121224848-conversion-gate01.pptx
dsppt-141121224848-conversion-gate01.pptx
 
Feasibility Study.pptx
Feasibility Study.pptxFeasibility Study.pptx
Feasibility Study.pptx
 
Law-Of-Supply-_-Elasticity-of-Supply-PPT.ppt
Law-Of-Supply-_-Elasticity-of-Supply-PPT.pptLaw-Of-Supply-_-Elasticity-of-Supply-PPT.ppt
Law-Of-Supply-_-Elasticity-of-Supply-PPT.ppt
 
dsa project.pptx
dsa project.pptxdsa project.pptx
dsa project.pptx
 
Transformer.pptx
Transformer.pptxTransformer.pptx
Transformer.pptx
 
key (1).pptx
key (1).pptxkey (1).pptx
key (1).pptx
 
C PROJECT 1.pptx
C PROJECT 1.pptxC PROJECT 1.pptx
C PROJECT 1.pptx
 
PPT - Independent and Dependent.pptx
PPT - Independent and Dependent.pptxPPT - Independent and Dependent.pptx
PPT - Independent and Dependent.pptx
 
MATH PROJECT (3).pptx
MATH PROJECT (3).pptxMATH PROJECT (3).pptx
MATH PROJECT (3).pptx
 
DBMS .pptx
DBMS .pptxDBMS .pptx
DBMS .pptx
 
ML PROJECT FINAL[1].pptx
ML PROJECT FINAL[1].pptxML PROJECT FINAL[1].pptx
ML PROJECT FINAL[1].pptx
 
Project 1.pptx
Project 1.pptxProject 1.pptx
Project 1.pptx
 
RELATIONSHIP IN DBMS.pptx
RELATIONSHIP IN DBMS.pptxRELATIONSHIP IN DBMS.pptx
RELATIONSHIP IN DBMS.pptx
 
RLC Circuits^Jpedulum.pptx
RLC Circuits^Jpedulum.pptxRLC Circuits^Jpedulum.pptx
RLC Circuits^Jpedulum.pptx
 
Human-Rights_Basic-Concepts-1.pptx
Human-Rights_Basic-Concepts-1.pptxHuman-Rights_Basic-Concepts-1.pptx
Human-Rights_Basic-Concepts-1.pptx
 
DBMS[1].pptx
DBMS[1].pptxDBMS[1].pptx
DBMS[1].pptx
 

Recently uploaded

How to create an effective K-POC tutorial
How to create an effective K-POC tutorialHow to create an effective K-POC tutorial
How to create an effective K-POC tutorial
vencislavkaaa
 
DIGITAL MARKETING COURSE IN CHENNAI.pptx
DIGITAL MARKETING COURSE IN CHENNAI.pptxDIGITAL MARKETING COURSE IN CHENNAI.pptx
DIGITAL MARKETING COURSE IN CHENNAI.pptx
FarzanaRbcomcs
 
欧洲杯买球平台-欧洲杯买球平台推荐-欧洲杯买球平台| 立即访问【ac123.net】
欧洲杯买球平台-欧洲杯买球平台推荐-欧洲杯买球平台| 立即访问【ac123.net】欧洲杯买球平台-欧洲杯买球平台推荐-欧洲杯买球平台| 立即访问【ac123.net】
欧洲杯买球平台-欧洲杯买球平台推荐-欧洲杯买球平台| 立即访问【ac123.net】
foismail170
 
欧洲杯投注app-欧洲杯投注app推荐-欧洲杯投注app| 立即访问【ac123.net】
欧洲杯投注app-欧洲杯投注app推荐-欧洲杯投注app| 立即访问【ac123.net】欧洲杯投注app-欧洲杯投注app推荐-欧洲杯投注app| 立即访问【ac123.net】
欧洲杯投注app-欧洲杯投注app推荐-欧洲杯投注app| 立即访问【ac123.net】
foismail170
 
DOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdf
DOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdfDOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdf
DOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdf
Pushpendra Kumar
 
han han widi kembar tapi beda han han dan widi kembar tapi sama
han han widi kembar tapi beda han han dan widi kembar tapi samahan han widi kembar tapi beda han han dan widi kembar tapi sama
han han widi kembar tapi beda han han dan widi kembar tapi sama
IrlanMalik
 
Personal Brand Exploration Comedy Jxnelle.
Personal Brand Exploration Comedy Jxnelle.Personal Brand Exploration Comedy Jxnelle.
Personal Brand Exploration Comedy Jxnelle.
alexthomas971
 
RECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdf
RECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdfRECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdf
RECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdf
AlessandroMartins454470
 
Interactive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaa
Interactive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaInteractive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaa
Interactive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaa
23211a7274
 
Heidi Livengood Resume Senior Technical Recruiter / HR Generalist
Heidi Livengood Resume Senior Technical Recruiter / HR GeneralistHeidi Livengood Resume Senior Technical Recruiter / HR Generalist
Heidi Livengood Resume Senior Technical Recruiter / HR Generalist
HeidiLivengood
 
Luke Royak's Personal Brand Exploration!
Luke Royak's Personal Brand Exploration!Luke Royak's Personal Brand Exploration!
Luke Royak's Personal Brand Exploration!
LukeRoyak
 
Andrea Kate Portfolio Presentation.pdf
Andrea Kate  Portfolio  Presentation.pdfAndrea Kate  Portfolio  Presentation.pdf
Andrea Kate Portfolio Presentation.pdf
andreakaterasco
 
The Impact of Artificial Intelligence on Modern Society.pdf
The Impact of Artificial Intelligence on Modern Society.pdfThe Impact of Artificial Intelligence on Modern Society.pdf
The Impact of Artificial Intelligence on Modern Society.pdf
ssuser3e63fc
 
How Mentoring Elevates Your PM Career | PMI Silver Spring Chapter
How Mentoring Elevates Your PM Career | PMI Silver Spring ChapterHow Mentoring Elevates Your PM Career | PMI Silver Spring Chapter
How Mentoring Elevates Your PM Career | PMI Silver Spring Chapter
Hector Del Castillo, CPM, CPMM
 
Personal Brand exploration KE.pdf for assignment
Personal Brand exploration KE.pdf for assignmentPersonal Brand exploration KE.pdf for assignment
Personal Brand exploration KE.pdf for assignment
ragingokie
 
Digital Marketing Training In Bangalore
Digital  Marketing Training In BangaloreDigital  Marketing Training In Bangalore
Digital Marketing Training In Bangalore
nidm599
 
How to Master LinkedIn for Career and Business
How to Master LinkedIn for Career and BusinessHow to Master LinkedIn for Career and Business
How to Master LinkedIn for Career and Business
ideatoipo
 
一比一原版(YU毕业证)约克大学毕业证如何办理
一比一原版(YU毕业证)约克大学毕业证如何办理一比一原版(YU毕业证)约克大学毕业证如何办理
一比一原版(YU毕业证)约克大学毕业证如何办理
yuhofha
 
Exploring Career Paths in Cybersecurity for Technical Communicators
Exploring Career Paths in Cybersecurity for Technical CommunicatorsExploring Career Paths in Cybersecurity for Technical Communicators
Exploring Career Paths in Cybersecurity for Technical Communicators
Ben Woelk, CISSP, CPTC
 
Operating system. short answes and Interview questions .pdf
Operating system. short answes and Interview questions .pdfOperating system. short answes and Interview questions .pdf
Operating system. short answes and Interview questions .pdf
harikrishnahari6276
 

Recently uploaded (20)

How to create an effective K-POC tutorial
How to create an effective K-POC tutorialHow to create an effective K-POC tutorial
How to create an effective K-POC tutorial
 
DIGITAL MARKETING COURSE IN CHENNAI.pptx
DIGITAL MARKETING COURSE IN CHENNAI.pptxDIGITAL MARKETING COURSE IN CHENNAI.pptx
DIGITAL MARKETING COURSE IN CHENNAI.pptx
 
欧洲杯买球平台-欧洲杯买球平台推荐-欧洲杯买球平台| 立即访问【ac123.net】
欧洲杯买球平台-欧洲杯买球平台推荐-欧洲杯买球平台| 立即访问【ac123.net】欧洲杯买球平台-欧洲杯买球平台推荐-欧洲杯买球平台| 立即访问【ac123.net】
欧洲杯买球平台-欧洲杯买球平台推荐-欧洲杯买球平台| 立即访问【ac123.net】
 
欧洲杯投注app-欧洲杯投注app推荐-欧洲杯投注app| 立即访问【ac123.net】
欧洲杯投注app-欧洲杯投注app推荐-欧洲杯投注app| 立即访问【ac123.net】欧洲杯投注app-欧洲杯投注app推荐-欧洲杯投注app| 立即访问【ac123.net】
欧洲杯投注app-欧洲杯投注app推荐-欧洲杯投注app| 立即访问【ac123.net】
 
DOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdf
DOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdfDOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdf
DOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdf
 
han han widi kembar tapi beda han han dan widi kembar tapi sama
han han widi kembar tapi beda han han dan widi kembar tapi samahan han widi kembar tapi beda han han dan widi kembar tapi sama
han han widi kembar tapi beda han han dan widi kembar tapi sama
 
Personal Brand Exploration Comedy Jxnelle.
Personal Brand Exploration Comedy Jxnelle.Personal Brand Exploration Comedy Jxnelle.
Personal Brand Exploration Comedy Jxnelle.
 
RECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdf
RECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdfRECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdf
RECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdf
 
Interactive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaa
Interactive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaInteractive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaa
Interactive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaa
 
Heidi Livengood Resume Senior Technical Recruiter / HR Generalist
Heidi Livengood Resume Senior Technical Recruiter / HR GeneralistHeidi Livengood Resume Senior Technical Recruiter / HR Generalist
Heidi Livengood Resume Senior Technical Recruiter / HR Generalist
 
Luke Royak's Personal Brand Exploration!
Luke Royak's Personal Brand Exploration!Luke Royak's Personal Brand Exploration!
Luke Royak's Personal Brand Exploration!
 
Andrea Kate Portfolio Presentation.pdf
Andrea Kate  Portfolio  Presentation.pdfAndrea Kate  Portfolio  Presentation.pdf
Andrea Kate Portfolio Presentation.pdf
 
The Impact of Artificial Intelligence on Modern Society.pdf
The Impact of Artificial Intelligence on Modern Society.pdfThe Impact of Artificial Intelligence on Modern Society.pdf
The Impact of Artificial Intelligence on Modern Society.pdf
 
How Mentoring Elevates Your PM Career | PMI Silver Spring Chapter
How Mentoring Elevates Your PM Career | PMI Silver Spring ChapterHow Mentoring Elevates Your PM Career | PMI Silver Spring Chapter
How Mentoring Elevates Your PM Career | PMI Silver Spring Chapter
 
Personal Brand exploration KE.pdf for assignment
Personal Brand exploration KE.pdf for assignmentPersonal Brand exploration KE.pdf for assignment
Personal Brand exploration KE.pdf for assignment
 
Digital Marketing Training In Bangalore
Digital  Marketing Training In BangaloreDigital  Marketing Training In Bangalore
Digital Marketing Training In Bangalore
 
How to Master LinkedIn for Career and Business
How to Master LinkedIn for Career and BusinessHow to Master LinkedIn for Career and Business
How to Master LinkedIn for Career and Business
 
一比一原版(YU毕业证)约克大学毕业证如何办理
一比一原版(YU毕业证)约克大学毕业证如何办理一比一原版(YU毕业证)约克大学毕业证如何办理
一比一原版(YU毕业证)约克大学毕业证如何办理
 
Exploring Career Paths in Cybersecurity for Technical Communicators
Exploring Career Paths in Cybersecurity for Technical CommunicatorsExploring Career Paths in Cybersecurity for Technical Communicators
Exploring Career Paths in Cybersecurity for Technical Communicators
 
Operating system. short answes and Interview questions .pdf
Operating system. short answes and Interview questions .pdfOperating system. short answes and Interview questions .pdf
Operating system. short answes and Interview questions .pdf
 

Operting system

  • 1. Chapter 1: Introduction Operating System Concepts  What is an Operating System?  Serial processing  Desktop Systems  Multiprocessor Systems  Distributed Systems  Clustered System  Real -Time Systems  Handheld Systems  Computing Environments
  • 2. What is an Operating System? Operating System Concepts  A program that acts as an intermediary between a user of a computer and the computer hardware.  Operating system goals:  Execute user programs and make solving user problems easier.  Make the computer system convenient to use.  Use the computer hardware in an efficient manner.
  • 3. Operating System Definitions Operating System Concepts  Resource allocator – manages and allocates resources.  Control program – controls the execution of user programs and operations of I/O devices .  Kernel – the one program running at all times (all else being application programs).
  • 4. Computer System Components Operating System Concepts 1. Hardware – provides basic computing resources (CPU, memory, I/O devices). 2. Applications programs – define the ways in which the system resources are used to solve the computing problems of the users (web browsers, word processor, database systems, video games, business programs). 3. Operating system – controls and coordinates the use of the hardware among the various application programs for the various users. 4. Users (people, machines, other computers).
  • 5. Abstract View of System Components Operating System Concepts
  • 6. User and OS Operating System Concepts OS facilitates use of resources by hiding local details and presenting an interface which is convenient to use. For instance : computer games, e-mail, browsing or preparing documents are applications launched by simply clicking on cue icons. How easy it is !
  • 7. User and system view of OS Operating System Concepts User perspective : ease of usage is the main consideration. System perspective : efficiency in usage of resources is the main consideration. As a provider of resources - OS must have a policy and a control program to regulate the allocation of resources.
  • 8. System Boot Operating System Concepts The procedure of starting a computer by loading the kernel Is known as booting the system. The bootstrap program locates the kernel This program resides in ROM for its convenience . This form of ROM is known as firmware. After loading the OS starts executing the first process such as “init” and waits for some event to occur. “Stage 1: the BIOS” “Stage 2: the boot loader” “Stage 3: the mini-Debian system” “Stage 4: the normal Debian system”
  • 10. Serial Processing Operating System Concepts  Programs are directly interact with hardware( no operating system)  For executing the a programs the following serial steps are necessary  Type the program on punched card  Convert the punched card to card reader  Submit for computation. The error is indicated by light  Programmer it self identify the error  Take the output  Then the programmer ready for next program Disadvantage Difficult for the user and also time consuming
  • 11. Memory Layout for a Simple Batch System Operating System Concepts Same type of jobs batch together and execute at a time
  • 12. Multi programmed Systems Operating System Concepts Sequential processing wasteful.  Processor and Memory not fully utilized.  Processor idles during Input output.  Solution: Allow multiple programs to reside in the main memory.  When one program engages I/O the other can use the processor.
  • 13. Multi programmed Systems Operating System Concepts Several jobs are kept in main memory at the same time, and the CPU is multiplexed among them.
  • 14. OS Features Needed for Multiprogramming Operating System Concepts  I/O routine supplied by the system.  Memory management – the system must allocate the memory to several jobs.  CPU scheduling – the system must choose among several jobs ready to run.  Allocation of devices. ADVANTAGES  Efficient memory utilization  CPU utilization more  Increased Throughput
  • 15. Time-Sharing Systems–Interactive Computing Operating System Concepts  It is a logical extension of multi programming.  The CPU scheduler select a job from the ready queue and switches the CPU to that job. When time slot expired the CPU switches from this job to another job.  Users get an illusion as if he has the whole system for himself.  In this method the CPU time is shared by different process . So it is said to be TIME- SHARING-SYSTEM.  Time sharing provide interactive system where the direct communication between user and system is possible while executing.
  • 16. Design Consideration  How many programs may reside in the main memory to allow, and also sustain timesharing?  What should be the time slice allocated to process each program?  How would one protect a users’ program and data from being overwritten by another users’ program? Operating System Concepts
  • 17. Real-Time Systems Operating System Concepts  Often used as a control device in a dedicated application such as controlling scientific experiments, medical imaging systems, industrial control systems, and some display systems.  Well-defined fixed-time constraints.  Real-Time systems may be either hard or soft real-time.
  • 18. Real-Time Systems (Cont.) Operating System Concepts  Hard real-time:  Secondary storage limited or absent, data stored in short term memory, or read-only memory (ROM)  Conflicts with time-sharing systems, not supported by general-purpose operating systems.  Soft real-time  Limited utility in industrial control of robotics  Useful in applications (multimedia, virtual reality) requiring advanced operating-system features.
  • 19. Parallel Systems Operating System Concepts  Multiprocessor systems with more than on CPU in close communication.  Tightly coupled system – processors share memory and a clock; communication usually takes place through the shared memory.  Advantages of parallel system:  Increased throughput  Economical  Increased reliability  graceful degradation  fail-soft systems
  • 20. Parallel Systems (Cont.) Operating System Concepts  Symmetric multiprocessing (SMP)  Each processor runs and identical copy of the operating system.  Many processes can run at once without performance deterioration.  Most modern operating systems support SMP  Asymmetric multiprocessing  Each processor is assigned a specific task; master processor schedules and allocated work to slave processors.  More common in extremely large systems
  • 22. Desktop Systems Operating System Concepts  Personal computers – computer system dedicated to a single user.  I/O devices – keyboards, mice, display screens, small printers.  User convenience and responsiveness.  Can adopt technology developed for larger operating system’ often individuals have sole use of computer and do not need advanced CPU utilization of protection features.  May run several different types of operating systems (Windows, MacOS, UNIX, Linux)
  • 23. Distributed Systems Operating System Concepts  Distribute the computation among several physical processors.  Loosely coupled system – each processor has its own local memory; processors communicate with one another through various communications lines, such as high-speed buses or telephone lines.  Advantages of distributed systems.  Resources Sharing  Computation speed up – load sharing  Reliability  Communications(message passing)
  • 24. Distributed Systems (cont) Operating System Concepts  Requires networking infrastructure.  Local area networks (LAN) or Wide area networks (WAN)  May be either client-server or peer-to-peer systems.
  • 25. General Structure of Client- Server Operating System Concepts
  • 26. Handheld Systems Operating System Concepts  Personal Digital Assistants (PDAs)  Cellular telephones  Issues:  Limited memory  Slow processors  Small display screens. Simputer
  • 27. Migration of Operating-System Concepts and Features Operating System Concepts
  • 28. Computing Environments Operating System Concepts  Traditional computing  Client server computing  Peer-to-Peer Computing  Web-Based Computing  Embedded Computing
  • 29. Hardware Protection Operating System Concepts  Dual-Mode Operation  I/O Protection  Memory Protection  CPU Protection
  • 30. Dual-Mode Operation Operating System Concepts  Sharing system resources requires operating system to ensure that an incorrect program cannot cause other programs to execute incorrectly.  Provide hardware support to differentiate between at least two modes of operations. 1. User mode – execution done on behalf of a user. 2. Monitor mode (also kernel mode or system mode) – execution done on behalf of operating system.
  • 31. Dual-Mode Operation (Cont.) Operating System Concepts  Mode bit added to computer hardware to indicate the current mode: monitor (0) or user (1).  When an interrupt or fault occurs hardware switches to monitor mode. Privileged instructions can be issued only in monitor mode. monitor user Interrupt/fault set user mode
  • 33. I/O Protection Operating System Concepts  All I/O instructions are privileged instructions.  Must ensure that a user program could never gain control of the computer in monitor mode (I.e., a user program that, as part of its execution, stores a new address in the interrupt vector).
  • 34. Use of A System Call to Perform I/O Operating System Concepts
  • 35. Memory Protection Operating System Concepts  Must provide memory protection at least for the interrupt vector and the interrupt service routines.  In order to have memory protection, add two registers that determine the range of legal addresses a program may access:  Base register – holds the smallest legal physical memory address.  Limit register – contains the size of the range  Memory outside the defined range is protected.
  • 36. Use of A Base and Limit Register Operating System Concepts
  • 38. CPU Protection Operating System Concepts  Timer – interrupts computer after specified period to ensure operating system maintains control.  Timer is decremented every clock tick.  When timer reaches the value 0, an interrupt occurs.  Timer commonly used to implement time sharing.  Time also used to compute the current time.  Load-timer is a privileged instruction.
  • 39. Operating System Services Operating System Concepts  User interface – command –line interface, batch interface, graphics user interface.  Program execution – system capability to load a program into memory and to run it.  I/O operations – since user programs cannot execute I/O operations directly, the operating system must provide some means to perform I/O.  File-system manipulation – program capability to read, write, create, and delete files.  Communications – exchange of information between processes executing either on the same computer or on different systems tied together by a network. Implemented via shared memory or message passing.  Error detection – ensure correct computing by detecting errors in the CPU and memory hardware, in I/O devices, or in user programs.
  • 40. Operating System Services Operating System Concepts Additional functions exist not for helping the user, but rather for ensuring efficient system operations. •Resource allocation – allocating resources to multiple users or multiple jobs running at the same time. •Accounting – keep track of and record which users use how much and what kinds of computer resources for account billing or for accumulating usage statistics. •Protection – ensuring that all access to system resources is controlled.
  • 41. System Calls Operating System Concepts  System calls provide the interface between a running program and the operating system.  Generally available as assembly-language instructions.  Languages defined to replace assembly language for systems programming allow system calls to be made directly (e.g., C, C++)
  • 43. System Calls Example Operating System Concepts  Most programmer never see this level of details  Application developers design program according to the API  API specifies a set of function that are available to the application programmer including input parameters and expected return values from the function.  The system call interface intercepts function calls in the API and invokes the necessary system call within the operating system.
  • 45. Passing of Parameters As A Table Operating System Concepts Three general methods are used to pass parameters between a running program and the operating system. 1.Pass parameters in registers. 2.Store the parameters in a table in memory, and the table address is passed as a parameter in a register. 3.Push (store) the parameters onto the stack by the program, and pop off the stack by operating system.
  • 46. Types of System Calls Operating System Concepts  Process control (end,abort,load,execute,create,terminate,get atrributes,set attributes,wait for time)  File management (create file, delete file, open,close,read,write,reposition,get file attributes)  Device management (request device , release device, get device attributes, set device attributes,)  Information maintenance (get time or date, set time or date, get system data, set system data, get process file, get device attributes)  Communications(send and receive message, transfer status information)
  • 47. Process Management Operating System Concepts  A process is a program in execution. A process needs certain resources, including CPU time, memory, files, and I/O devices, to accomplish its task.  The operating system is responsible for the following activities in connection with process management.  Process creation and deletion.  process suspension and resumption.  Provision of mechanisms for:  process synchronization  process communication
  • 48. Main-Memory Management Operating System Concepts  Memory is a large array of words or bytes, each with its own address. It is a repository of quickly accessible data shared by the CPU and I/O devices.  Main memory is a volatile storage device. It loses its contents in the case of system failure.  The operating system is responsible for the following activities in connections with memory management:  Keep track of which parts of memory are currently being used and by whom.  Decide which processes to load when memory space becomes available.  Allocate and deallocate memory space as needed.
  • 49. Secondary-Storage Management Operating System Concepts  Since main memory (primary storage) is volatile and too small to accommodate all data and programs permanently, the computer system must provide secondary storage to back up main memory.  Most modern computer systems use disks as the principle on-line storage medium, for both programs and data.  The operating system is responsible for the following activities in connection with disk management:  Free space management  Storage allocation  Disk scheduling
  • 50. File-System Management Operating System Concepts  A file is a collection of related information defined by its creator.  File represent programs and data in any form( numeric, alphabetic, alphanumeric or binary).  The operating system is responsible for the following activities in connection with file management:  Creating and deleting file  Creating and deleting directories  Manipulation of file and directories  Mapping files onto secondary storage  Backing of files on stable media
  • 51. I/O System Management Operating System Concepts  The I/O system consists of:  A buffer-caching system  A general device-driver interface  Drivers for specific hardware devices