OS UNIT Cycle Test
OS UNIT Cycle Test
It is an intermediary between the user of the computer and the computer hardware.
The operating system controls the hardware and coordinates its use among the various
application programs for the various users.
User Mode:
Runs user applications and provides a controlled environment where user processes operate.
Kernel Mode:
1. RESOURCE MANAGEMENT
An operating system is a resource manager. The system’s CPU, memory space, file-
storage space, and I/O devices are among the resources that the operating system must
manage.
Process Management
A program can do nothing unless its instructions are executed by a CPU. A program
in execution is called as a process. A program is a passive entity, like the contents of a file
stored on disk, whereas a process is an active entity. The operating system is responsible for
the following activities in connection with process management:
Memory Management
Memory management is the most important part of OS. The operating system is responsible
for the following activities in connection with memory management:
• Keeping track of which parts of memory are currently being used and which process is
using them
• Allocating and deallocating memory space as needed
• Deciding which processes and data to move into and out of memory
File-System Management
File management is one of the most visible components of an operating system. A file is a
collection of related information. File can represent variety of content including program and
data which can be numeric, alphabetic, alpha-numeric or binary. The operating system is
responsible for the following activities in connection with file management:
Mass-Storage Management
Mass storage management is a critical function in operating systems, involving the efficient use,
allocation, and management of large-scale storage devices like hard drives, SSDs, and other
persistent storage media. The operating system is responsible for the following activities in
connection with secondary storage management:
Cache Management
Information is normally kept in some storage system. It is copied into a faster storage
system— the cache—on a temporary basis.
When we need a particular piece of information, we first check whether it is in the cache.
If it is not, we use the information from the source, putting a copy in the cache under the
assumption that we will need it again soon.
I/O (Input/Output) system management is a critical function of an operating system (OS) that
involves managing the communication between the system's hardware components and the
various processes that require I/O operations.
Device Drivers
I/O Scheduling
Buffering
Caching
Spooling
1. Simple Structure
2. Layered Approach
3. Microkernel
4. Modules
5. Hybrid Systems
Simple Structure
In a monolithic OS, all operating system functions (e.g., file system, memory management, device
drivers) are integrated into one large kernel that runs in a single address space.Applications and system
utilities interact with the kernel through a system-call interface, allowing them to request services such
as I/O operations, memory allocation, and process control.
Layered Approach
Given proper hardware support, OS may be broken into smaller, more appropriate
pieces.
The modularization of a system can be done in many ways.
One method is the layered approach, in which the operating system is broken up into
a number of layers (or levels), each built on top of lower layers.
The bottom layer (layer 0) is the hardware; the highest (layer N) is the user interface.
The main advantage of the layered approach is modularity.
The modularity makes the debugging & verification easy.
Microkernel
Remove the non-essential components from the kernel into the user space.
Moves as much from the kernel into “user” space.
Communication takes place between user modules using message passing.
Benefits:
Extensibility
Portability
Reliability
Security
Modules
The best current methodology for operating-system design involves using loadable
kernel modules.
The idea of the design is for the kernel to provide core services while other services
are implemented dynamically, as the kernel is running.