Docsity

Process, memory, and Storage Management in OS, Summaries of Operating Systems

Partial preview of the text

Download Process, memory, and Storage Management in OS and more Summaries Operating Systems in PDF only on Docsity!

U U U U

PROCESS MANAGEMENT

A process is a program in execution. It is a unit of work within the system. Program is a , process is an. Process needs resources to accomplish its task

. CPU, memory, I/O, files . Initialization data Process termination requires reclaim of any reusable resources

PROCESS MANAGEMENT ACTIVITIES

The OS is responsible for the following activities in connection with process management: d (^) Creating and deleting both user and system processes d Suspending and resuming processes d Providing mechanisms for process synchronization d Providing mechanisms for process communication d Providing mechanisms for deadlock handling

U Memory management activities

. Keeping track of which parts of memory are currently being used and by whom . Deciding which processes (or parts thereof) and data to move into and out of memory . Allocating and deallocating memory space as needed

STORAGE MANAGEMENT

U OS provides uniform, logical view of information storage

. Abstracts physical properties to logical storage unit - . (^) Each medium is controlled by device (i.e., disk drive, tape drive) U Varying^ properties^ include^ access^ speed,^ capacity, data-transfer rate, access method (sequential or random)

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 OS activities

. Free- space management . Storage allocation . Disk scheduling U U U

U Entire speed of computer operation hinges on disk subsystem and its algorithms U Some storage need not be fast

. Tertiary storage includes optical storage, magnetic tape . Still must be managed – by OS or applications . Varies between WORM (write-once, read- many-times) and RW (read-write)

PERFORMANCE OF VARIOUS LEVELS OF STORAGE

Movement between levels of storage hierarchy can be explicit or implicit

MIGRATION OF DATA “A” FROM DISK TO REGISTER

U Multitasking environments must be careful to use most recent value, no matter where it is stored in the storage hierarchy U Multiprocessor environment must provide in hardware such that all CPUs have the most recent value in their cache U Distributed environment situation even more complex

. Several copies of a datum can exist . Various solutions covered in Chapter 17