SlideShare uma empresa Scribd logo
1 de 51
Baixar para ler offline
Introduction
to
Operating System
What is Operating System?
• Acts as an intermediary between the computer
user and the computer hardware.
• Some operating systems are designed to be
convenient, others to be efficient, and others
some combination of the two.
An operating system is a program that manages the computer hardware.
05-02-2024 Ms. Rashmi Bhat 2
A little History…
• 1st generation computers introduced in the year 1940, did not have any
operating systems.
• First operating system was introduced in 1956 by General Motors and it
was developed for IBM mainframe computers, known as GMOS.
• Unix and MS-DOS
• Linux and Microsoft Windows
• Android and IOS
05-02-2024 Ms. Rashmi Bhat 3
Overview of an Operating System
05-02-2024 Ms. Rashmi Bhat 4
• Hardware
• Provides basic computing resources
• CPU
• Memory
• I/O Devices
• Application Programs
• Define the ways in which these resources are used
to solve users' computing problems.
• Operating System
• Controls the hardware and coordinates its use
among the various application programs for the
various users.
System and Application Programs
Operating System
Hardware
Components of a computer System
. . .
Overview of an Operating System
User View
• Ease of use
• Performance
• Resource utilization
System View
• Resource allocator
• Control program
05-02-2024 Ms. Rashmi Bhat 5
The fundamental goal of computer systems is to execute user programs and
to make solving user problems easier.
Operating System Objectives
Makes a computer more convenient to
use
Convenience
Allows the computer system resources to
be used in an efficient manner.
Efficiency
Permits the effective development, testing
and introduction of new system functions
without interfering with service.
Ability to
evolve
05-02-2024 Ms. Rashmi Bhat 7
Operating System Services (Functions)
Services provided for user Services provided for system
05-02-2024 Ms. Rashmi Bhat 8
User interface
Program execution
I/O operations
File System manipulation
Communications
Error detection
Resource allocation
Accounting
Protection and security
Evolution of Operating Systems
• Serial Processing
• No operating system
• Programs were loaded using punch cards, magnetic
tape
• Two main Problems
• Scheduling
• Some times resulting in wasted computer processing time
• User was forced to stop if times out
• Setup time
• Considerable amount of time was spent in setting up the
program to run.
05-02-2024 Ms. Rashmi Bhat 9
Evolution of Operating Systems
• Simple Batch Processing
• The first operating system developed to maximize the processor utilization
• Main idea is Use of special software called as monitor.
• User submits the job on cards or tape to computer operator, who batches the
job together sequentially and places the entire batch on an input device for
use by the monitor.
• Each programs branch back to the monitor upon completion, so monitor
automatically begins loading the next program.
• Monitor:
• Controls sequence of events
• Resides in main memory called as resident monitor
05-02-2024 Ms. Rashmi Bhat 10
Evolution of Operating Systems
• Simple Batch Processing
• Desirable hardware features
• Memory protection
• A program must not alter the memory area containing
the monitor
• Timer
• Prevents a single job from monopolizing the system
• Privileged instructions
• Executed only by the monitor.
• Interrupts
• Gives more flexibility to OS in relinquishing control to
and regaining control from the user program.
05-02-2024 Ms. Rashmi Bhat 11
Evolution of Operating Systems
• Multi-programmed Batch System
• In simple batch OS, the processor was often idle because of slower I/O
devices.
• When one job needs to wait for I/O, the processor can switch to the other
job, which is likely not waiting for I/O.
• Expand memory to hold multiple programs and switch among all of them
• This approach is known as Multiprogramming or multitasking.
• This is the center theme of modern operating systems.
• More sophisticated than uni-programming systems
• To keep many jobs in main memory, some sort of memory management is
required
05-02-2024 Ms. Rashmi Bhat 12
Evolution of Operating Systems
• Multi-programmed Batch System
05-02-2024 Ms. Rashmi Bhat 13
Evolution of Operating Systems
• Multi-programmed Batch System
05-02-2024 Ms. Rashmi Bhat 14
Evolution of Operating Systems
• Time-Sharing Systems
• With the need of user interaction with the computer, time sharing systems
evolved.
• Multiple users simultaneously accessing the system through terminals
• OS interleaves the execution of each use program in a short burst.
• If n users are using OS, then each user will only see on an average 1/n of the
effective computer capacity.
Both batch processing and time-sharing use multiprogramming. But still the
differ from each other
05-02-2024 Ms. Rashmi Bhat 15
Evolution of Operating Systems
Batch Multiprogramming Time-Sharing
Principal Objective Maximize processor use Minimize response time
Source of directive to
Operating System
Job control language commands
provided with the job
Commands entered at the
terminals
05-02-2024 Ms. Rashmi Bhat 16
Batch Multiprogramming Vs Time Sharing Systems
Operating System Structure
• Simple Structure
• Provides the most functionalities in least
space.
• In MS-DOS system, Interfaces and levels of
functionalities are not well separated.
• Such systems are vulnerable to malicious
programs causing entire system crashes
• In UNIX system functionality is divided into
two parts: Kernel and System Programs
05-02-2024 Ms. Rashmi Bhat 17
Application program
Resident system program
MS-DOS device drivers
ROM BIOS device drivers
Fig. MS-DOS Layer Structure
kernel
Fig. Traditional UNIX System Structure
Operating System Structure
• Monolithic Structure
• Each component of the operating system was
contained within the kernel
• Each component could communicate directly with
any other component, and had unrestricted
system access.
• Device drivers were loaded into the running
kernel and become part of the kernel.
• This made OS very efficient.
• But errors were more difficult to isolate, and there
was a high risk of damage due to erroneous or
malicious code.
05-02-2024 Ms. Rashmi Bhat 18
Fig. Monolithic Structure
Operating System Structure
• Layered Structure
• OS is broken into a number of layers (levels)
• The bottom layer (Layer 0) is hardware; the highest layer
(Layer n) is user interface.
• Each layer uses functions/services only of lower level
layers.
• Simple to construct and debug
• Once we debug first layer, its correct functioning can be assumed
while second layer is debugged, and so on.
• If an error occurs while debugging a particular layer, the error must
be on that layer.
• Only difficulty involves is appropriately defining the various
layers.
• This structure tends to be less efficient.
05-02-2024 Ms. Rashmi Bhat 19
Layer N
User Interface
.
.
Layer 1
Layer 0
Hardware
Fig. Layered Operating System
Operating System Structure
• Microkernel
• Structures the OS by removing all nonessential components from the kernel and implements
them as system and user level programs.
• Results into smaller kernel.
• Provides minimal process and memory management
• Main function is to provide communication facility between client program and the various
services running in user space.
• Communication is provided by message passing.
• This structure is easy to extend.
• Can suffer from performance decreased due to increased system overhead
05-02-2024 Ms. Rashmi Bhat 20
Operating System Structure
• Microkernel
05-02-2024 Ms. Rashmi Bhat 21
Fig. Microkernel structure of OSx
Kernel
05-02-2024 Ms. Rashmi Bhat 22
• Kernel
• Kernel is the core part of Linux.
• It is responsible for all major activities of this operating system.
• It consists of various modules and it interacts directly with the underlying hardware.
• It provides the required abstraction to hide low level hardware details to system or
application programs.
• Kernel Mode Vs User Mode
• Kernel component code executes in a special privileged mode called Kernel mode with full access to all
resources of the computer.
• User programs and other system programs works in User Mode which has no access to system hardware and
kernel code.
05-02-2024 Ms. Rashmi Bhat 23
Application, Tools
Process
Management
Memory
Management
File
Systems
Device
Drivers
Network
Scheduler
Scheduler
Memory
Manager
File System
types
Block Devices
Character
Devices
Network
Protocols
Network
Drivers
CPU RAM
Hard disk,
CPU, Floppy
Disk
Terminal
equipment
Network
Adapter
Multitasking Virtual Memory File, Directories
Device access,
terminals
Network
Functionality
System calls
User Space
Linux Kernel
Components
Functionality
Software
Support
Hardware
Support
Hardware
Fig. Linux Kernel Architecture
Kernel
Kernel
05-02-2024 Ms. Rashmi Bhat 24
Character device driver
Block device driver
Network device driver
Traps and faults
Physical memory
Interrupts
Signals
System calls
Processes and scheduler
Virtual memory
File systems
Network protocols
Principal Components of Kernel
• Absent Nos. 23/01/24
• 16, 19, 22, 25, 26,27, 32, 42, 43, 47, 48, 50, 51,53, 56, 58, 60,61, 63
• 16, 19, 22, 25,27, 43, 47, 48, 50, 51, 56, 58, 60,61, 63
05-02-2024 Ms. Rashmi Bhat 25
Shell
• The shell provides you with an interface to the Unix system.
• The shell is a program that takes commands from the keyboard and gives them to
the operating system to perform.
• There are different flavors of a shell. Each flavor of shell has its own set of
recognized commands and functions.
• Shell Prompt:
• The prompt, $, which is called the command prompt, is issued by the shell.
• It determines the command you want executed by looking at the first word of your input.
05-02-2024 Ms. Rashmi Bhat 26
Shell
05-02-2024 Ms. Rashmi Bhat 27
Shell
• Shell Types
• Bourne Shell
• The $ character is the default prompt.
• Subcategories
• Bourne Shell (sh)
• Korn Shell (ksh)
• Bourne Again Shell (bash)
• POSIX Shell (sh)
• C Shell
• The % character is the default prompt.
• Subcategories
• C shell (csh)
• TENEX/TOPS C Shell (tcsh)
05-02-2024 Ms. Rashmi Bhat 28
Shell
• Shell Script
• A list of commands, which are listed in the order of execution.
• Comments are preceded by # sign, describing the steps.
• Shell scripts are interpreted.
• E.g.
• Write a shell script to create a directory
• Start writing your shell script with shebang construct
#!/bin/sh
This tells the system that the commands that follow are to be executed by the Bourne shell.
• To execute a program available in the current directory, use
./program_name
05-02-2024 Ms. Rashmi Bhat 29
05-02-2024 Ms. Rashmi Bhat 30
05-02-2024 Ms. Rashmi Bhat 31
05-02-2024 Ms. Rashmi Bhat 32
05-02-2024 Ms. Rashmi Bhat 33
05-02-2024 Ms. Rashmi Bhat 34
05-02-2024 Ms. Rashmi Bhat 35
05-02-2024 Ms. Rashmi Bhat 36
05-02-2024 Ms. Rashmi Bhat 37
05-02-2024 Ms. Rashmi Bhat 38
System Calls
• Process requests a specific kernel service
by means of a system call.
• It is a mechanism that provides the
interface between a process and the
operating system.
• System call offers the services of the
operating system to the user programs via
API (Application Programming Interface).
05-02-2024 Ms. Rashmi Bhat 39
System Call
• How does a System Call works?
05-02-2024 Ms. Rashmi Bhat 40
User Mode
Kernel Mode
User Process
Executing
Gets System
Call
Return from
System Call
Execute
System Call
1 2 3
4
System Call
• How to pass parameters to the operating system?
• Pass the parameters in registers.
• Store the parameters in a block, or table, in memory, and pass the address of
the block as a parameter in a register.
• Push the parameters onto the stack.
05-02-2024 Ms. Rashmi Bhat 41
System Call
• Why do you need System Calls in OS?
• Following are situations which need system calls in OS:
• Reading and writing from files demand system calls.
• If a file system wants to create or delete files, system calls are required.
• System calls are used for the creation and management of new processes.
• Network connections need system calls for sending and receiving packets.
• Access to hardware devices like scanner, printer, need a system call.
05-02-2024 Ms. Rashmi Bhat 42
System Calls
05-02-2024 Ms. Rashmi Bhat 43
System
Calls
Process
Control
File
Management
Device
Management
Information
Maintenance
Communication
Protection
System Call
• Process Control
• This system calls perform the task of process creation, process termination, etc.
• Functions:
• End and Abort
• Load and Execute
• Create Process and Terminate Process
• Wait and Signal Event
• Allocate and free memory
05-02-2024 Ms. Rashmi Bhat 44
System Call
• File Management
• File management system calls handle file manipulation jobs like creating a file, reading, and
writing, etc.
• Functions:
• Create a file
• Delete file
• Open and close file
• Read, write, and reposition
• Get and set file attributes
05-02-2024 Ms. Rashmi Bhat 45
System Call
• Device Management
• Device management does the job of device manipulation like reading from device buffers,
writing into device buffers, etc.
• Functions:
• Request and release device
• Logically attach/ detach devices
• Get and Set device attributes
05-02-2024 Ms. Rashmi Bhat 46
System Call
• Information Maintenance
• It handles information and its transfer between the OS and the user program.
• Functions:
• Get or set time and date
• Get process and device attributes
• Communication
• Specially used for inter-process communications.
• Functions:
• Create, delete communications connections
• Send, receive message
• Help OS to transfer status information
• Attach or detach remote devices
05-02-2024 Ms. Rashmi Bhat 47
System Call
• Protection
• Protection provides a mechanism for controlling access to the resources provided by a
computer system.
• Functions:
• Set and get permission
• Allow and deny user
05-02-2024 Ms. Rashmi Bhat 48
System Call
• Some Important System Calls
• wait()
• A process needs to wait for another process to complete its execution.
• fork()
• Processes use this system call to create processes that are a copy of themselves.
• exec()
• This system call runs when an executable file in the context of an already running process that
replaces the older executable file.
• kill()
• The kill() system call is used by OS to send a termination signal to a process that urges the process
to exit.
• exit()
• The exit() system call is used to terminate program execution.
05-02-2024 Ms. Rashmi Bhat 49
System Call Summary
05-02-2024 Ms. Rashmi Bhat 50
Home Work - 1
• List the various operating systems in the order they have launched.
• List the mobile operating systems that you know.
05-02-2024 Ms. Rashmi Bhat 53
05-02-2024 Ms. Rashmi Bhat 54

Mais conteúdo relacionado

Mais procurados

cpu scheduling
cpu schedulingcpu scheduling
cpu schedulinghashim102
 
User and Operating System Interface
User and Operating System InterfaceUser and Operating System Interface
User and Operating System InterfaceNusrat Jahan Shanta
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating SystemLuka M G
 
User and operating system interface.pptx
User and operating system interface.pptxUser and operating system interface.pptx
User and operating system interface.pptxMSivani
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)Vaibhav Bajaj
 
Interprocess communication (IPC) IN O.S
Interprocess communication (IPC) IN O.SInterprocess communication (IPC) IN O.S
Interprocess communication (IPC) IN O.SHussain Ala'a Alkabi
 
Operating system
Operating systemOperating system
Operating systemyogitamore3
 
Context Switching
Context SwitchingContext Switching
Context Switchingfranksvalli
 
Virtual Machines - Virtual Box
Virtual Machines  - Virtual BoxVirtual Machines  - Virtual Box
Virtual Machines - Virtual BoxLahiru Danushka
 
Linux process management
Linux process managementLinux process management
Linux process managementRaghu nath
 
Linux Performance Analysis and Tools
Linux Performance Analysis and ToolsLinux Performance Analysis and Tools
Linux Performance Analysis and ToolsBrendan Gregg
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.pptKeyreSebre
 
Basics of boot-loader
Basics of boot-loaderBasics of boot-loader
Basics of boot-loaderiamumr
 

Mais procurados (20)

cpu scheduling
cpu schedulingcpu scheduling
cpu scheduling
 
User and Operating System Interface
User and Operating System InterfaceUser and Operating System Interface
User and Operating System Interface
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating System
 
User and operating system interface.pptx
User and operating system interface.pptxUser and operating system interface.pptx
User and operating system interface.pptx
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 
Pseudoparalelismo
PseudoparalelismoPseudoparalelismo
Pseudoparalelismo
 
Pthread
PthreadPthread
Pthread
 
Interprocess communication (IPC) IN O.S
Interprocess communication (IPC) IN O.SInterprocess communication (IPC) IN O.S
Interprocess communication (IPC) IN O.S
 
Operating system
Operating systemOperating system
Operating system
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
 
Evolution of os
Evolution of osEvolution of os
Evolution of os
 
Context Switching
Context SwitchingContext Switching
Context Switching
 
Linux-Internals-and-Networking
Linux-Internals-and-NetworkingLinux-Internals-and-Networking
Linux-Internals-and-Networking
 
Virtual Machines - Virtual Box
Virtual Machines  - Virtual BoxVirtual Machines  - Virtual Box
Virtual Machines - Virtual Box
 
Parallel Computing
Parallel ComputingParallel Computing
Parallel Computing
 
Linux process management
Linux process managementLinux process management
Linux process management
 
Linux Performance Analysis and Tools
Linux Performance Analysis and ToolsLinux Performance Analysis and Tools
Linux Performance Analysis and Tools
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.ppt
 
Basics of boot-loader
Basics of boot-loaderBasics of boot-loader
Basics of boot-loader
 

Semelhante a Introduction to Operating System

Lecture 1- Introduction to Operating Systems.pdf
Lecture 1- Introduction to Operating Systems.pdfLecture 1- Introduction to Operating Systems.pdf
Lecture 1- Introduction to Operating Systems.pdfAmanuelmergia
 
Operating System Unit 1
Operating System Unit 1Operating System Unit 1
Operating System Unit 1SanthiNivas
 
Operating System-Types-Examples-Advantages & disadvantages
Operating System-Types-Examples-Advantages & disadvantagesOperating System-Types-Examples-Advantages & disadvantages
Operating System-Types-Examples-Advantages & disadvantagesOPTOM Nimra Murtaza
 
Chapter one_oS.ppt
Chapter one_oS.pptChapter one_oS.ppt
Chapter one_oS.pptmiki304759
 
Embedded systems introduction
Embedded systems introductionEmbedded systems introduction
Embedded systems introductionmohamed drahem
 
Introduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary MargaratIntroduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary MargaratMary Margarat
 
Introduction of os and types
Introduction of os and typesIntroduction of os and types
Introduction of os and typesPrakash Sir
 
Uc14 chap05
Uc14 chap05Uc14 chap05
Uc14 chap05ayahye
 
4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John LadoMark John Lado, MIT
 
Operating Systems 1 (3/12) - Architectures
Operating Systems 1 (3/12) - ArchitecturesOperating Systems 1 (3/12) - Architectures
Operating Systems 1 (3/12) - ArchitecturesPeter Tröger
 
1. Unit 1_Introduction to OS.pptx
1. Unit 1_Introduction to OS.pptx1. Unit 1_Introduction to OS.pptx
1. Unit 1_Introduction to OS.pptxAishwarya .
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxakhilagajjala
 

Semelhante a Introduction to Operating System (20)

Operating System
Operating SystemOperating System
Operating System
 
Lecture 1- Introduction to Operating Systems.pdf
Lecture 1- Introduction to Operating Systems.pdfLecture 1- Introduction to Operating Systems.pdf
Lecture 1- Introduction to Operating Systems.pdf
 
Operating System Unit 1
Operating System Unit 1Operating System Unit 1
Operating System Unit 1
 
Unit I OS.pdf
Unit I OS.pdfUnit I OS.pdf
Unit I OS.pdf
 
Operating System-Types-Examples-Advantages & disadvantages
Operating System-Types-Examples-Advantages & disadvantagesOperating System-Types-Examples-Advantages & disadvantages
Operating System-Types-Examples-Advantages & disadvantages
 
OS_MD_1.pdf
OS_MD_1.pdfOS_MD_1.pdf
OS_MD_1.pdf
 
Chapter one_oS.ppt
Chapter one_oS.pptChapter one_oS.ppt
Chapter one_oS.ppt
 
Embedded systems introduction
Embedded systems introductionEmbedded systems introduction
Embedded systems introduction
 
Introduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary MargaratIntroduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary Margarat
 
Introduction of os and types
Introduction of os and typesIntroduction of os and types
Introduction of os and types
 
Operating System Overview.pdf
Operating System Overview.pdfOperating System Overview.pdf
Operating System Overview.pdf
 
Uc14 chap05
Uc14 chap05Uc14 chap05
Uc14 chap05
 
Uc14 chap05
Uc14 chap05Uc14 chap05
Uc14 chap05
 
Introduction to operating systems
 Introduction to operating systems Introduction to operating systems
Introduction to operating systems
 
OPERATING SYSTEM
OPERATING SYSTEMOPERATING SYSTEM
OPERATING SYSTEM
 
4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado
 
Operating Systems 1 (3/12) - Architectures
Operating Systems 1 (3/12) - ArchitecturesOperating Systems 1 (3/12) - Architectures
Operating Systems 1 (3/12) - Architectures
 
1. Unit 1_Introduction to OS.pptx
1. Unit 1_Introduction to OS.pptx1. Unit 1_Introduction to OS.pptx
1. Unit 1_Introduction to OS.pptx
 
OS-01.ppt
OS-01.pptOS-01.ppt
OS-01.ppt
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptx
 

Mais de Rashmi Bhat

Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
The Geometry of Virtual Worlds.pdf
The Geometry of Virtual Worlds.pdfThe Geometry of Virtual Worlds.pdf
The Geometry of Virtual Worlds.pdfRashmi Bhat
 
Spatial Data Mining
Spatial Data MiningSpatial Data Mining
Spatial Data MiningRashmi Bhat
 
Mining Frequent Patterns And Association Rules
Mining Frequent Patterns And Association RulesMining Frequent Patterns And Association Rules
Mining Frequent Patterns And Association RulesRashmi Bhat
 
Classification in Data Mining
Classification in Data MiningClassification in Data Mining
Classification in Data MiningRashmi Bhat
 
Data Warehouse Fundamentals
Data Warehouse FundamentalsData Warehouse Fundamentals
Data Warehouse FundamentalsRashmi Bhat
 
Virtual Reality
Virtual Reality Virtual Reality
Virtual Reality Rashmi Bhat
 
Introduction To Virtual Reality
Introduction To Virtual RealityIntroduction To Virtual Reality
Introduction To Virtual RealityRashmi Bhat
 

Mais de Rashmi Bhat (16)

Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
The Geometry of Virtual Worlds.pdf
The Geometry of Virtual Worlds.pdfThe Geometry of Virtual Worlds.pdf
The Geometry of Virtual Worlds.pdf
 
Module 1 VR.pdf
Module 1 VR.pdfModule 1 VR.pdf
Module 1 VR.pdf
 
OLAP
OLAPOLAP
OLAP
 
Spatial Data Mining
Spatial Data MiningSpatial Data Mining
Spatial Data Mining
 
Web mining
Web miningWeb mining
Web mining
 
Mining Frequent Patterns And Association Rules
Mining Frequent Patterns And Association RulesMining Frequent Patterns And Association Rules
Mining Frequent Patterns And Association Rules
 
Clustering
ClusteringClustering
Clustering
 
Classification in Data Mining
Classification in Data MiningClassification in Data Mining
Classification in Data Mining
 
ETL Process
ETL ProcessETL Process
ETL Process
 
Data Warehouse Fundamentals
Data Warehouse FundamentalsData Warehouse Fundamentals
Data Warehouse Fundamentals
 
Virtual Reality
Virtual Reality Virtual Reality
Virtual Reality
 
Introduction To Virtual Reality
Introduction To Virtual RealityIntroduction To Virtual Reality
Introduction To Virtual Reality
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 

Último

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
 
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...Call girls in Ahmedabad High profile
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
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
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Último (20)

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
 
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
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...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
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
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 

Introduction to Operating System

  • 2. What is Operating System? • Acts as an intermediary between the computer user and the computer hardware. • Some operating systems are designed to be convenient, others to be efficient, and others some combination of the two. An operating system is a program that manages the computer hardware. 05-02-2024 Ms. Rashmi Bhat 2
  • 3. A little History… • 1st generation computers introduced in the year 1940, did not have any operating systems. • First operating system was introduced in 1956 by General Motors and it was developed for IBM mainframe computers, known as GMOS. • Unix and MS-DOS • Linux and Microsoft Windows • Android and IOS 05-02-2024 Ms. Rashmi Bhat 3
  • 4. Overview of an Operating System 05-02-2024 Ms. Rashmi Bhat 4 • Hardware • Provides basic computing resources • CPU • Memory • I/O Devices • Application Programs • Define the ways in which these resources are used to solve users' computing problems. • Operating System • Controls the hardware and coordinates its use among the various application programs for the various users. System and Application Programs Operating System Hardware Components of a computer System . . .
  • 5. Overview of an Operating System User View • Ease of use • Performance • Resource utilization System View • Resource allocator • Control program 05-02-2024 Ms. Rashmi Bhat 5 The fundamental goal of computer systems is to execute user programs and to make solving user problems easier.
  • 6. Operating System Objectives Makes a computer more convenient to use Convenience Allows the computer system resources to be used in an efficient manner. Efficiency Permits the effective development, testing and introduction of new system functions without interfering with service. Ability to evolve 05-02-2024 Ms. Rashmi Bhat 7
  • 7. Operating System Services (Functions) Services provided for user Services provided for system 05-02-2024 Ms. Rashmi Bhat 8 User interface Program execution I/O operations File System manipulation Communications Error detection Resource allocation Accounting Protection and security
  • 8. Evolution of Operating Systems • Serial Processing • No operating system • Programs were loaded using punch cards, magnetic tape • Two main Problems • Scheduling • Some times resulting in wasted computer processing time • User was forced to stop if times out • Setup time • Considerable amount of time was spent in setting up the program to run. 05-02-2024 Ms. Rashmi Bhat 9
  • 9. Evolution of Operating Systems • Simple Batch Processing • The first operating system developed to maximize the processor utilization • Main idea is Use of special software called as monitor. • User submits the job on cards or tape to computer operator, who batches the job together sequentially and places the entire batch on an input device for use by the monitor. • Each programs branch back to the monitor upon completion, so monitor automatically begins loading the next program. • Monitor: • Controls sequence of events • Resides in main memory called as resident monitor 05-02-2024 Ms. Rashmi Bhat 10
  • 10. Evolution of Operating Systems • Simple Batch Processing • Desirable hardware features • Memory protection • A program must not alter the memory area containing the monitor • Timer • Prevents a single job from monopolizing the system • Privileged instructions • Executed only by the monitor. • Interrupts • Gives more flexibility to OS in relinquishing control to and regaining control from the user program. 05-02-2024 Ms. Rashmi Bhat 11
  • 11. Evolution of Operating Systems • Multi-programmed Batch System • In simple batch OS, the processor was often idle because of slower I/O devices. • When one job needs to wait for I/O, the processor can switch to the other job, which is likely not waiting for I/O. • Expand memory to hold multiple programs and switch among all of them • This approach is known as Multiprogramming or multitasking. • This is the center theme of modern operating systems. • More sophisticated than uni-programming systems • To keep many jobs in main memory, some sort of memory management is required 05-02-2024 Ms. Rashmi Bhat 12
  • 12. Evolution of Operating Systems • Multi-programmed Batch System 05-02-2024 Ms. Rashmi Bhat 13
  • 13. Evolution of Operating Systems • Multi-programmed Batch System 05-02-2024 Ms. Rashmi Bhat 14
  • 14. Evolution of Operating Systems • Time-Sharing Systems • With the need of user interaction with the computer, time sharing systems evolved. • Multiple users simultaneously accessing the system through terminals • OS interleaves the execution of each use program in a short burst. • If n users are using OS, then each user will only see on an average 1/n of the effective computer capacity. Both batch processing and time-sharing use multiprogramming. But still the differ from each other 05-02-2024 Ms. Rashmi Bhat 15
  • 15. Evolution of Operating Systems Batch Multiprogramming Time-Sharing Principal Objective Maximize processor use Minimize response time Source of directive to Operating System Job control language commands provided with the job Commands entered at the terminals 05-02-2024 Ms. Rashmi Bhat 16 Batch Multiprogramming Vs Time Sharing Systems
  • 16. Operating System Structure • Simple Structure • Provides the most functionalities in least space. • In MS-DOS system, Interfaces and levels of functionalities are not well separated. • Such systems are vulnerable to malicious programs causing entire system crashes • In UNIX system functionality is divided into two parts: Kernel and System Programs 05-02-2024 Ms. Rashmi Bhat 17 Application program Resident system program MS-DOS device drivers ROM BIOS device drivers Fig. MS-DOS Layer Structure kernel Fig. Traditional UNIX System Structure
  • 17. Operating System Structure • Monolithic Structure • Each component of the operating system was contained within the kernel • Each component could communicate directly with any other component, and had unrestricted system access. • Device drivers were loaded into the running kernel and become part of the kernel. • This made OS very efficient. • But errors were more difficult to isolate, and there was a high risk of damage due to erroneous or malicious code. 05-02-2024 Ms. Rashmi Bhat 18 Fig. Monolithic Structure
  • 18. Operating System Structure • Layered Structure • OS is broken into a number of layers (levels) • The bottom layer (Layer 0) is hardware; the highest layer (Layer n) is user interface. • Each layer uses functions/services only of lower level layers. • Simple to construct and debug • Once we debug first layer, its correct functioning can be assumed while second layer is debugged, and so on. • If an error occurs while debugging a particular layer, the error must be on that layer. • Only difficulty involves is appropriately defining the various layers. • This structure tends to be less efficient. 05-02-2024 Ms. Rashmi Bhat 19 Layer N User Interface . . Layer 1 Layer 0 Hardware Fig. Layered Operating System
  • 19. Operating System Structure • Microkernel • Structures the OS by removing all nonessential components from the kernel and implements them as system and user level programs. • Results into smaller kernel. • Provides minimal process and memory management • Main function is to provide communication facility between client program and the various services running in user space. • Communication is provided by message passing. • This structure is easy to extend. • Can suffer from performance decreased due to increased system overhead 05-02-2024 Ms. Rashmi Bhat 20
  • 20. Operating System Structure • Microkernel 05-02-2024 Ms. Rashmi Bhat 21 Fig. Microkernel structure of OSx
  • 21. Kernel 05-02-2024 Ms. Rashmi Bhat 22 • Kernel • Kernel is the core part of Linux. • It is responsible for all major activities of this operating system. • It consists of various modules and it interacts directly with the underlying hardware. • It provides the required abstraction to hide low level hardware details to system or application programs. • Kernel Mode Vs User Mode • Kernel component code executes in a special privileged mode called Kernel mode with full access to all resources of the computer. • User programs and other system programs works in User Mode which has no access to system hardware and kernel code.
  • 22. 05-02-2024 Ms. Rashmi Bhat 23 Application, Tools Process Management Memory Management File Systems Device Drivers Network Scheduler Scheduler Memory Manager File System types Block Devices Character Devices Network Protocols Network Drivers CPU RAM Hard disk, CPU, Floppy Disk Terminal equipment Network Adapter Multitasking Virtual Memory File, Directories Device access, terminals Network Functionality System calls User Space Linux Kernel Components Functionality Software Support Hardware Support Hardware Fig. Linux Kernel Architecture Kernel
  • 23. Kernel 05-02-2024 Ms. Rashmi Bhat 24 Character device driver Block device driver Network device driver Traps and faults Physical memory Interrupts Signals System calls Processes and scheduler Virtual memory File systems Network protocols Principal Components of Kernel
  • 24. • Absent Nos. 23/01/24 • 16, 19, 22, 25, 26,27, 32, 42, 43, 47, 48, 50, 51,53, 56, 58, 60,61, 63 • 16, 19, 22, 25,27, 43, 47, 48, 50, 51, 56, 58, 60,61, 63 05-02-2024 Ms. Rashmi Bhat 25
  • 25. Shell • The shell provides you with an interface to the Unix system. • The shell is a program that takes commands from the keyboard and gives them to the operating system to perform. • There are different flavors of a shell. Each flavor of shell has its own set of recognized commands and functions. • Shell Prompt: • The prompt, $, which is called the command prompt, is issued by the shell. • It determines the command you want executed by looking at the first word of your input. 05-02-2024 Ms. Rashmi Bhat 26
  • 27. Shell • Shell Types • Bourne Shell • The $ character is the default prompt. • Subcategories • Bourne Shell (sh) • Korn Shell (ksh) • Bourne Again Shell (bash) • POSIX Shell (sh) • C Shell • The % character is the default prompt. • Subcategories • C shell (csh) • TENEX/TOPS C Shell (tcsh) 05-02-2024 Ms. Rashmi Bhat 28
  • 28. Shell • Shell Script • A list of commands, which are listed in the order of execution. • Comments are preceded by # sign, describing the steps. • Shell scripts are interpreted. • E.g. • Write a shell script to create a directory • Start writing your shell script with shebang construct #!/bin/sh This tells the system that the commands that follow are to be executed by the Bourne shell. • To execute a program available in the current directory, use ./program_name 05-02-2024 Ms. Rashmi Bhat 29
  • 38. System Calls • Process requests a specific kernel service by means of a system call. • It is a mechanism that provides the interface between a process and the operating system. • System call offers the services of the operating system to the user programs via API (Application Programming Interface). 05-02-2024 Ms. Rashmi Bhat 39
  • 39. System Call • How does a System Call works? 05-02-2024 Ms. Rashmi Bhat 40 User Mode Kernel Mode User Process Executing Gets System Call Return from System Call Execute System Call 1 2 3 4
  • 40. System Call • How to pass parameters to the operating system? • Pass the parameters in registers. • Store the parameters in a block, or table, in memory, and pass the address of the block as a parameter in a register. • Push the parameters onto the stack. 05-02-2024 Ms. Rashmi Bhat 41
  • 41. System Call • Why do you need System Calls in OS? • Following are situations which need system calls in OS: • Reading and writing from files demand system calls. • If a file system wants to create or delete files, system calls are required. • System calls are used for the creation and management of new processes. • Network connections need system calls for sending and receiving packets. • Access to hardware devices like scanner, printer, need a system call. 05-02-2024 Ms. Rashmi Bhat 42
  • 42. System Calls 05-02-2024 Ms. Rashmi Bhat 43 System Calls Process Control File Management Device Management Information Maintenance Communication Protection
  • 43. System Call • Process Control • This system calls perform the task of process creation, process termination, etc. • Functions: • End and Abort • Load and Execute • Create Process and Terminate Process • Wait and Signal Event • Allocate and free memory 05-02-2024 Ms. Rashmi Bhat 44
  • 44. System Call • File Management • File management system calls handle file manipulation jobs like creating a file, reading, and writing, etc. • Functions: • Create a file • Delete file • Open and close file • Read, write, and reposition • Get and set file attributes 05-02-2024 Ms. Rashmi Bhat 45
  • 45. System Call • Device Management • Device management does the job of device manipulation like reading from device buffers, writing into device buffers, etc. • Functions: • Request and release device • Logically attach/ detach devices • Get and Set device attributes 05-02-2024 Ms. Rashmi Bhat 46
  • 46. System Call • Information Maintenance • It handles information and its transfer between the OS and the user program. • Functions: • Get or set time and date • Get process and device attributes • Communication • Specially used for inter-process communications. • Functions: • Create, delete communications connections • Send, receive message • Help OS to transfer status information • Attach or detach remote devices 05-02-2024 Ms. Rashmi Bhat 47
  • 47. System Call • Protection • Protection provides a mechanism for controlling access to the resources provided by a computer system. • Functions: • Set and get permission • Allow and deny user 05-02-2024 Ms. Rashmi Bhat 48
  • 48. System Call • Some Important System Calls • wait() • A process needs to wait for another process to complete its execution. • fork() • Processes use this system call to create processes that are a copy of themselves. • exec() • This system call runs when an executable file in the context of an already running process that replaces the older executable file. • kill() • The kill() system call is used by OS to send a termination signal to a process that urges the process to exit. • exit() • The exit() system call is used to terminate program execution. 05-02-2024 Ms. Rashmi Bhat 49
  • 49. System Call Summary 05-02-2024 Ms. Rashmi Bhat 50
  • 50. Home Work - 1 • List the various operating systems in the order they have launched. • List the mobile operating systems that you know. 05-02-2024 Ms. Rashmi Bhat 53