Page 61 - Ai Book - 10
P. 61

Memory Management

        Memory management refers to management of Primary Memory, also called RAM (Random Access Mrmory).
        Main memory provides fast storage that can be accessed directly by the CPU. For a program to be executed,
        it must be in the main memory. An Operating System keeps tracks of primary memory, i.e., what part of it are
        in use by whom, what part are not in use. It decides which process will get memory when and how much. The
        operating system allocates the memory when a process requests it to do so and de-allocates the memory when
        a process no longer needs it or has been terminated.

        Processor Management
        In multiprogramming environment, where several programs are running at the same time, the operating system
        decides which process gets the processor when and for how much time. This function is called process scheduling.
        The operating system keeps tracks of processor and status of process, allocates the processor (CPU) to a process,
        and de-allocates the processor when a process is no longer required.
        Device Management

        An operating system manages the various hardware devices and communicates with them via their respective
        drivers. It keeps track of all the devices connected to the computer, decides which process gets the device, when
        and for how much time, allocates the various devices among several programs in the most efficient way, and de-
        allocates devices when they are no longer required.
        File Management

        A file is the basic unit of storage of data on a secondary storage device such as a hard disk or a pen drive. Files
        are normally organized into directories or folders for easy navigation and usage. These folders may contain files
        and other folders. An operating system keeps track of information about all the files in the computer such as
        their size, location, access rights, and status. It provides mechanism for creation of files, insertion of data in the
        files, modification of data, and deletion of files. It also decides how the various resources of a computer system
        are allocated to various programs for creation of files.

        Security
        The operating system provides security to a computer by preventing access by unauthorized users. It employs
        a system of user identification through passwords and other techniques such as face recognition, finger print
        recognition, etc. The operating system prevents unauthorized access to individual programs and files, as well as
        to the computer in general.
        System Performance Audit

        The operating system keeps a track of the performance of the computer system by recording delays between
        request for a service and response from the system. This helps the operating system to offer suggestions to the
        user for fine-tuning and optimizing the functions of the computer.

        Error Detection and Reporting
        The operating system keeps track of various errors produced during the functioning of the computer system
        and generates error messages that let a user understand the problem. It also generates error logs and reports
        that a user can examine and send it to others for troubleshooting. The operating system is also responsible for
        generating memory and data dumps, in case of system crash, to restore the system to its original state.
        Interface Between User and Computer

        The most visible function of the operating system is the coordination it provides between the user and the
        computer. The operating system provides an interface which lets a user issue commands to the computer to

                                                                                                              55
                                                                                                              55
   56   57   58   59   60   61   62   63   64   65   66