System call and advantages of system calls

System call and advantages of system calls

Advantages of system calls

The system call is a technique of calling the system in such a way that a 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 are two kinds of modes. The first one is kernel mode and another is user mode. The user can only get the services from the OS and the 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()