SlideShare a Scribd company logo
1 of 28
CS8493 – Operating
Systems
UNIT I – OPERATING SYSTEMS OVERVIEW
KGiSL INSTITUTE OF TECHNOLOGY
Course Outcome
Illustrate the structures and functions of operating systems
Utilize various process scheduling algorithms and techniques to avoid
deadlocks
Compare and contrast various memory management schemes
Outline the functionalities of different file systems
Compare and Contrast functionalities of LINUX, IOS and Android
Session Agenda
1. Computer System Overview-Basic Elements, Instruction Execution, Interrupts
2. Memory Hierarchy, Cache Memory, Direct Memory Access
3. Multiprocessor and Multicore Organization
4. OS overview-objectives and functions, Evolution of OS
5. Computer System Organization-OS Structure and Operations
6. System Calls, System Programs
7. OS Generation and System Boot
Computer System Overview
What is an Operating System?
An operating system is a program that manages the computer hardware.
It also provides a basis for application programs and acts as an intermediary between a user of a
computer and the computer hardware.
The purpose of an operating system is to provide an environment in which a user can execute programs.
GOALS
The primary goal of an operating system is thus to make the computer system convenient to use.
The secondary goal is to use the computer hardware in an efficient manner.
Execute user programs and make solving user problems easier
Basic Elements
An operating system is an important part of almost every computer system
4 components
 Hardware
 OS
 Application Programs
 Users
Hardware - the central processing unit (CPU), the memory, and the Input/output (I/O) devices-provides the basic computing
resources.
Application Programs - such as word processors, spreadsheets, compilers, web browsers- define the ways in which these
resources are used to solve the computing problems of the users.
An operating system is similar to a government. The OS simply provides an environment within which other programs can do
useful work.
Abstract view of Computer System
Basic Elements -Contd
Main Frame Systems
Early computers were physically enormous machines run from a console.
The common input devices were card readers and tape drives.
The common output devices were line printers, tape drives, and card punches.
The user did not interact directly with the computer systems.
Rather, the user prepared a job - which consisted of the program, the data, and some control
information about the nature of the job (control cards)-and submitted it to the computer operator.
The job was usually in the form of punch cards.
The operating system in these early computers was fairly simple.
Its major task was to transfer control automatically from one job to the next.
Basic Elements -Contd
Batch System
A batch operating system, thus normally reads a stream of separate jobs.
When the job is complete its output is usually printed on a line printer.
The definitive feature of batch system is the lack of interaction between the user and the job
while the job is executing.
Spooling is also used for processing data at remote sites.
Basic Elements -Contd
Multiprogrammed System
A pool of jobs on disk allows the OS to select which job to run next, to increase CPU utilization.
Multiprogramming increases CPU utilization by organizing jobs such that the CPU always has
one to execute.
The idea is as follows: The operating system keeps several jobs in memory simultaneously. This
set of jobs is a subset of the jobs kept in the job pool. The operating system picks and begins to
execute one of the jobs in the memory.
Basic Elements -Contd
Time Sharing System
Time sharing (or multitasking) is a logical extension of multiprogramming.
The CPU executes multiple jobs by switching among them, but the switches occur so frequently that
the users can interact with each program while it is running.
 A time-shared operating system allows many users to share the computer action or
command in a time-shared system simultaneously. Since each tends to be short, only a little CPU
time is needed for each user.
As the system switches rapidly from one user to the next, each user is given the impression that the
entire computer system is dedicated to her use, even though it is being shared among many users.
Basic Elements -Contd
Desktop System
As hardware costs have decreased, it has once again become feasible to have a computer
system dedicated to a single user. These types of computer systems are usually referred to as
personal computers(PCS).
They are microcomputers that are smaller and less expensive than mainframe computers.
Operating systems for these computers have benefited from the development of operating
systems for mainframes in several ways.
Basic Elements -Contd
Multiprocessor System
Multiprocessor systems (also known as parallel systems or tightly coupled systems)
have more than one processor in close communication, sharing the computer bus, the
clock, and sometimes memory and peripheral devices.
Multiprocessor systems have three main advantages:
oIncreased throughput
oEconomy of sale
oIncreased reliability
Basic Elements -Contd
Functions shared among processors equally.
Thus, the entire system runs only 10 percent slower, rather than failing altogether. This ability
to continue providing service proportional to the level of surviving hardware is called graceful
degradation. Systems designed for graceful degradation are also called fault tolerant.
Continued operation in the presence of failures requires a mechanism to allow the failure to be
detected, diagnosed, and, if possible, corrected.
Symmetric Multiprocessing (SMP) – each processor runs an identical copy of OS
Asymmetric Multiprocessing – each processor assigned multiple task - Master-slave
relationship
Basic Elements -Contd
If functions can be distributed properly among several processors, then the failure of one
processor will not halt the system, only slow it down. If we have ten processors and one fails,
then each of the remaining nine processors must pick up a share of the work of the failed
processor.
Thus, the entire system runs only 10 percent slower, rather than failing altogether. This ability
to continue providing service proportional to the level of surviving hardware is called graceful
degradation. Systems designed for graceful degradation are also called fault tolerant.
Continued operation in the presence of failures requires a mechanism to allow the failure to be
detected, diagnosed, and, if possible, corrected.
Basic Elements -Contd
Distributed System
In contrast to the tightly coupled systems, the processors do not share memory or a clock. Instead , each
processor has its own local memory.
The processors communicate with one another through various communication lines, such as high speed
buses or telephone lines. These systems are usually referred to as loosely coupled systems, or distributed
systems.
Advantages:
o Resource Sharing
o Computation Speedup
o Reliability
o Communication
Basic Elements -Contd
Real-Time System
Systems that control scientific experiments, medical imaging systems, industrial control systems, and
certain display systems are real-time systems.
Some automobile-engine fuel-injection systems, home-appliance controllers, and weapon systems are
also real-time systems. A real-time system has well-defined, fixed time constraints.
Real-time systems come in two flavors: hard and soft.
A hard real-time system guarantees that critical tasks be completed on time.
This goal requires that all delays in the system be bounded, from the retrieval of stored data to the time
that it takes the operating system to finish any request made of it.
Instruction Execution
Memory consists of a large array of words or bytes, each with its own address.
The CPU fetches instructions from memory according to the value of the program counter.
These instructions may cause additional loading from and storing to specific memory addresses.
A program residing in the memory unit of a computer consists of a sequence of instructions.
These instructions are executed by the processor by going through a cycle for each instruction.
Instruction Execution
In a basic computer, each instruction cycle consists of the following phases:
1. Fetch instruction from memory.
2. Decode the instruction.
3. Read the effective address from memory.
4. Execute the instruction.
Instruction Execution
The following is a summary of the six steps used to execute a single instruction.
Step 1: Fetch instruction.
Step 2: Decode instruction and Fetch Operands.
Step 3: Perform ALU operation.
Step 4: Access memory.
Step 5: Write back result to register file.
Step 6: Update the PC.
Interrupts
An interrupt is a signal emitted by hardware or software when a process or an event needs
immediate attention.
It alerts the processor to a high-priority process requiring interruption of the current
working process.
In I/O devices, one of the bus control lines is dedicated for this purpose and is called the
Interrupt Service Routine (ISR).
When a device raises an interrupt at the process, the processor first completes the
execution of an instruction. Then it loads the Program Counter (PC) with the address of the
first instruction of the ISR.
Interrupts
When an interrupt occurs, the service of the interrupt by executing the ISR
may not start immediately by context switching.
The time interval between the occurrence of interrupt and the start of
execution of the ISR is called interrupt latency.
Interrupt Latency = Tswitch + Σtexec
Tswitch = time taken for context switch
ΣTexec = The sum of the time interval for executing the ISR
Interrupts
A single computer can perform only one computer instruction at a time. But,
because it can be interrupted, it can manage how programs or sets of
instructions will be performed. This is known as multitasking.
An operating system usually has some code that is called an interrupt
handler.
The operating system has another little program called a scheduler that
figures out which program to control next.
Interrupts
Interrupts - Types
Hardware Interrupt:
Maskable Interrupts: Processors typically have an internal interrupt mask register which allows
selective enabling and disabling of hardware interrupts. Signals which are affected by the mask are
called maskable interrupts. The interrupt mask does not affect some interrupt signals and therefore
cannot be disabled; these are called non-maskable interrupts (NMI).
Spurious Interrupts: a hardware interrupt for which no source can be found.
Software Interrupt:
The processor requests a software interrupt upon executing particular instructions or when certain
conditions are met. Every software interrupt signal is associated with a particular interrupt handler.
Interrupt Handling
Interrupt Handler
First Level Interrupt Handler (FLIH) is a hard interrupt handler or fast
interrupt handler. These interrupt handlers have more jitter while process
execution, and they are mainly maskable interrupts.
Second Level Interrupt Handler (SLIH) is a soft interrupt handler and slow
interrupt handler. These interrupt handlers have less jitter.
Summary
Computer System –Elements, Functions and types
Instruction Execution – Steps
Interrupts – Definition, Types and Handling Methods
LM1 - Computer System Overview, system calls

More Related Content

Similar to LM1 - Computer System Overview, system calls

Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating SystemsMukesh Chinta
 
Operating Systems
Operating Systems Operating Systems
Operating Systems Fahad Shaikh
 
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.pdfrohitbaweja26
 
Operting system
Operting systemOperting system
Operting systemKAnurag2
 
Operating System Unit 1
Operating System Unit 1Operating System Unit 1
Operating System Unit 1bhartigole1
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESKopinathMURUGESAN
 
Lecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionLecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionArnoyKhan
 
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 2Ismail Mukiibi
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture NotesFellowBuddy.com
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1sphs
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - IntroductionWayne Jones Jnr
 
Operating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chaptersOperating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chapterssphs
 
Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Amit Gupta
 
Fundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptxFundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptxUttara University
 

Similar to LM1 - Computer System Overview, system calls (20)

Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Operating Systems
Operating Systems Operating Systems
Operating Systems
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating system
 
Os unit 1
Os unit 1Os unit 1
Os unit 1
 
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
 
Operting system
Operting systemOperting system
Operting system
 
Operating System
Operating SystemOperating System
Operating System
 
Ch1
Ch1Ch1
Ch1
 
Operating System Unit 1
Operating System Unit 1Operating System Unit 1
Operating System Unit 1
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTES
 
Os
OsOs
Os
 
Lecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionLecture_01 Operating System Course Introduction
Lecture_01 Operating System Course Introduction
 
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
 
Compyter system softwere
Compyter system softwereCompyter system softwere
Compyter system softwere
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture Notes
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - Introduction
 
Operating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chaptersOperating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chapters
 
Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]
 
Fundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptxFundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptx
 

More from manideepakc

LM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processesLM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processesmanideepakc
 
LM7 - OS Generation & System Boot functionalities
LM7 - OS Generation & System Boot functionalitiesLM7 - OS Generation & System Boot functionalities
LM7 - OS Generation & System Boot functionalitiesmanideepakc
 
LM5 - Computer System Organization, OS (Structure & Operations).pptx
LM5 - Computer System Organization, OS (Structure & Operations).pptxLM5 - Computer System Organization, OS (Structure & Operations).pptx
LM5 - Computer System Organization, OS (Structure & Operations).pptxmanideepakc
 
wet scrubber, process, operation and applications
wet scrubber, process, operation and applicationswet scrubber, process, operation and applications
wet scrubber, process, operation and applicationsmanideepakc
 
cyclone separator, procedures and operations
cyclone separator, procedures and operationscyclone separator, procedures and operations
cyclone separator, procedures and operationsmanideepakc
 
Dictionary, Methods, operations, examples
Dictionary, Methods, operations, examplesDictionary, Methods, operations, examples
Dictionary, Methods, operations, examplesmanideepakc
 
LM 28 - List (Operations, Slice, Methods).pptx
LM 28 - List (Operations, Slice, Methods).pptxLM 28 - List (Operations, Slice, Methods).pptx
LM 28 - List (Operations, Slice, Methods).pptxmanideepakc
 
Tuples in python, usecases, applications
Tuples in python, usecases, applicationsTuples in python, usecases, applications
Tuples in python, usecases, applicationsmanideepakc
 

More from manideepakc (8)

LM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processesLM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processes
 
LM7 - OS Generation & System Boot functionalities
LM7 - OS Generation & System Boot functionalitiesLM7 - OS Generation & System Boot functionalities
LM7 - OS Generation & System Boot functionalities
 
LM5 - Computer System Organization, OS (Structure & Operations).pptx
LM5 - Computer System Organization, OS (Structure & Operations).pptxLM5 - Computer System Organization, OS (Structure & Operations).pptx
LM5 - Computer System Organization, OS (Structure & Operations).pptx
 
wet scrubber, process, operation and applications
wet scrubber, process, operation and applicationswet scrubber, process, operation and applications
wet scrubber, process, operation and applications
 
cyclone separator, procedures and operations
cyclone separator, procedures and operationscyclone separator, procedures and operations
cyclone separator, procedures and operations
 
Dictionary, Methods, operations, examples
Dictionary, Methods, operations, examplesDictionary, Methods, operations, examples
Dictionary, Methods, operations, examples
 
LM 28 - List (Operations, Slice, Methods).pptx
LM 28 - List (Operations, Slice, Methods).pptxLM 28 - List (Operations, Slice, Methods).pptx
LM 28 - List (Operations, Slice, Methods).pptx
 
Tuples in python, usecases, applications
Tuples in python, usecases, applicationsTuples in python, usecases, applications
Tuples in python, usecases, applications
 

Recently uploaded

CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 

Recently uploaded (20)

CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 

LM1 - Computer System Overview, system calls

  • 1. CS8493 – Operating Systems UNIT I – OPERATING SYSTEMS OVERVIEW KGiSL INSTITUTE OF TECHNOLOGY
  • 2. Course Outcome Illustrate the structures and functions of operating systems Utilize various process scheduling algorithms and techniques to avoid deadlocks Compare and contrast various memory management schemes Outline the functionalities of different file systems Compare and Contrast functionalities of LINUX, IOS and Android
  • 3. Session Agenda 1. Computer System Overview-Basic Elements, Instruction Execution, Interrupts 2. Memory Hierarchy, Cache Memory, Direct Memory Access 3. Multiprocessor and Multicore Organization 4. OS overview-objectives and functions, Evolution of OS 5. Computer System Organization-OS Structure and Operations 6. System Calls, System Programs 7. OS Generation and System Boot
  • 4. Computer System Overview What is an Operating System? An operating system is a program that manages the computer hardware. It also provides a basis for application programs and acts as an intermediary between a user of a computer and the computer hardware. The purpose of an operating system is to provide an environment in which a user can execute programs. GOALS The primary goal of an operating system is thus to make the computer system convenient to use. The secondary goal is to use the computer hardware in an efficient manner. Execute user programs and make solving user problems easier
  • 5. Basic Elements An operating system is an important part of almost every computer system 4 components  Hardware  OS  Application Programs  Users Hardware - the central processing unit (CPU), the memory, and the Input/output (I/O) devices-provides the basic computing resources. Application Programs - such as word processors, spreadsheets, compilers, web browsers- define the ways in which these resources are used to solve the computing problems of the users. An operating system is similar to a government. The OS simply provides an environment within which other programs can do useful work.
  • 6. Abstract view of Computer System
  • 7. Basic Elements -Contd Main Frame Systems Early computers were physically enormous machines run from a console. The common input devices were card readers and tape drives. The common output devices were line printers, tape drives, and card punches. The user did not interact directly with the computer systems. Rather, the user prepared a job - which consisted of the program, the data, and some control information about the nature of the job (control cards)-and submitted it to the computer operator. The job was usually in the form of punch cards. The operating system in these early computers was fairly simple. Its major task was to transfer control automatically from one job to the next.
  • 8. Basic Elements -Contd Batch System A batch operating system, thus normally reads a stream of separate jobs. When the job is complete its output is usually printed on a line printer. The definitive feature of batch system is the lack of interaction between the user and the job while the job is executing. Spooling is also used for processing data at remote sites.
  • 9. Basic Elements -Contd Multiprogrammed System A pool of jobs on disk allows the OS to select which job to run next, to increase CPU utilization. Multiprogramming increases CPU utilization by organizing jobs such that the CPU always has one to execute. The idea is as follows: The operating system keeps several jobs in memory simultaneously. This set of jobs is a subset of the jobs kept in the job pool. The operating system picks and begins to execute one of the jobs in the memory.
  • 10. Basic Elements -Contd Time Sharing System Time sharing (or multitasking) is a logical extension of multiprogramming. The CPU executes multiple jobs by switching among them, but the switches occur so frequently that the users can interact with each program while it is running.  A time-shared operating system allows many users to share the computer action or command in a time-shared system simultaneously. Since each tends to be short, only a little CPU time is needed for each user. As the system switches rapidly from one user to the next, each user is given the impression that the entire computer system is dedicated to her use, even though it is being shared among many users.
  • 11. Basic Elements -Contd Desktop System As hardware costs have decreased, it has once again become feasible to have a computer system dedicated to a single user. These types of computer systems are usually referred to as personal computers(PCS). They are microcomputers that are smaller and less expensive than mainframe computers. Operating systems for these computers have benefited from the development of operating systems for mainframes in several ways.
  • 12. Basic Elements -Contd Multiprocessor System Multiprocessor systems (also known as parallel systems or tightly coupled systems) have more than one processor in close communication, sharing the computer bus, the clock, and sometimes memory and peripheral devices. Multiprocessor systems have three main advantages: oIncreased throughput oEconomy of sale oIncreased reliability
  • 13. Basic Elements -Contd Functions shared among processors equally. Thus, the entire system runs only 10 percent slower, rather than failing altogether. This ability to continue providing service proportional to the level of surviving hardware is called graceful degradation. Systems designed for graceful degradation are also called fault tolerant. Continued operation in the presence of failures requires a mechanism to allow the failure to be detected, diagnosed, and, if possible, corrected. Symmetric Multiprocessing (SMP) – each processor runs an identical copy of OS Asymmetric Multiprocessing – each processor assigned multiple task - Master-slave relationship
  • 14. Basic Elements -Contd If functions can be distributed properly among several processors, then the failure of one processor will not halt the system, only slow it down. If we have ten processors and one fails, then each of the remaining nine processors must pick up a share of the work of the failed processor. Thus, the entire system runs only 10 percent slower, rather than failing altogether. This ability to continue providing service proportional to the level of surviving hardware is called graceful degradation. Systems designed for graceful degradation are also called fault tolerant. Continued operation in the presence of failures requires a mechanism to allow the failure to be detected, diagnosed, and, if possible, corrected.
  • 15. Basic Elements -Contd Distributed System In contrast to the tightly coupled systems, the processors do not share memory or a clock. Instead , each processor has its own local memory. The processors communicate with one another through various communication lines, such as high speed buses or telephone lines. These systems are usually referred to as loosely coupled systems, or distributed systems. Advantages: o Resource Sharing o Computation Speedup o Reliability o Communication
  • 16. Basic Elements -Contd Real-Time System Systems that control scientific experiments, medical imaging systems, industrial control systems, and certain display systems are real-time systems. Some automobile-engine fuel-injection systems, home-appliance controllers, and weapon systems are also real-time systems. A real-time system has well-defined, fixed time constraints. Real-time systems come in two flavors: hard and soft. A hard real-time system guarantees that critical tasks be completed on time. This goal requires that all delays in the system be bounded, from the retrieval of stored data to the time that it takes the operating system to finish any request made of it.
  • 17. Instruction Execution Memory consists of a large array of words or bytes, each with its own address. The CPU fetches instructions from memory according to the value of the program counter. These instructions may cause additional loading from and storing to specific memory addresses. A program residing in the memory unit of a computer consists of a sequence of instructions. These instructions are executed by the processor by going through a cycle for each instruction.
  • 18. Instruction Execution In a basic computer, each instruction cycle consists of the following phases: 1. Fetch instruction from memory. 2. Decode the instruction. 3. Read the effective address from memory. 4. Execute the instruction.
  • 19. Instruction Execution The following is a summary of the six steps used to execute a single instruction. Step 1: Fetch instruction. Step 2: Decode instruction and Fetch Operands. Step 3: Perform ALU operation. Step 4: Access memory. Step 5: Write back result to register file. Step 6: Update the PC.
  • 20. Interrupts An interrupt is a signal emitted by hardware or software when a process or an event needs immediate attention. It alerts the processor to a high-priority process requiring interruption of the current working process. In I/O devices, one of the bus control lines is dedicated for this purpose and is called the Interrupt Service Routine (ISR). When a device raises an interrupt at the process, the processor first completes the execution of an instruction. Then it loads the Program Counter (PC) with the address of the first instruction of the ISR.
  • 21. Interrupts When an interrupt occurs, the service of the interrupt by executing the ISR may not start immediately by context switching. The time interval between the occurrence of interrupt and the start of execution of the ISR is called interrupt latency. Interrupt Latency = Tswitch + Σtexec Tswitch = time taken for context switch ΣTexec = The sum of the time interval for executing the ISR
  • 22. Interrupts A single computer can perform only one computer instruction at a time. But, because it can be interrupted, it can manage how programs or sets of instructions will be performed. This is known as multitasking. An operating system usually has some code that is called an interrupt handler. The operating system has another little program called a scheduler that figures out which program to control next.
  • 24. Interrupts - Types Hardware Interrupt: Maskable Interrupts: Processors typically have an internal interrupt mask register which allows selective enabling and disabling of hardware interrupts. Signals which are affected by the mask are called maskable interrupts. The interrupt mask does not affect some interrupt signals and therefore cannot be disabled; these are called non-maskable interrupts (NMI). Spurious Interrupts: a hardware interrupt for which no source can be found. Software Interrupt: The processor requests a software interrupt upon executing particular instructions or when certain conditions are met. Every software interrupt signal is associated with a particular interrupt handler.
  • 26. Interrupt Handler First Level Interrupt Handler (FLIH) is a hard interrupt handler or fast interrupt handler. These interrupt handlers have more jitter while process execution, and they are mainly maskable interrupts. Second Level Interrupt Handler (SLIH) is a soft interrupt handler and slow interrupt handler. These interrupt handlers have less jitter.
  • 27. Summary Computer System –Elements, Functions and types Instruction Execution – Steps Interrupts – Definition, Types and Handling Methods