Professional Documents
Culture Documents
Chapter 1 Introduction PDF
Chapter 1 Introduction PDF
Chapter 1
• Memory Management
• Processor Management
• Device Management
• File Management
• Security
• Control over system performance
• Job accounting
• Error detecting aids
• Coordination between other software and users
• Memory management refers to management of Primary
Memory or Main Memory.
• Main memory is a large array of words or bytes where each
word or byte has its own address.
• Main memory provides a fast storage that can be accessed
directly by the CPU.
• For a program to be executed, it must in the main memory.
• An Operating System does the following activities for memory
management:
– Keeps tracks of primary memory, i.e., what part of it are in use
by whom, what parts are not in use?
– In multiprogramming, the OS decides which process will get
memory when and how much.
– Allocates the memory when a process requests it to do so.
– De-allocates the memory when a process no longer needs it or
has been terminated.
Processor Management
• Several jobs are kept in main memory at the same time, and
the CPU is multiplexed among them.
• If memory can hold several programs, then CPU can switch to
another one whenever a program is waiting for an I/O to
complete – This is multiprogramming.
Time-sharing Operating Systems
• Error Detection
• Errors may occur within CPU, memory hardware, I/O devices and in the
user program. For each type of error, the OS takes adequate action for
ensuring correct and consistent computing.
• Accounting
• This service of operating system keeps track of which users are using how
much and what kinds of computer resources has been used for accounting
or simply to accumulate usage statistics.
• For example, if you press and hold the right arrow key in a text file,
the ISR will signal to the CPU that the right arrow key is depressed.
The CPU sends this information to the active word processor or text
editing program, which will move the cursor to the right.
• When you let go of the key, the ISR handles the "key up" event. This
interrupts the previous "key down" state, which signals to the
program to stop moving the cursor.
Dual mode operation