SlideShare a Scribd company logo
1 of 12
Presenting to:-
Prof. Ram Kumar
Paliwal
Presented by:-
Saurabh Soni
B.C.A. 4th(B)
System services :- the OS provides the environment for the
execution of program. It provides users the services to execute
the programs in a convenient manner. The specific services
provided will different form one to another OS ,but there are
some common services of OS that we can identify .these OS
services are provided for the convenience of the programmer ,to
make the programming task easier.
Program execution
Input/Output operation
File-system manipulation
Communications
Error detection
Resource allocation
Protection
Program execution :-The purpose of computer system is to allow
the users to execute programs in an efficient manner. The operating
system provides an environment where the user can conveniently run
these programs. The user doesn’t have to worry about
the memory allocation or de-allocation or any other thing because these
things are taken care by the operating system.
 To run program , first loaded into the RAM and then to assign CPU time for
its execution.
 other important tasks like allocation and de-allocation of memory, CPU
scheduling etc perform OS itself.
Input/Output operation :-Each program requires an input and after
processing the input submitted by user it produces output. The operating
system hides the user from all these details of underlying hardware for the
I/O. So the operating system makes the users convenient to run programs
by providing I/O functions. The I/O service cannot be provided by user-level
programs and it must be provided by the operating system.
File-system manipulation :-While working on the computer, generally a user is
required to manipulate various types of files like as opening a file, saving a file
and deleting a file from the storage disk. This is an important task that is also
performed by the operating system.
Thus operating system makes it easier for the user programs to accomplish their
task by providing the file system manipulation service. This service is performed
by the 'Secondary Storage Management' a part of the operating system.
Communications :-Operating system performs the communication among various
types of processes in the form of shared memory. In multitasking environment,
the processes need to communicate with each other and to exchange
their information. These processes are created under a hierarchical structure
where the main process is known as parent process and the sub processes are
known as child processes.
Error detection :-OS also deals with hardware problems. To avoid hardware
problems the OS constantly monitors the system for detecting the errors and
fixing these errors (if found). The main function of OS is to detect the errors
like bad sectors on hard disk, memory overflow and errors related to I/O
devices. After detecting the errors, OS takes an appropriate action for
consistent computing.
This service of error detection and error correction cannot be handled by
user programs because it involves monitoring the entire computing process.
These tasks are too critical to be handed over to the user programs.
Resource allocation :-In the multitasking environment, when multiple jobs are
running at a time, it is the responsibility of an OS to allocate the required
resources (like as CPU, main memory, tape drive or secondary storage etc.)
to each process for its better utilization. For this purpose various types of
algorithms are implemented such as process scheduling, CPU scheduling,
disk scheduling etc.
Protection :-If a computer system has multiple users and allows the
concurrent execution of multiple processes, then the various processes
must be protected from one another's activities.
System calls provide the interface b/w a process and OS .these calls are generally available
as assembly-language instructions .these are usually listen in the manuals used by
assembly-language programmers.
Some system may allow system calls to be made directly from a higher level language
program .they may generate a call to a special run-time routine that makes the system
call or the system call may be generated directly in-line.
C(Compiler) , Bliss(Basic Language for Implementation of System Software)
BCPL (Basic Combined Programming Language)
PERL(Practical Extraction and Reporting Language)
These language are defined to replace assembly language for system programming .some
Pascal also provide an ability to make system calls directly form a Pascal program to the
OS.
 To understand system calls, first one needs to understand the difference between kernel
mode and user mode of a CPU.
 System Call
 When a program in user mode requires access to RAM or a hardware resource, it must ask
the kernel to provide access to that resource. This is done via something called a system
call.
 When a program makes a system call, the mode is switched from user mode to kernel mode.
This is called a context switch.
 Generally, system calls are made by the user level programs in the following situations:
A. Creating, opening, closing and deleting files in the file system.
B. Creating and managing new processes.
C. Creating a connection in the network, sending and receiving packets.
D. Requesting access to a hardware device, like a mouse or a printer.
E. system supports these two modes.
Kernel Mode
When CPU is in kernel mode, the code being executed can access any memory
address and any hardware resource.
• It is a very privileged and powerful mode.
• If a program crashes in kernel mode, the entire system will be halted.
User Mode
When CPU is in user mode, the programs don’t have access to memory and
hardware resources .
In user mode, if any program crashes, only that particular program is halted.
That means the system will be in a safe state even if
a program in user mode crashes .most
programs in an OS run in user mode.
services and system calls of operating system

More Related Content

What's hot (20)

Os structure
Os structureOs structure
Os structure
 
System calls
System callsSystem calls
System calls
 
Evolution of operating system
Evolution of operating systemEvolution of operating system
Evolution of operating system
 
Operating system components
Operating system componentsOperating system components
Operating system components
 
Operating system presentation
Operating system presentationOperating system presentation
Operating system presentation
 
Operating systems
Operating systems Operating systems
Operating systems
 
Cpu scheduling in operating System.
Cpu scheduling in operating System.Cpu scheduling in operating System.
Cpu scheduling in operating System.
 
Structure of operating system
Structure of operating systemStructure of operating system
Structure of operating system
 
Process of operating system
Process of operating systemProcess of operating system
Process of operating system
 
Types of operating system
Types of operating systemTypes of operating system
Types of operating system
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts ppt
 
process creation OS
process creation OSprocess creation OS
process creation OS
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
System call
System callSystem call
System call
 
File system structure
File system structureFile system structure
File system structure
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
Operating system basics
Operating system basicsOperating system basics
Operating system basics
 
5. spooling and buffering
5. spooling and buffering 5. spooling and buffering
5. spooling and buffering
 
Chapter 2 operating systems
Chapter 2 operating systemsChapter 2 operating systems
Chapter 2 operating systems
 

Similar to services and system calls of operating system

Similar to services and system calls of operating system (20)

operatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptxoperatinndnd jdj jjrg-system-1(1) (1).pptx
operatinndnd jdj jjrg-system-1(1) (1).pptx
 
Basics of Operating System
Basics of Operating SystemBasics of Operating System
Basics of Operating System
 
Ch3
Ch3Ch3
Ch3
 
Ch1
Ch1Ch1
Ch1
 
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
 
L-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.pptL-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.ppt
 
Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)
 
Ch1
Ch1Ch1
Ch1
 
OS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptxOS UNIT 1 PPT.pptx
OS UNIT 1 PPT.pptx
 
e.pdf
e.pdfe.pdf
e.pdf
 
os mod1 notes
 os mod1 notes os mod1 notes
os mod1 notes
 
Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]Ch1kiit [compatibility mode]
Ch1kiit [compatibility mode]
 
Unit 1 q&a
Unit  1 q&aUnit  1 q&a
Unit 1 q&a
 
installing and optimizing operating system software
installing and optimizing operating system software   installing and optimizing operating system software
installing and optimizing operating system software
 
Spr ch-01
Spr ch-01Spr ch-01
Spr ch-01
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating system
 
Operating system notes pdf
Operating system notes pdfOperating system notes pdf
Operating system notes pdf
 
Ch3 OS
Ch3 OSCh3 OS
Ch3 OS
 
OSCh3
OSCh3OSCh3
OSCh3
 
OS_Ch3
OS_Ch3OS_Ch3
OS_Ch3
 

Recently uploaded

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 

Recently uploaded (20)

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 

services and system calls of operating system

  • 1. Presenting to:- Prof. Ram Kumar Paliwal Presented by:- Saurabh Soni B.C.A. 4th(B)
  • 2. System services :- the OS provides the environment for the execution of program. It provides users the services to execute the programs in a convenient manner. The specific services provided will different form one to another OS ,but there are some common services of OS that we can identify .these OS services are provided for the convenience of the programmer ,to make the programming task easier.
  • 3. Program execution Input/Output operation File-system manipulation Communications Error detection Resource allocation Protection
  • 4. Program execution :-The purpose of computer system is to allow the users to execute programs in an efficient manner. The operating system provides an environment where the user can conveniently run these programs. The user doesn’t have to worry about the memory allocation or de-allocation or any other thing because these things are taken care by the operating system.  To run program , first loaded into the RAM and then to assign CPU time for its execution.  other important tasks like allocation and de-allocation of memory, CPU scheduling etc perform OS itself.
  • 5. Input/Output operation :-Each program requires an input and after processing the input submitted by user it produces output. The operating system hides the user from all these details of underlying hardware for the I/O. So the operating system makes the users convenient to run programs by providing I/O functions. The I/O service cannot be provided by user-level programs and it must be provided by the operating system.
  • 6. File-system manipulation :-While working on the computer, generally a user is required to manipulate various types of files like as opening a file, saving a file and deleting a file from the storage disk. This is an important task that is also performed by the operating system. Thus operating system makes it easier for the user programs to accomplish their task by providing the file system manipulation service. This service is performed by the 'Secondary Storage Management' a part of the operating system. Communications :-Operating system performs the communication among various types of processes in the form of shared memory. In multitasking environment, the processes need to communicate with each other and to exchange their information. These processes are created under a hierarchical structure where the main process is known as parent process and the sub processes are known as child processes.
  • 7. Error detection :-OS also deals with hardware problems. To avoid hardware problems the OS constantly monitors the system for detecting the errors and fixing these errors (if found). The main function of OS is to detect the errors like bad sectors on hard disk, memory overflow and errors related to I/O devices. After detecting the errors, OS takes an appropriate action for consistent computing. This service of error detection and error correction cannot be handled by user programs because it involves monitoring the entire computing process. These tasks are too critical to be handed over to the user programs.
  • 8. Resource allocation :-In the multitasking environment, when multiple jobs are running at a time, it is the responsibility of an OS to allocate the required resources (like as CPU, main memory, tape drive or secondary storage etc.) to each process for its better utilization. For this purpose various types of algorithms are implemented such as process scheduling, CPU scheduling, disk scheduling etc. Protection :-If a computer system has multiple users and allows the concurrent execution of multiple processes, then the various processes must be protected from one another's activities.
  • 9. System calls provide the interface b/w a process and OS .these calls are generally available as assembly-language instructions .these are usually listen in the manuals used by assembly-language programmers. Some system may allow system calls to be made directly from a higher level language program .they may generate a call to a special run-time routine that makes the system call or the system call may be generated directly in-line. C(Compiler) , Bliss(Basic Language for Implementation of System Software) BCPL (Basic Combined Programming Language) PERL(Practical Extraction and Reporting Language) These language are defined to replace assembly language for system programming .some Pascal also provide an ability to make system calls directly form a Pascal program to the OS.
  • 10.  To understand system calls, first one needs to understand the difference between kernel mode and user mode of a CPU.  System Call  When a program in user mode requires access to RAM or a hardware resource, it must ask the kernel to provide access to that resource. This is done via something called a system call.  When a program makes a system call, the mode is switched from user mode to kernel mode. This is called a context switch.  Generally, system calls are made by the user level programs in the following situations: A. Creating, opening, closing and deleting files in the file system. B. Creating and managing new processes. C. Creating a connection in the network, sending and receiving packets. D. Requesting access to a hardware device, like a mouse or a printer. E. system supports these two modes.
  • 11. Kernel Mode When CPU is in kernel mode, the code being executed can access any memory address and any hardware resource. • It is a very privileged and powerful mode. • If a program crashes in kernel mode, the entire system will be halted. User Mode When CPU is in user mode, the programs don’t have access to memory and hardware resources . In user mode, if any program crashes, only that particular program is halted. That means the system will be in a safe state even if a program in user mode crashes .most programs in an OS run in user mode.