System Calls in operation system for the explanation
1. SHADAN WOMEN’S COLLEGE OF
ENGINEERING AND TECHNOLOGY
[AN AUTONOMOUS INSTITUTION]
TOPIC:-SYSTEM CALLS
NAME:- MEHABISH MUSKHAN
HT.NO:23L51A0561
CLASS:- B.TECH 2ND
YEAR 2ND
SEM
BRANCH:-CSE-B
SUBJECT:-SD
SlideMake.com
2. Introduction :-
System calls are the primary interface between user applications and the
operating system.
They enable user programs to request services from the kernel, such as file
operations or process management.
Understanding system calls is essential for developing applications that efficiently
interact with the operating system.
3. What are system call:-
A system call is a programmatic way in which a computer program requests a
service from the operating system's kernel.
System calls provide a controlled interface for accessing hardware and system
resources.
They are vital for performing tasks like reading files, creating processes, and
communicating over networks.
4. Types of System Calls
System calls can be categorized into several types, including process
control, file management, and device management.
Other types include information maintenance and communication-
related system calls.
Each type serves distinct functionalities tailored to the needs of user
applications.
5. Process Control System Calls
Process control system calls manage the execution of
processes in the operating system.
Examples include `fork()`, `exec()`, and `kill()`, which create,
execute, and terminate processes respectively.
These calls are essential for multitasking and resource
management in modern operating systems.
6. File Management System Calls
File management system calls handle
operations related to file creation,
deletion, and manipulation.
Common calls include `open()`, `read()`,
`write()`, and `close()`, which manage file
access and data transfer.
Efficient file management is crucial for
ensuring data integrity and performance
in applications.
7. Device Management System Calls
Device management system calls
facilitate interaction between the
operating system and hardware devices.
These calls allow applications to read
from and write to devices, manage
device access, and control device states.
Examples include `ioctl()` and `read()`,
which help in handling device-specific
operations.
8. Information Maintenance System Calls
Information maintenance system calls
provide access to system information
and control.
They include calls like `getpid()`, which
retrieves the process ID, and `uname()`,
which gets system information.
These calls are essential for monitoring
and managing system performance and
behavior.
9. Communication System Calls
Communication system calls facilitate
data exchange between processes,
either on the same machine or over a
network.
Examples include `pipe()`, `socket()`, and
`send()` which are used for inter-process
communication.
These calls play a critical role in building
networked applications and services.
10. System Call Implementation
System calls are typically implemented
using a software interrupt or a special
CPU instruction.
The execution context switches from
user mode to kernel mode to safely
perform the requested operation.
Proper implementation of system calls
ensures security, stability, and efficiency
in the operating system.
11. Conclusion on System Calls
System calls are fundamental to the
operation of user applications and the
operating system.
They provide a crucial interface for
resource management and system
interaction.
A strong understanding of system calls
can significantly enhance the
performance and reliability of software
applications.
12. References
Silberschatz, Abraham, Peter B. Galvin,
and Greg Gagne. "Operating System
Concepts." 10th ed., Wiley, 2018.
Bovet, Daniel P., and Marco Cesati.
"Understanding the Linux Kernel." 3rd
ed., O'Reilly Media, 2005.
Love, Robert. "Linux Kernel
Development." 3rd ed., Addison-Wesley,
2010.
Feel free to adjust or expand on any of
the slides as per your specific