OS-CO1-Session 03 Resource Management
OS-CO1-Session 03 Resource Management
Resource Management
Session : 3
Resource Management
• Process Management
• Memory Management
• File-system Management
• Mass-Storage Management
• Caching
• Characteristics of Various Types of Storage
• Migration of data “A” from Disk to Register
• I/O Subsystem
• Protection and Security
• Virtualization
• Kernel Data Structures
13/07/2022 Operating Systems - CO1 2
Process Management
• A process is a program in execution. It is a unit of work within the
system. Program is a passive entity; process is an active entity.
• Process needs resources to accomplish its task
• CPU, memory, I/O, files
• Initialization data
• Process termination requires reclaim of any reusable resources
• Single-threaded process has one program counter specifying location
of next instruction to execute
• Process executes instructions sequentially, one at a time, until completion
• Multi-threaded process has one program counter per thread
• Typically system has many processes, some user, some operating
system running concurrently on one or more CPUs
• Concurrency by multiplexing the CPUs among the processes / threads
13/07/2022 Operating Systems - CO1 3
Process Management Activities
• File-System management
• Files usually organized into directories
• Access control on most systems to determine who can access what
• OS activities include
• Creating and deleting files and directories
• Primitives to manipulate files and directories
• Mapping files onto secondary storage
• Backup files onto stable (non-volatile) storage media
13/07/2022 Operating Systems - CO1 6
Mass-Storage Management
• Usually disks used to store data that does not fit in main memory
or data that must be kept for a “long” period of time
• Proper management is of central importance
• Entire speed of computer operation hinges on disk subsystem
and its algorithms
• OS activities
• Mounting and unmounting
• Free-space management
• Storage allocation
• Disk scheduling
• Partitioning
• Protection
13/07/2022 Operating Systems - CO1 7
Caching
• Important principle, performed at many levels in a computer
(in hardware, operating system, software)
• Information in use copied from slower to faster storage
temporarily
• Faster storage (cache) checked first to determine if information
is there
• If it is, information used directly from the cache (fast)
• If not, data copied to cache and used there
• Cache smaller than storage being cached
• Cache management important design problem
• Cache size and replacement policy