SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

File access methods.54
File access methods.54File access methods.54
File access methods.54
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
 
Kernel (OS)
Kernel (OS)Kernel (OS)
Kernel (OS)
 
System call
System callSystem call
System call
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43
 
Operating system 11 system calls
Operating system 11 system callsOperating system 11 system calls
Operating system 11 system calls
 
Multithreading
Multithreading Multithreading
Multithreading
 
directory structure and file system mounting
directory structure and file system mountingdirectory structure and file system mounting
directory structure and file system mounting
 
Process of operating system
Process of operating systemProcess of operating system
Process of operating system
 
Memory management
Memory managementMemory management
Memory management
 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-Systems
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
 
Operating systems system structures
Operating systems   system structuresOperating systems   system structures
Operating systems system structures
 
Multi processor scheduling
Multi  processor schedulingMulti  processor scheduling
Multi processor scheduling
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipelining
 
System call
System callSystem call
System call
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating system
 

Similar a System calls

Ch2 operating-system structures
Ch2   operating-system structuresCh2   operating-system structures
Ch2 operating-system structuresWelly Dian Astika
 
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 SystemsArnoyKhan
 
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.pptxAsst.prof M.Gokilavani
 
OS Services, System call, Virtual Machine
OS Services, System call, Virtual MachineOS Services, System call, Virtual Machine
OS Services, System call, Virtual MachineDivya S
 
Operating System 2
Operating System 2Operating System 2
Operating System 2tech2click
 
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURESOPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURESpriyasoundar
 
System Calls.pptx
System Calls.pptxSystem Calls.pptx
System Calls.pptxlaakshit7
 
OS - Ch2
OS - Ch2OS - Ch2
OS - Ch2sphs
 
Chapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresChapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresWayne Jones Jnr
 
Services and system calls
Services and system callsServices and system calls
Services and system callssangrampatil81
 
Operating System Structure Part-I.pdf
Operating System Structure Part-I.pdfOperating System Structure Part-I.pdf
Operating System Structure Part-I.pdfHarika Pudugosula
 
SystemCallsAndInvocationMethods_Mayin074.pptx
SystemCallsAndInvocationMethods_Mayin074.pptxSystemCallsAndInvocationMethods_Mayin074.pptx
SystemCallsAndInvocationMethods_Mayin074.pptxBlackGoku18
 

Similar a System calls (20)

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
 
OS chapter 1.pptx
OS chapter 1.pptxOS chapter 1.pptx
OS chapter 1.pptx
 

Último

Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
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
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
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
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
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
 

Último (20)

Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
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
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
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
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
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
 

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.