0% found this document useful (0 votes)
15 views2 pages

Various System Calls

The document discusses various UNIX system calls, which serve as the interface between processes and the operating system. It categorizes system calls into three types: Process Control, File Management, and Input/Output Management, providing examples from both Windows and UNIX systems. The document highlights the essential role of these system calls in managing processes, files, and device interactions.

Uploaded by

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

Various System Calls

The document discusses various UNIX system calls, which serve as the interface between processes and the operating system. It categorizes system calls into three types: Process Control, File Management, and Input/Output Management, providing examples from both Windows and UNIX systems. The document highlights the essential role of these system calls in managing processes, files, and device interactions.

Uploaded by

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

EXPERIMENT 2

AIM:- Various UNIX System Calls.

SYSTEM CALL
The interface between a process and an operating system is provided by system
calls. In general, system calls are available as assembly language instructions. They
are also included in the manuals used by the assembly level programmers.

UNIX SYSTEM CALL


System calls in UNIX are used for file system control, process control, inter process
communication etc. Access to the UNIX kernel is only available through these
system calls. Generally, system calls are similar to function calls, the only difference
is that they remove the control from the user process.

TYPES OF SYSTEM CALLS


There are three types of system calls which are as follows :-

1.) Process Control:-


These system calls deal with processes such as process creation, process
termination etc.

2.) File Management:-


These system calls are responsible for file manipulation such as creating a file,
reading a file, writing into a file etc.

3.) Input/Output Management:-


These system calls are responsible for device manipulation such as reading from
device buffers, writing into device buffers etc.

2100910100176 Tushar Pandey CS-3


Some of the examples of all the above types of system calls in Windows and UNIX
are given as follows −

Types of System Windows Linux


Calls

Process Management CreateProcess() fork()


ExitProcess()WaitForSingleObject() exit()
wait()

File Management CreateFile() open()


ReadFile() read()
WriteFile() write()
CloseHandle() close()

Input/Output System SetConsoleMode() ioctl()


Calls ReadConsole() read()
WriteConsole() write()
GetCurrentProcessID() getpid()
SetTimer() alarm()
Sleep() sleep()

2100910100176 Tushar Pandey CS-3

You might also like