0% found this document useful (0 votes)
46 views15 pages

Types of Operating System

The document discusses system calls in operating systems. It defines a system call as a mechanism for user programs to interface with the operating system. It explains that system calls allow processes to request services from the operating system like file and process management. The document outlines five main types of system calls: process control, file management, device management, information management, and communication. Specific system calls are provided for Windows and Linux as examples for each type.

Uploaded by

TAIBA SHAIKH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views15 pages

Types of Operating System

The document discusses system calls in operating systems. It defines a system call as a mechanism for user programs to interface with the operating system. It explains that system calls allow processes to request services from the operating system like file and process management. The document outlines five main types of system calls: process control, file management, device management, information management, and communication. Specific system calls are provided for Windows and Linux as examples for each type.

Uploaded by

TAIBA SHAIKH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

CO_22516_Operating System

UO-2
Mrs. P. S. Gaidhani, Lecturer, Guru Gobind Singh Polytechnic, Nashik.
Services & Components of Operating System
Learning Objective/ Key learning

 Explain use of the given System call of specified OS.


Contents
 Concept of System Call.
 Types of System Calls.
System Call:
 A system call is a way for a user program to interface with the operating
system.
 mechanism that provides the interface between a process and the operating
system.
 A system call can be written in assembly language or a high-level language
like C or Pascal.
 The Application Program Interface (API) connects the operating system's
functions to user programs.
1.Process Execute normally in the user mode until the system call interrupt
2.Gets System Call :->User Process will wait and Change the mode from user to
kernel for execution
3.Executes System call and
4.Control returns to the user mode
5.Execution of user process will be resumed
System Call :
System calls are required in the following situations −
•If a file system requires:- the creation or deletion of files, reading and
writing from files
•Creation and management of new processes.
•Network connections also require system calls. This includes sending
and receiving packets.
•Access to a hardware devices such as a printer, scanner etc. requires a
system call.
Types of System Calls:
1. Process Control: Used to direct processes
 End
 Load
Types of
 Execute Windows Linux
System Calls
 Create
CreateProcess() fork()
 Terminate ExitProcess() exit()
Process Control
 Suspend WaitForSingleObject() wait()

 Resume
 Get and Set process attributes: id, state, priority
 Wait for time, Event
 Change the priority of process
2. File Management: used to handle the files
 Create File
 Delete File Types of System
Windows Linux
Calls
 Open File CreateFile()
open()
ReadFile()
 Close read()
File Management WriteFile()
write()
CloseHandle()
 Read close()

 Write
 Get File Attributes
 Set File Attributes
3. Device Management: use to deal with the devices
 Request device Types of System
Windows Linux
Calls
 Release device
SetConsoleMode()
 Read ioctl()
Device ReadConsole()
read()
 Write Management WriteConsole()
write()
 Reposition
 Get and Set device attributes: id, name, type, speed
4. Information Management: To maintain the information

Types of System
Windows Linux
Calls
 Get Time
GetCurrentProcessID()
 Set Time getpid()
Information SetTimer()
alarm()
 Get system data Maintenance Sleep()
sleep()
 Set system data
 Get and Set Process, File or Device attributes
5. Communication:
Types of System
 Create connection Windows Linux
Calls
 Delete connection CreatePipe()
pipe()
 Send message CreateFileMapping()
Communication shmget()
MapViewOfFile()
mmap()
 Receive message
 Transfer status information
 Logically attach and detach remote device
Summary
So today we learn-
 Concept of System Call.
 Types of System Calls.

You might also like