- Operating System Process Management
A process is a program in execution
A process needs certain resources, including CPU time, memory, files, and I/O devices, to accomplish its task.
The operating system is responsible for the following activities in connection with process management
- Process creation and deletion
- Process suspension and resumption
- Provision of mechanisms for:
- process synchronization
- process communication
- Main memory Management
1.Memory is a large array of words or bytes, each with its own address
() It is a repository of quickly accessible data shared by the CPU and I/O devices
2. Main memory is a volatile storage device. It loses its contents in the case of system failure
3. The operating system is responsible for the following activities in connections with memory managementl
- Keep track of which parts of memory are currently being used and by whoml
- Decide which processes to load when memory space becomes availablel
- Allocate and deallocate memory space as needed
Memory management is the act of managing computer memory. In its simpler forms, this involves providing ways to allocate portions of memory to programs at their request, and freeing it for reuse when no longer needed. The management of main memory is critical to the computer system.
- File management
A file is a collection of related information defined by its creatorl Commonly, files represent programs (both source and object forms) and data
The operating system is responsible for the following activities in connections with file management:
- File creation and deletion
- Directory creation and deletion
- Support of primitives for manipulating files and directories
- Mapping files onto secondary storage
- File backup on stable (nonvolatile) storage media
A file object provides a representation of a resource (either a physical device or a resource located on a physical device) that can be managed by the I/O system. Like other objects, they enable sharing of the resource, they have names, they are protected by object-based security, and they support synchronization. The I/O system also enables reading from or writing to the resource.
- I/O System management
The I/O system consists of:
>A buffer-caching system
>A general device-driver interface
>Drivers for specific hardware devices
- Secondary Storage Management
Since main memory (primary storage) is volatile and too small to accommodate all data and programs permanently, the computer system must provide secondary storage to back up main memory
Most modern computer systems use disks as the principle on-line storage medium, for both programs and datan
The operating system is responsible for the following activities in connection with disk management:
>> Free space managementl Storage allocationl
>>Disk scheduling
The I/O management subsystem controls all the input andoutput of the computer system. For the enforcement ofsecurity, the most important things that the I/O managementsubsystem does are· Managing the transfer of data.· Enforcing access controls (the DAC mechanisms) on datawhile it is being transferred. See “Discretionary access control(DAC)” for more information on DAC.During the transfer of blocks or streams of data, and duringcharacter I/O operation, each I/O transaction is completelyseparate from all others. It follows a well-known and well-defined path; therefore, the integrity of all data is maintainedduring data transactions.
- Protection System
Protection refers to a mechanism for controlling access by programs, processes, or users to both system and user resourcesn
The protection mechanism must:
- distinguish between authorized and unauthorized usagel specify the controls to be imposedl
- provide a means of enforcement
- Command-Interpreter system
Many commands are given to the operating system by control statements which deal with:
- Process creation and management
- I/O handling
- Secondary-storage management
- Main-memory management
- File-system access
- Protection
- Networking
A command interpreter is the part of a computer operating system that understands and executes commands that are entered interactively by a human being or from a program. In some operating systems, the command interpreter is called the shell.
0 comments:
Post a Comment