SlideShare una empresa de Scribd logo
1 de 41
Session 1
Introduction to Operating System
By
Kalyani Patil
1. What operating systems do
2. Definition of Operating System
3. Computer System Organization
4. Computer System Architecture
5. Operating System Structure
6. Operating System Operation
7. Process Management
8. Memory Management
What operating systems do
Your computer's operating system (OS) manages all of
the software and hardware on the computer. Most of the time, there are
several different computer programs running at the same time, and they all
need to access your computer's central processing unit (CPU), memory,
and storage. The operating system coordinates all of this to make sure each
program gets what it needs.
OS is System Software
It acts like intermediate between H/W and user
Resource Manager
Provide platform on which other application program are installed.
The operating system manages a computer's
hardware resources, including:
Input devices such as a keyboard and mouse
Output devices such as display monitors,
printers and scanners
Network devices such as modems, routers and
network connections
Storage devices such as internal and external
drives
User View
The user's view of the computer varies according to
the interface being used. Most computer users sit in
front of a PC, consisting of a monitor/ keyboard/
mouse, and system unit. Such a system is designed
for one user to monopolize its resources.
The goal is to maximize the work (or play) that the
user is performing. In this case/ the operating system
is designed mostly for with some attention paid to
performance and none paid to various hardware and
software resources are shared. Performance is, of
course, important to the user.
 In other cases, a user sits at a terminal connected to a
mainframe or a minicomputer. Other users are accessing the
same computer through other terminals. These users share
resources and may exchange information. The operating
system in Such cases is designed to maximize resource
utilization to assure that all available CPU time, memory, and
I/0 are used efficiently and that no individual user takes more
than her fair share.
Workstation users sit at connected to networks of other
workstations and These users have dedicated resources at their
disposal, but they also share resources such as networking and
servers-file, compute, and print servers. Therefore, their
operating system is designed to compromise between
System view
 Resource allocator : From system’s point of view OS is resource allocator.
 A computer system has many resources that may be required to solve a
problem:
 CPU time, memory space,
 file-storage space,
 I/0 devices, and so on.
 The operating system acts as the manager of these resources. Facing
numerous and possibly conflicting requests for resources, the operating
system must decide how to allocate them to specific programs and users
so that it can operate the computer system efficiently and fairly.
 As we have seen, resource allocation is especially important
where many users access the same mainframe or
minicomputer. A slightly different view of an operating
system emphasizes the need to control the various I/0
devices and user programs.
 An operating system is a control program. A manages the
execution of user programs to prevent errors and improper
use of the computer. It is especially concerned with the
operation and control of I/O devices.
Operating System Definition
We can also view a computer system as consisting of
hardware/ software and data. The operating system
provides the means for proper use of these resources
in the operation of the computer system.
An operating system is similar to a government. Like a
government, it performs no useful function by itself. It
simply provides an environment within which other
programs can do useful work.
An operating system is the most important software that runs
on a computer. It manages the
computer's memory and processes, as well as all of
its software and hardware. It also allows you
to communicate with the computer without knowing how to
speak the computer's language.
Without an operating system, a computer is useless.
Computer System Organization
Computer System
For a computer to start running-for instance, when it is
powered up or rebooted
Bootstrap program (Initial program)
firmware( stored on rom or EEPROM)
Operating system then start executing the first process
such as init.
I/O structure
 There are many types of IO devices used in computer system .
Managing these devices is major task for the operating
system.
 I/O operation affect the reliability and performance of a
system.
Storage Structure
 Main memory is usually too small to store all needed programs
and data permanently. Main memory is a volatile storage device
that loses its contents when power is turned off or otherwise lost.
 Thus, most computer systems provide as an extension of main
memory. The main requirement for secondary storage is that it
be able to hold large quantities of data permanently. The most
common secondary-storage device is a which provides storage
for both programs and data. Most programs (system and
application) are stored on a disk until they are loaded into
memory. Many programs then use the disk as both the source
and the destination of their processing. Hence, the proper
management of disk storage is of central importance to a
computer system
Computer System Architecture
According to no of general purpose resister computer
system is organized.
Single Processor
Multiprocessor
 Symmetric Multiprocessor
 Asymmetric Multiprocessor
Clustered System
Single processor
 Most of the system uses a single processor . From PDA to
mainframe system are single processor.
 One main CPU used in single processor.
 This CPU execute a general purpose instruction set, also it can
execute instruction from user processes.
 Other device specific processor or I/O processor can be used
in single processor system.
Multiprocessor operating systems
 Multiprocessor operating systems are the server operating
systems with special features for the communication and the
connectivity.
 Multiprocessor operating systems are used where multiple
CPUs connected into a single system.
 Multiprocessor operating system (OS) is almost a regular OS
as they also handle system calls, do memory management,
provide file system, and also manage input/output devices.
 But, there are some extra features available in multiprocessor
operating systems, those extra features are listed below:
 Process synchronization
 Resource management
 Scheduling
 Here are the list of some various organizations of multiprocessor operating
systems:
 Each CPU has its own OS
 Master-Slave multiprocessors
 Symmetric multiprocessors
 Master-Slave Multiprocessors(Asymmetric)
• The master-slave models basically solves almost all the problems of the first model.
• In this model, there is a single data structure that keeps track of ready processes.
• Now, when a central processing unit goes idle in this model, then it asks the OS for a
process to run and it is assigned one.
 Symmetric Multiprocessors
• Symmetric multiprocessors (SMP) is the third model. In this model, there is one copy of
the OS in memory, but any central processing unit can run it.
• Now, when a system call is made, then the central processing unit on which the system
call was made traps to the kernel and then processes that system call.
Clustered System
 Another type of multiple-CPU system is the Like
multiprocessor systems, clustered systems gather together
multiple CPUs to accomplish computational work.
 They composed of two or more individual systems-or nodes-
joined together.
 The generally accepted definition is that clustered computers
share storage and are closely linked via a LAN’s or a faster
interconnect, such as InfiniBand.
 Clustering is usually used to provide service; that is, service
will continue even if one or more systems in the cluster faiL
 High availability is generally obtained by adding a level of
redundancy in the system.
 A layer of cluster software runs on the cluster nodes. Each node can
monitor one or more of the others (over the LAN). If the monitored
machine fails, the monitoring machine can take ownership of its
storage and restart the applications that were running on the failed
machine. The users and clients of the applications see only a brief
interruption of service.
 As a cluster consists of several clusters may also be used to provide
environments. Such systems can supply significantly greater
computational power than single-processor or even SMP systems
because they are capable of running an application concurrently on
all computers in the cluster. However, applications must be written to
take advantage of the cluster by using a technique known as which
consists of dividing a program into separate components that run in
parallel on individual computers in the cluster. Typically, these
applications are designed so that once each computing node in the
cluster has solved its portion of the problem, the results from all the
nodes are combined into a final solution.
Symmetric and Asymmetric Clustering
 Clustering can be structured or symmetrically.
 In Symmetric clustering one machine is in hot
standby mode, while the other is running the
applications
 The hot-standby host machine does nothing but
monitor the active server. If that server fails, the not-
standby host becomes the active server.
 In two or more hosts are running applications and
are monitoring each other. This mode is obviously
more efficient, as it uses all of the available hardware.
Operating System Operation
 Operating System is Interrupt driven.
 If there are no processes to execute, no I/0 devices to service,
and no users to whom to respond, an operating system will sit
quietly waiting for something to happen.
 Trap(Exception) is a software generated interrupt caused either
by error (divide by zero)or by a specific request from a user
program that an operating-system service be performed.
 interrupt-driven nature of an operating system defines that
system's general structure. For each type of interrupt, separate
segments of code in the operating system determine what
action should be taken. An interrupt service routine is
provided that is responsible for dealing with the interrupt.
1. Dual Mode Operation
User mode
System Mode or Kernel Mode or Supervised or Privileged
mode
 In order to ensure the proper execution of the operating system,
we must be able to distinguish between the execution of
operating-system code and user defined code .
 At the very least we need two separate modes of operation user
mode and kernel mode.
 A bit, called mode bit is added to the hardware of the computer
to indicate the current mode: kernel (0) or user (1).
 With the mode bit we are able to distinguish between a task that
is executed on behalf of the operating system and one that is
executed on behalf of the user.
 When the computer system is executing on behalf of a user
application, the system is in user mode. However, when a user
application requests a service from the operating system (via a ..
system call), it must transition from user to kernel mode to fulfill
the request.
 At system boot time, the hardware starts in kernel mode.
 The operating system is then loaded and starts user
applications in user mode.
 Whenever a trap or interrupt occurs, the hardware switches
from user mode to kernel mode (that is, changes the state of
the mode bit to 0).
 Thus, whenever the operating system gains control of the
computer, it is in kernel mode. The system always switches to
user mode (by setting the mode bit to 1) before passing
control to a user program.
 The dual mode of operation provides us with the means for
protecting the operating system from errant users-and errant users
from one another. We accomplish this protection by designating
some of the machine in instructions that may cause harm as
privileged instruction.
 The hardware allow’s privileged instruction only, If an attempt is
made to execute a privileged instruction in user mode, the
hardware does not execute the instruction but rather treats it as
illegal and traps it to the operating system.
Timer
 We must ensure the operating system maintains control over
the CPU.A user program must be prevented from getting
struck in an infinite loop or not calling system services and
never returning control to the operating. To accomplish this
goal, we can use a timer.
 A timer can be set to interrupt the computer after a specified
period.
 The period may be fixed (for example, 1/60 second) or
variable (for example, from 1 millisecond to 1 second).
Process Management
 A process is a program in execution for exm. Batch job is a
process.
 A program dose nothing unless its instructions are executed
by a CPU .
 A time shared user program such as compiler is a process.
 A system task (Spooling O/P to printer) is a process.
 A process needs certain resources---including CPU time,
memory, files, and I/O devices to accomplish its task These
resources are either given to the process when it is created or
allocated to it while it is running.
 We emphasize that a program by itself is not a process :a
process is a passive entity , such as a content of file stored on
disk, whereas a process is an active entity.
 A single threaded process has one program counter
specifying the next instruction to execution.
 The execution of such a process must be sequential. The CPU
executes one instruction of the process after another, until the
process completes.
 A process is the unit of work in a system. Such a system
consists of a collection of processes, some of which are
operating-system processes (those that execute system code)
and the rest of which are user processes (those that execute
user code).
Activity
1. Scheduling processes and threads on the CPUs
2. Creating and deleting both user and system
processes
3. Suspending and resuming processes
4. Providing mechanisms for process
synchronization
5. Providing mechanisms for process
communication
6. Provide Mechanism for Deadlock Handling
Memory Management
 For the CPU to process data from disk, those data must first be transferred
to main memory by CPU-generated I/0 calls. In the same way, instructions
must be in memory for the CPU to execute them.
 For a program to be executed, it must be mapped to absolute addresses
and loaded into memory.
 As the program executes, it accesses program instructions and data from
memory by generating these absolute addresses.
 Eventually, the program terminates, its memory space is declared available,
and the next program can be loaded and executed.
 To improve both the utilization of the CPU and the speed of the
computer's response to its users, general-purpose computers must keep
several programs in memory, creating a need for memory management.
Activity
 Keeping track of which parts of memory are currently
being used and by whom
 Deciding which processes (or parts thereof) and data
to move into and out of memory
 Allocating and de allocating memory space as
needed
File-System Management
 A file is a collection of related information defined by its
creator.
 Commonly, files represent programs (both source and object
forms) and data.
 Data files may be numeric, alphabetic, alphanumeric, or
binary. Files may be free-form (for example, text files), or they
may be formatted rigidly (for example, fixed fields).
 The operating system implements the abstract concept of a
file by managing mass-storage media, such as tapes and
disks, and the devices that control them. Also, files are
normally organized into directories to make them easier to
use. Finally, when multiple users have access to files, it may be
desirable to control by whom and in what ways (for example,
read, write, append) files may be accessed.
Activities
1. Creating and deleting files
2. Creating and deleting directories to organize files
3. Supporting primitives for manipulating files and
directories
4. Mapping files onto secondary storage
5. Backing up files on stable (nonvolatile) storage media
Mass Storage Management
Most programs-including compilers, assemblers, word
processors, editors, and formatters-are stored on a disk
until loaded into memory and then use the disk as both the
source and destination of their processing. Hence, the
proper management of disk storage is of central
importance to a computer system.
1. Free-space management
2. Storage allocation
3. Disk scheduling
Caching
 Caching is an important principle of computer systems. Information is
normally kept in some storage system (such as main memory). As it is
used, it is copied into a faster storage system-the cache-on a temporary
basis. When we need a particular piece of information, we first check
whether it is in the cache. If it is, we use the information directly from the
cache; if it is not, we use the information from the source, putting a copy
in the cache under the assumption that we will need it again soon.
 Internal programmable registers, . such as index registers, provide a high-
speed cache for main memory. The programmer (or compiler) implements
the register-allocation and register-replacement algorithms to decide
which information to keep in registers and which to keep in main memory.
There are also caches that are implemented totally in hardware. For
instance, most systems have an instruction cache to hold the instructions
expected to be executed.

Más contenido relacionado

La actualidad más candente

Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture NotesFellowBuddy.com
 
Types of operating system
Types of operating systemTypes of operating system
Types of operating systemMohammad Alam
 
System Z operating system
System Z operating systemSystem Z operating system
System Z operating systemArpana shree
 
Operating system notes ch1
Operating system notes ch1Operating system notes ch1
Operating system notes ch1Emmanuel Damka
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating SystemsMukesh Chinta
 
Operating Systems
Operating SystemsOperating Systems
Operating Systemsvampugani
 
Operating system || Chapter 3: Process
Operating system || Chapter 3: ProcessOperating system || Chapter 3: Process
Operating system || Chapter 3: ProcessAnkonGopalBanik
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating SystemImtiaz Ahmed
 
Operating System- Services,types.Batch files and DOS history
Operating System- Services,types.Batch files and DOS historyOperating System- Services,types.Batch files and DOS history
Operating System- Services,types.Batch files and DOS historySURBHI SAROHA
 
Silberschatz / OS Concepts
Silberschatz /  OS Concepts Silberschatz /  OS Concepts
Silberschatz / OS Concepts Alanisca Alanis
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)Sohaib Danish
 
Operating System a Case Study
Operating System a Case StudyOperating System a Case Study
Operating System a Case Studyijtsrd
 

La actualidad más candente (18)

Operating system
Operating systemOperating system
Operating system
 
Presentation on operating system
 Presentation on operating system Presentation on operating system
Presentation on operating system
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture Notes
 
operating system lecture notes
operating system lecture notesoperating system lecture notes
operating system lecture notes
 
Types of operating system
Types of operating systemTypes of operating system
Types of operating system
 
System Z operating system
System Z operating systemSystem Z operating system
System Z operating system
 
Operating system notes ch1
Operating system notes ch1Operating system notes ch1
Operating system notes ch1
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Operating system || Chapter 3: Process
Operating system || Chapter 3: ProcessOperating system || Chapter 3: Process
Operating system || Chapter 3: Process
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating System
 
Operating System- Services,types.Batch files and DOS history
Operating System- Services,types.Batch files and DOS historyOperating System- Services,types.Batch files and DOS history
Operating System- Services,types.Batch files and DOS history
 
Silberschatz / OS Concepts
Silberschatz /  OS Concepts Silberschatz /  OS Concepts
Silberschatz / OS Concepts
 
Os by nishant raghav
Os by nishant raghavOs by nishant raghav
Os by nishant raghav
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)
 
Operating System a Case Study
Operating System a Case StudyOperating System a Case Study
Operating System a Case Study
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 

Similar a Introduction to Operating Systems Session 1

Operating System Introduction.pptx
Operating System Introduction.pptxOperating System Introduction.pptx
Operating System Introduction.pptxVijayKumarKandhi1
 
Fundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptxFundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptxUttara University
 
Operating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionOperating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionAnkonGopalBanik
 
LM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsLM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsmanideepakc
 
Operating Systems
Operating SystemsOperating Systems
Operating Systemsachal02
 
Basic operating systems in computer and it's uses
Basic operating systems in computer and it's usesBasic operating systems in computer and it's uses
Basic operating systems in computer and it's usesSurya Vishnuram
 
Types of Operating System-converted.pdf
Types of Operating System-converted.pdfTypes of Operating System-converted.pdf
Types of Operating System-converted.pdfOmid695066
 
OS M1.1.pptx
OS M1.1.pptxOS M1.1.pptx
OS M1.1.pptxbleh23
 
Lecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionLecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionArnoyKhan
 
L-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.pptL-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.pptKirti Verma
 
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
 

Similar a Introduction to Operating Systems Session 1 (20)

Operating System Introduction.pptx
Operating System Introduction.pptxOperating System Introduction.pptx
Operating System Introduction.pptx
 
Fundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptxFundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptx
 
Operating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionOperating system || Chapter 1: Introduction
Operating system || Chapter 1: Introduction
 
Chapter 2 operating systems
Chapter 2 operating systemsChapter 2 operating systems
Chapter 2 operating systems
 
OS UNIT1.pptx
OS UNIT1.pptxOS UNIT1.pptx
OS UNIT1.pptx
 
LM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsLM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system calls
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Os unit 1
Os unit 1Os unit 1
Os unit 1
 
Unit 1 q&a
Unit  1 q&aUnit  1 q&a
Unit 1 q&a
 
Basic operating systems in computer and it's uses
Basic operating systems in computer and it's usesBasic operating systems in computer and it's uses
Basic operating systems in computer and it's uses
 
Types of Operating System-converted.pdf
Types of Operating System-converted.pdfTypes of Operating System-converted.pdf
Types of Operating System-converted.pdf
 
Introduction to OS 1.ppt
Introduction to OS 1.pptIntroduction to OS 1.ppt
Introduction to OS 1.ppt
 
OS M1.1.pptx
OS M1.1.pptxOS M1.1.pptx
OS M1.1.pptx
 
Lecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionLecture_01 Operating System Course Introduction
Lecture_01 Operating System Course Introduction
 
L-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.pptL-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.ppt
 
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
 
Software concepts
Software concepts Software concepts
Software concepts
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
LEC 1.pptx
LEC 1.pptxLEC 1.pptx
LEC 1.pptx
 
Ch1
Ch1Ch1
Ch1
 

Último

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
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
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
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
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
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
 
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
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
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
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
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
 

Último (20)

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
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
 
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
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
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
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
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
 
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
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
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
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
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
 

Introduction to Operating Systems Session 1

  • 1. Session 1 Introduction to Operating System By Kalyani Patil
  • 2. 1. What operating systems do 2. Definition of Operating System 3. Computer System Organization 4. Computer System Architecture 5. Operating System Structure 6. Operating System Operation 7. Process Management 8. Memory Management
  • 3. What operating systems do Your computer's operating system (OS) manages all of the software and hardware on the computer. Most of the time, there are several different computer programs running at the same time, and they all need to access your computer's central processing unit (CPU), memory, and storage. The operating system coordinates all of this to make sure each program gets what it needs. OS is System Software It acts like intermediate between H/W and user Resource Manager Provide platform on which other application program are installed.
  • 4.
  • 5. The operating system manages a computer's hardware resources, including: Input devices such as a keyboard and mouse Output devices such as display monitors, printers and scanners Network devices such as modems, routers and network connections Storage devices such as internal and external drives
  • 6.
  • 7. User View The user's view of the computer varies according to the interface being used. Most computer users sit in front of a PC, consisting of a monitor/ keyboard/ mouse, and system unit. Such a system is designed for one user to monopolize its resources. The goal is to maximize the work (or play) that the user is performing. In this case/ the operating system is designed mostly for with some attention paid to performance and none paid to various hardware and software resources are shared. Performance is, of course, important to the user.
  • 8.  In other cases, a user sits at a terminal connected to a mainframe or a minicomputer. Other users are accessing the same computer through other terminals. These users share resources and may exchange information. The operating system in Such cases is designed to maximize resource utilization to assure that all available CPU time, memory, and I/0 are used efficiently and that no individual user takes more than her fair share. Workstation users sit at connected to networks of other workstations and These users have dedicated resources at their disposal, but they also share resources such as networking and servers-file, compute, and print servers. Therefore, their operating system is designed to compromise between
  • 9. System view  Resource allocator : From system’s point of view OS is resource allocator.  A computer system has many resources that may be required to solve a problem:  CPU time, memory space,  file-storage space,  I/0 devices, and so on.  The operating system acts as the manager of these resources. Facing numerous and possibly conflicting requests for resources, the operating system must decide how to allocate them to specific programs and users so that it can operate the computer system efficiently and fairly.
  • 10.  As we have seen, resource allocation is especially important where many users access the same mainframe or minicomputer. A slightly different view of an operating system emphasizes the need to control the various I/0 devices and user programs.  An operating system is a control program. A manages the execution of user programs to prevent errors and improper use of the computer. It is especially concerned with the operation and control of I/O devices.
  • 11. Operating System Definition We can also view a computer system as consisting of hardware/ software and data. The operating system provides the means for proper use of these resources in the operation of the computer system. An operating system is similar to a government. Like a government, it performs no useful function by itself. It simply provides an environment within which other programs can do useful work.
  • 12. An operating system is the most important software that runs on a computer. It manages the computer's memory and processes, as well as all of its software and hardware. It also allows you to communicate with the computer without knowing how to speak the computer's language. Without an operating system, a computer is useless.
  • 14. For a computer to start running-for instance, when it is powered up or rebooted Bootstrap program (Initial program) firmware( stored on rom or EEPROM) Operating system then start executing the first process such as init.
  • 15. I/O structure  There are many types of IO devices used in computer system . Managing these devices is major task for the operating system.  I/O operation affect the reliability and performance of a system.
  • 17.  Main memory is usually too small to store all needed programs and data permanently. Main memory is a volatile storage device that loses its contents when power is turned off or otherwise lost.  Thus, most computer systems provide as an extension of main memory. The main requirement for secondary storage is that it be able to hold large quantities of data permanently. The most common secondary-storage device is a which provides storage for both programs and data. Most programs (system and application) are stored on a disk until they are loaded into memory. Many programs then use the disk as both the source and the destination of their processing. Hence, the proper management of disk storage is of central importance to a computer system
  • 18. Computer System Architecture According to no of general purpose resister computer system is organized. Single Processor Multiprocessor  Symmetric Multiprocessor  Asymmetric Multiprocessor Clustered System
  • 19. Single processor  Most of the system uses a single processor . From PDA to mainframe system are single processor.  One main CPU used in single processor.  This CPU execute a general purpose instruction set, also it can execute instruction from user processes.  Other device specific processor or I/O processor can be used in single processor system.
  • 20. Multiprocessor operating systems  Multiprocessor operating systems are the server operating systems with special features for the communication and the connectivity.  Multiprocessor operating systems are used where multiple CPUs connected into a single system.  Multiprocessor operating system (OS) is almost a regular OS as they also handle system calls, do memory management, provide file system, and also manage input/output devices.  But, there are some extra features available in multiprocessor operating systems, those extra features are listed below:  Process synchronization  Resource management  Scheduling
  • 21.
  • 22.  Here are the list of some various organizations of multiprocessor operating systems:  Each CPU has its own OS  Master-Slave multiprocessors  Symmetric multiprocessors  Master-Slave Multiprocessors(Asymmetric) • The master-slave models basically solves almost all the problems of the first model. • In this model, there is a single data structure that keeps track of ready processes. • Now, when a central processing unit goes idle in this model, then it asks the OS for a process to run and it is assigned one.  Symmetric Multiprocessors • Symmetric multiprocessors (SMP) is the third model. In this model, there is one copy of the OS in memory, but any central processing unit can run it. • Now, when a system call is made, then the central processing unit on which the system call was made traps to the kernel and then processes that system call.
  • 23. Clustered System  Another type of multiple-CPU system is the Like multiprocessor systems, clustered systems gather together multiple CPUs to accomplish computational work.  They composed of two or more individual systems-or nodes- joined together.  The generally accepted definition is that clustered computers share storage and are closely linked via a LAN’s or a faster interconnect, such as InfiniBand.  Clustering is usually used to provide service; that is, service will continue even if one or more systems in the cluster faiL  High availability is generally obtained by adding a level of redundancy in the system.
  • 24.  A layer of cluster software runs on the cluster nodes. Each node can monitor one or more of the others (over the LAN). If the monitored machine fails, the monitoring machine can take ownership of its storage and restart the applications that were running on the failed machine. The users and clients of the applications see only a brief interruption of service.  As a cluster consists of several clusters may also be used to provide environments. Such systems can supply significantly greater computational power than single-processor or even SMP systems because they are capable of running an application concurrently on all computers in the cluster. However, applications must be written to take advantage of the cluster by using a technique known as which consists of dividing a program into separate components that run in parallel on individual computers in the cluster. Typically, these applications are designed so that once each computing node in the cluster has solved its portion of the problem, the results from all the nodes are combined into a final solution.
  • 25. Symmetric and Asymmetric Clustering  Clustering can be structured or symmetrically.  In Symmetric clustering one machine is in hot standby mode, while the other is running the applications  The hot-standby host machine does nothing but monitor the active server. If that server fails, the not- standby host becomes the active server.  In two or more hosts are running applications and are monitoring each other. This mode is obviously more efficient, as it uses all of the available hardware.
  • 26. Operating System Operation  Operating System is Interrupt driven.  If there are no processes to execute, no I/0 devices to service, and no users to whom to respond, an operating system will sit quietly waiting for something to happen.  Trap(Exception) is a software generated interrupt caused either by error (divide by zero)or by a specific request from a user program that an operating-system service be performed.  interrupt-driven nature of an operating system defines that system's general structure. For each type of interrupt, separate segments of code in the operating system determine what action should be taken. An interrupt service routine is provided that is responsible for dealing with the interrupt.
  • 27. 1. Dual Mode Operation User mode System Mode or Kernel Mode or Supervised or Privileged mode  In order to ensure the proper execution of the operating system, we must be able to distinguish between the execution of operating-system code and user defined code .
  • 28.  At the very least we need two separate modes of operation user mode and kernel mode.  A bit, called mode bit is added to the hardware of the computer to indicate the current mode: kernel (0) or user (1).  With the mode bit we are able to distinguish between a task that is executed on behalf of the operating system and one that is executed on behalf of the user.  When the computer system is executing on behalf of a user application, the system is in user mode. However, when a user application requests a service from the operating system (via a .. system call), it must transition from user to kernel mode to fulfill the request.
  • 29.
  • 30.  At system boot time, the hardware starts in kernel mode.  The operating system is then loaded and starts user applications in user mode.  Whenever a trap or interrupt occurs, the hardware switches from user mode to kernel mode (that is, changes the state of the mode bit to 0).  Thus, whenever the operating system gains control of the computer, it is in kernel mode. The system always switches to user mode (by setting the mode bit to 1) before passing control to a user program.
  • 31.  The dual mode of operation provides us with the means for protecting the operating system from errant users-and errant users from one another. We accomplish this protection by designating some of the machine in instructions that may cause harm as privileged instruction.  The hardware allow’s privileged instruction only, If an attempt is made to execute a privileged instruction in user mode, the hardware does not execute the instruction but rather treats it as illegal and traps it to the operating system.
  • 32. Timer  We must ensure the operating system maintains control over the CPU.A user program must be prevented from getting struck in an infinite loop or not calling system services and never returning control to the operating. To accomplish this goal, we can use a timer.  A timer can be set to interrupt the computer after a specified period.  The period may be fixed (for example, 1/60 second) or variable (for example, from 1 millisecond to 1 second).
  • 33. Process Management  A process is a program in execution for exm. Batch job is a process.  A program dose nothing unless its instructions are executed by a CPU .  A time shared user program such as compiler is a process.  A system task (Spooling O/P to printer) is a process.  A process needs certain resources---including CPU time, memory, files, and I/O devices to accomplish its task These resources are either given to the process when it is created or allocated to it while it is running.
  • 34.  We emphasize that a program by itself is not a process :a process is a passive entity , such as a content of file stored on disk, whereas a process is an active entity.  A single threaded process has one program counter specifying the next instruction to execution.  The execution of such a process must be sequential. The CPU executes one instruction of the process after another, until the process completes.  A process is the unit of work in a system. Such a system consists of a collection of processes, some of which are operating-system processes (those that execute system code) and the rest of which are user processes (those that execute user code).
  • 35. Activity 1. Scheduling processes and threads on the CPUs 2. Creating and deleting both user and system processes 3. Suspending and resuming processes 4. Providing mechanisms for process synchronization 5. Providing mechanisms for process communication 6. Provide Mechanism for Deadlock Handling
  • 36. Memory Management  For the CPU to process data from disk, those data must first be transferred to main memory by CPU-generated I/0 calls. In the same way, instructions must be in memory for the CPU to execute them.  For a program to be executed, it must be mapped to absolute addresses and loaded into memory.  As the program executes, it accesses program instructions and data from memory by generating these absolute addresses.  Eventually, the program terminates, its memory space is declared available, and the next program can be loaded and executed.  To improve both the utilization of the CPU and the speed of the computer's response to its users, general-purpose computers must keep several programs in memory, creating a need for memory management.
  • 37. Activity  Keeping track of which parts of memory are currently being used and by whom  Deciding which processes (or parts thereof) and data to move into and out of memory  Allocating and de allocating memory space as needed
  • 38. File-System Management  A file is a collection of related information defined by its creator.  Commonly, files represent programs (both source and object forms) and data.  Data files may be numeric, alphabetic, alphanumeric, or binary. Files may be free-form (for example, text files), or they may be formatted rigidly (for example, fixed fields).  The operating system implements the abstract concept of a file by managing mass-storage media, such as tapes and disks, and the devices that control them. Also, files are normally organized into directories to make them easier to use. Finally, when multiple users have access to files, it may be desirable to control by whom and in what ways (for example, read, write, append) files may be accessed.
  • 39. Activities 1. Creating and deleting files 2. Creating and deleting directories to organize files 3. Supporting primitives for manipulating files and directories 4. Mapping files onto secondary storage 5. Backing up files on stable (nonvolatile) storage media
  • 40. Mass Storage Management Most programs-including compilers, assemblers, word processors, editors, and formatters-are stored on a disk until loaded into memory and then use the disk as both the source and destination of their processing. Hence, the proper management of disk storage is of central importance to a computer system. 1. Free-space management 2. Storage allocation 3. Disk scheduling
  • 41. Caching  Caching is an important principle of computer systems. Information is normally kept in some storage system (such as main memory). As it is used, it is copied into a faster storage system-the cache-on a temporary basis. When we need a particular piece of information, we first check whether it is in the cache. If it is, we use the information directly from the cache; if it is not, we use the information from the source, putting a copy in the cache under the assumption that we will need it again soon.  Internal programmable registers, . such as index registers, provide a high- speed cache for main memory. The programmer (or compiler) implements the register-allocation and register-replacement algorithms to decide which information to keep in registers and which to keep in main memory. There are also caches that are implemented totally in hardware. For instance, most systems have an instruction cache to hold the instructions expected to be executed.