//
Modern CPUs operate in two privilege levels:
When a user application needs to perform a privileged operation (reading a file, sending a network packet, allocating memory), it must request the kernel to do it on its behalf. This request is a System Call.
A System Call (syscall) is a programmatic way for a user-space process to request a service from the OS kernel.
int 0x80 on x86, syscall on x86-64).fork(), exec(), exit(), wait()open(), read(), write(), close()ioctl(), read(), write()getpid(), alarm(), sleep()pipe(), socket(), send(), recv()An Interrupt is a signal to the CPU that requires immediate attention. It temporarily halts the current execution and transfers control to an Interrupt Service Routine (ISR) in the kernel.