An operating system (OS) is system software that manages computer hardware, software resources, and provides common services for computer programs. It acts as an intermediary between users and the computer hardware, facilitating the execution of applications.
The different states of a process include:
A context switch is the process of storing the state of a currently running process or thread so that it can be resumed later, and restoring the state of another process or thread. This allows the CPU to switch between processes or threads efficiently.
Virtual memory is a memory management technique that gives an application the impression it has contiguous working memory, while in reality, it may be fragmented and span across multiple physical memory locations. This is achieved using paging or segmentation.
A page fault occurs when a program tries to access a page that is not currently in physical memory (RAM). The operating system must then fetch the page from secondary storage (such as a hard disk) into physical memory.
A file system is a method and data structure that the operating system uses to control how data is stored, organized, and retrieved on a storage device. It manages files and directories, providing a way for users and applications to store and retrieve data efficiently.