System call and advantages of system calls

System call and advantages of system calls

In this tutorial, we will learn about the followings;

System call

Advantages of a system call

Advantages of system calls

The system call is a technique of calling the system in such a way that computer program requests a service from the kernel of the operating system. The system can only provide the services if we call the system with a system call.

There is two kind of modes. The first one is kernel mode and another is user mode. The user can only get the services from the OS and user is able to send the commands to the kernel mode. User from the user mode sends systems calls to the kernel mode.

Examples of system calls

System calls in windows and linux

System calls Unix Windows
Device Manipulations Ioctl()

Write()

Read()

ReadConsole()

WriteConsole()

SetConsoleMode()

Process Control Wait()

Fork()

Exit()

ExitProcess()

CreatProcess()

Wait for single object()

File Manipulations Read()

Write()

Open()

Cloase()

ReadFile()

WriteFile()

CreateFile()