SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Presentation On:

SYSTEM CALLS
Reference Book :

Operating System Organisation With Special
Reference To UNIX
By Satyapriya Bhattacharjee
Presented by;
Bernard Senam Parkoo
MSc. II, DOS In Computer Science
Presentation Outline
• What are System Calls
• Scenario of System Calls
• How a System Call Occurs
• Methods of Passing Parameters to the OS
• Categories of System Calls
What are System Calls
• System Calls provide the Interface between a
process and the Operating System.
• These calls are generally available as Assembly
language instruction.
• System Calls can also be made directly through
HLL programs for certain systems.

• UNIX System calls can be invoked directly from a
C or C++ program.
Scenario of System Calls
An Example of how system calls are used.
• Consider a simple program to copy data from one
file to another file .
• The first input of the program will be the name of
both files.
• These names can be specified depending on the
design of Operation System
• Once the file names are obtained, the program
opens an input file and create an output file
• Each of this operations require other System calls
and may encounter possible error conditions.
How System Calls Occur.
System Calls occur in different ways depending on the
computer in use:
• More information is required than just the identify of the
desired System call.
• The exact type and amount of information varies
according to the operation system and call
• For instance to get an input we need to specify the file of
device to use as source and the address and length of
memory buffer into which the input should be read.
Methods of Passing Parameters to
Operating System
Three methods are used in passing parameters to the
operation system.
• The simplest is approach is to pass parameter
through registers.
• The second is by storing parameters in blocks and
passing the address through registers.
• Finally parameter can be pushed into stack by the
program and popped of by the Operating System.
Categories of System Calls
System calls can be grouped into five major
categories as follows.
•
•
•
•
•

Process control
File management.
Device management
Information Maintenance and
Communication.
Process control
Some system calls under process control are:

•
•
•
•
•
•

End, abort
Load, execute
Create process, terminate process
Get process, terminate process
Wait for time
Allocate and free memory
File management.
Some system calls under file management are:
•
•
•
•

Create file, delete file
Open , close
Read, write, reposition.
Get file attributes, set fil attributes
Device management
Some system calls under device management are:
•
•
•
•

Request Device, release device
Read, write, reposition.
Get device attributes and set device attributes
Logically attach or detach devices
Information Maintenance
Some system calls under information maintenance
are:
•
•
•
•
•
•

Get time or date, Set time of date
Logically attach or detach devices
Information maintenance
Get system data, Set Systems data
Get process, file of device attributes
Set process, file or device attributes
Communication
•
•
•
•

Create, delete communication connection.
Send, receive messages
Transfer status information
Attach or detach remote devices.
The End

Weitere ähnliche Inhalte

Was ist angesagt?

File access methods.54
File access methods.54File access methods.54
File access methods.54
myrajendra
 
Services provided by os
Services provided by osServices provided by os
Services provided by os
Sumant Diwakar
 

Was ist angesagt? (20)

File access methods.54
File access methods.54File access methods.54
File access methods.54
 
Operating systems system structures
Operating systems   system structuresOperating systems   system structures
Operating systems system structures
 
operating system structure
operating system structureoperating system structure
operating system structure
 
System call
System callSystem call
System call
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
BANKER'S ALGORITHM
BANKER'S ALGORITHMBANKER'S ALGORITHM
BANKER'S ALGORITHM
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Operating system 11 system calls
Operating system 11 system callsOperating system 11 system calls
Operating system 11 system calls
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
Demand paging
Demand pagingDemand paging
Demand paging
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
 
Process of operating system
Process of operating systemProcess of operating system
Process of operating system
 
Services provided by os
Services provided by osServices provided by os
Services provided by os
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 

Ähnlich wie System calls

OS - Ch2
OS - Ch2OS - Ch2
OS - Ch2
sphs
 
Chapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresChapter 2 - Operating System Structures
Chapter 2 - Operating System Structures
Wayne Jones Jnr
 

Ähnlich wie System calls (20)

System call
System callSystem call
System call
 
Ch2 operating-system structures
Ch2   operating-system structuresCh2   operating-system structures
Ch2 operating-system structures
 
Lecture_02_Operating System Structures Operating Systems
Lecture_02_Operating System Structures Operating SystemsLecture_02_Operating System Structures Operating Systems
Lecture_02_Operating System Structures Operating Systems
 
CS403: Operating System : Lec 5 System calls.pptx
CS403: Operating System : Lec 5 System calls.pptxCS403: Operating System : Lec 5 System calls.pptx
CS403: Operating System : Lec 5 System calls.pptx
 
OS Services, System call, Virtual Machine
OS Services, System call, Virtual MachineOS Services, System call, Virtual Machine
OS Services, System call, Virtual Machine
 
Operating System 2
Operating System 2Operating System 2
Operating System 2
 
CH02.pdf
CH02.pdfCH02.pdf
CH02.pdf
 
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURESOPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
 
2_System Calls.pptx
2_System Calls.pptx2_System Calls.pptx
2_System Calls.pptx
 
System Calls.pptx
System Calls.pptxSystem Calls.pptx
System Calls.pptx
 
Ch2
Ch2Ch2
Ch2
 
chapter2.pptx
chapter2.pptxchapter2.pptx
chapter2.pptx
 
OS - Ch2
OS - Ch2OS - Ch2
OS - Ch2
 
Chapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresChapter 2 - Operating System Structures
Chapter 2 - Operating System Structures
 
System calls
System callsSystem calls
System calls
 
Services and system calls
Services and system callsServices and system calls
Services and system calls
 
Os unit 1(cont)
Os unit 1(cont)Os unit 1(cont)
Os unit 1(cont)
 
Operating System Structure Part-I.pdf
Operating System Structure Part-I.pdfOperating System Structure Part-I.pdf
Operating System Structure Part-I.pdf
 
SystemCallsAndInvocationMethods_Mayin074.pptx
SystemCallsAndInvocationMethods_Mayin074.pptxSystemCallsAndInvocationMethods_Mayin074.pptx
SystemCallsAndInvocationMethods_Mayin074.pptx
 
OS chapter 1.pptx
OS chapter 1.pptxOS chapter 1.pptx
OS chapter 1.pptx
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

System calls

  • 1. Presentation On: SYSTEM CALLS Reference Book : Operating System Organisation With Special Reference To UNIX By Satyapriya Bhattacharjee Presented by; Bernard Senam Parkoo MSc. II, DOS In Computer Science
  • 2. Presentation Outline • What are System Calls • Scenario of System Calls • How a System Call Occurs • Methods of Passing Parameters to the OS • Categories of System Calls
  • 3. What are System Calls • System Calls provide the Interface between a process and the Operating System. • These calls are generally available as Assembly language instruction. • System Calls can also be made directly through HLL programs for certain systems. • UNIX System calls can be invoked directly from a C or C++ program.
  • 4. Scenario of System Calls An Example of how system calls are used. • Consider a simple program to copy data from one file to another file . • The first input of the program will be the name of both files. • These names can be specified depending on the design of Operation System • Once the file names are obtained, the program opens an input file and create an output file • Each of this operations require other System calls and may encounter possible error conditions.
  • 5. How System Calls Occur. System Calls occur in different ways depending on the computer in use: • More information is required than just the identify of the desired System call. • The exact type and amount of information varies according to the operation system and call • For instance to get an input we need to specify the file of device to use as source and the address and length of memory buffer into which the input should be read.
  • 6. Methods of Passing Parameters to Operating System Three methods are used in passing parameters to the operation system. • The simplest is approach is to pass parameter through registers. • The second is by storing parameters in blocks and passing the address through registers. • Finally parameter can be pushed into stack by the program and popped of by the Operating System.
  • 7. Categories of System Calls System calls can be grouped into five major categories as follows. • • • • • Process control File management. Device management Information Maintenance and Communication.
  • 8. Process control Some system calls under process control are: • • • • • • End, abort Load, execute Create process, terminate process Get process, terminate process Wait for time Allocate and free memory
  • 9. File management. Some system calls under file management are: • • • • Create file, delete file Open , close Read, write, reposition. Get file attributes, set fil attributes
  • 10. Device management Some system calls under device management are: • • • • Request Device, release device Read, write, reposition. Get device attributes and set device attributes Logically attach or detach devices
  • 11. Information Maintenance Some system calls under information maintenance are: • • • • • • Get time or date, Set time of date Logically attach or detach devices Information maintenance Get system data, Set Systems data Get process, file of device attributes Set process, file or device attributes
  • 12. Communication • • • • Create, delete communication connection. Send, receive messages Transfer status information Attach or detach remote devices.