Important
Important
An Operating System (OS) is software that acts as an interface between the user and computer
hardware. It manages hardware resources and provides services for computer programs.
Examples include Windows, Linux, and macOS.
A system call is a request by a program to the operating system's kernel to perform specific tasks
that the program itself does not have permission to do. It provides an interface between a process
and the OS.
6. Process:
A process is a running instance of a program that includes the program code and its current
activity. It contains resources such as memory, CPU, and I/O devices to execute tasks.
7. Scheduling:
Scheduling refers to the method by which work is assigned to resources in a computer. In the
case of OS, it’s mainly about assigning CPU time to various processes.
8. Types of Schedulers:
Long-Term Scheduler: Decides which programs are admitted to the system for
processing.
Short-Term Scheduler (CPU Scheduler): Selects which process will be executed next
by the CPU.
Medium-Term Scheduler: Swaps processes in and out of memory to manage the degree
of multiprogramming.
9. Context Switching:
Context Switching is the process of storing the state of a currently running process so that the
OS can resume the process at a later time, and switching to another process. This is essential in
multitasking systems to handle multiple processes efficiently.