Professional Documents
Culture Documents
SYSTEM CALLS in Operating System
SYSTEM CALLS in Operating System
SYSTEM CALLS in Operating System
operating system
KANUPRIYA
190301120078
BTECH. CSE 4 TH SEM
CUTM, BBSR
Introduction
USER PROGRAM
System
System Calls provide the Interface between a process/user calls
RESOURCES
File
Protection management
Types of
system
calls
Communicati Device
on management
Information
maintenance
Process control
System call which deals with processors. Functions:
• End, abort
• Load, execute
Windows Linux
• CreateProcess() • fork()
• exit() • exit()
• waitforsingleobject() • wait()
File management
System calls responsible for file processing. Functions:
• Create file, delete file
• Open , close file
• Read, write, reposition
• Get and set file attributes
Windows Linux
• CreateFile() • open()
• ReadFile() • read()
• WriteFile() • write()
• CloseHandle() • close
Device management
A process may need several resources to execute main memory disk drive access to file, I/O devices.
If these resources are free then it will be allocated to process or else process will have to wait until
resources are available. Functions:
Windows Linux
• SetConsoleMode() • ioctl()
• ReadConsole() • read()
• WriteConsole() • write(
Information maintenance
It handles information, it transfers between user and os. Functions:
• Get time or date, set time or date
• Get system data, get system data
• Get and set process, file, or device attributes
Windows Linux
• GetCurrentProcessID() • getpid()
• SetTimer() • alarm()
• Sleep() • sleep()
Communication
These are useful for inter process communication. Functions:
• Create, delete communication connection
• Send, receive messages if message passing model to host name or process name from
client to server
• Transfer status information
Windows Linux
• CreatePipe() • pipe()
• CreateFileMapping() • shmget()
• MapViewOfFile() • mmap()
Protection
Functions:
• Control access to resources
• Get and set permissions
• Allow and deny user access
Windows Linux
• SetFileSecurity() • chmod()
• InitializeSecurityDescriptor() • umask()
• SetSecurityDescriptor() • chown()
THANK YOU