Functions of Operating System Seminar
Functions of Operating System Seminar
Flow Chart
1) 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.
• Simultaneous execution leads to multiple processes. Hence creation, execution and
termination of a process are the most basic functionality of an OS
• If processes are dependent, than they may try to share same resources. thus task of
process synchronization comes to the picture.
• If processes are independent, than a due care needs to be taken to avoid their
overlapping in memory area.
• Based on priority, it is important to allow more important processes to execute first
than others.
2) Memory Management
• 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.
• Main memory is a volatile storage device. When the computer made turn off everything
stored in RAM will be erased automatically.
• In addition to the physical RAM installed in your computer, most modern operating
systems allow your computer to use a virtual memory system. Virtual memory allows your
computer to use part of a permanent storage device (such as a hard disk) as extra memory.
• The operating system is responsible for the following activities in connections with
memory management:
⮚ Keep track of which parts of memory are currently being used and by whom.
⮚ Decide which processes to load when memory space becomes available.
⮚ Allocate and de-allocate memory space as needed.
3) File Management
• A file is a collection of related information defined by its creator.
• 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.
4) Device Management or IO Management
• Device controllers are components on the motherboard (or on expansion cards) that act as an interface
between the CPU and the actual device.
• Device drivers, which are the operating system software components that interact with the devices
controllers.
• A special device (inside CPU) called the Interrupt Controller handles the task of receiving interrupt
requests and prioritizes them to be forwarded to the processor.
• Deadlocks can occur when two (or more) processes have control of different I/O resources that are
needed by the other processes, and they are unwilling to give up control of the device.
• It performs the following activities for device management.
⮚ Keeps tracks of all devices connected to system.
⮚ Designates a program responsible for every device known as Input/output controller.
⮚ Decides which process gets access to a certain device and for how long.
⮚ Allocates devices in an effective and efficient way.
⮚ Deallocates devices when they are no longer required.
5) Security and Protection
• The operating system uses password protection to protect
user data and similar other techniques.
• It also prevents unauthorized access to programs and user
data by assigning access right permission to files and
directories.
• The owners of information stored in a multiuser or
networked computer system may want to control use of that
information, concurrent processes should not interfere with
each other.
6) User Interface
Command Line Interface GUI