Page 1 :
March 6,, 2022, , FUNCTIONS OF OPERATING SYSTEM, , Q. What are the 5 main functions of an operating system?, Answer- An operating system is a software which performs all the basic tasks, like file management, memory management, process management, i/o device, management and controlling peripheral devices such as disk drives and, printers., , 1. File Management, , The operating system manages resource allocation and deallocation. It specifies which process receives the file and for, how long. It also keeps track of information, location, uses,, status, and so on. These groupings of resources are referred, to as file systems. The files on a system are stored in different, directories. The OS:-, , March 6, 2022, , 1. Keeps records of the status and locations of files., 2. Allocates and de allocates resources., 3. Decides who gets the resources.
Page 2 :
March 6,, 2022, , FUNCTIONS OF OPERATING SYSTEM, , 2. Memory Management, , It is the management of the main or primary memory., Whatever program is executed, it has to be present in the, main memory. Main memory is a quick storage area that may, be accessed directly by the CPU. When the program is, completed, the memory region is released and can be used by, other programs. Therefore, there can be more than one, program present at a time. Hence, it is required to manage, the memory., The operating system:, 1. Allocates and de allocates the memory., 2. Keeps a record of which part of primary memory is used, by whom and how much., 3. Distributes the memory while multiprocessing., , March 6, 2022, , 4. In multiprogramming, the operating system selects which, processes acquire memory when and how much memory, they get.
Page 3 :
March 6,, 2022, , FUNCTIONS OF OPERATING SYSTEM, , 3. Processor Management/Scheduling, , Every Software that runs on a computer, whether in the, background or in the frontend, is a process. Processor, management is an execution unit in which a, program operates. The operating system determines the, status of the processor and processes, selects a job and its, processor, allocates the processor to the process, and deallocates the processor after the process is completed., When more than one process runs on the system the OS, decides how and when a process will use the CPU. Hence, the, name is also CPU Scheduling. The OS:, 1. Allocates and de allocates processor to the processes., 2. Keeps record of CPU status., , March 6, 2022, , Certain algorithms used for CPU scheduling are as follows:
Page 4 :
March 6,, 2022, , FUNCTIONS OF OPERATING SYSTEM, , 1. First Come First Serve (FCFS), 2. Shortest Job First (SJF), 3. Round-Robin Scheduling, 4. Priority-based scheduling etc., , 4. I/O Device Management, , An operating system regulates device connection using, drivers. The processes may require devices for their use., This management is done by the OS. The OS:, 1. Allocates and de allocates devices to different processes., 2. Keeps records of the devices., , March 6, 2022, , 3. Decides which process can use which device for how, much time.
Page 5 :
March 6,, 2022, , FUNCTIONS OF OPERATING SYSTEM, , 5. Storage Management, , Storage management is a procedure that allows users to, maximize the utilization of storage devices while also, protecting data integrity on whatever media on which it lives., Network virtualization, replication, mirroring, security,, compression, de-duplication, traffic analysis, process, automation, storage provisioning, and memory management, are some of the features that may be included. The operating, system is in charge of storing and accessing files. The creation, of files, the creation of directories, the reading and writing of, data from files and directories, as well as the copying of the, contents of files and directories from one location to another, are all included in storage management., , March 6, 2022, , The OS uses storage management for:, •, , Improving the performance of the data storage resources., , •, , It optimizes the use of various storage devices., , •, , Assists businesses in storing more data on existing hardware,, speeding up the data retrieval process, preventing data loss,, meeting data retention regulations, and lowering IT costs
Page 6 :
March 6, 2022, , March 6,, 2022, , FUNCTIONS OF OPERATING SYSTEM