An operating system is a software which performs all the basic tasks like file management, memory management, process management, handling input and output, and controlling peripheral devices such as disk drives and printers. An operating system main functions of operating system pdf a program that acts as an interface between the user and the computer hardware and controls the execution of all kinds of programs. Following are some of important functions of an operating System.
Memory management refers to management of Primary Memory or Main Memory. Main memory is a large array of words or bytes where each word or byte has its own address. Main memory provides a fast storage that can be accessed directly by the CPU. For a program to be executed, it must in the main memory.
Keeps tracks of primary memory, i. In multiprogramming, the OS decides which process will get memory when and how much. Allocates the memory when a process requests it to do so.
De-allocates the memory when a process no longer needs it or has been terminated. In multiprogramming environment, the OS decides which process gets the processor when and for how much time. Keeps tracks of processor and status of process. The program responsible for this task is known as traffic controller.
De-allocates processor when a process is no longer required. An Operating System manages device communication via their respective drivers.