L2 Functions of OS
L2 Functions of OS
1. Process Management
2. Memory Management
3. File Management
4. I/O Management
5. Protection & Security
6. Communication
7. Command Interpretation or Shell
Process Management
• A process is a program in execution. It is a unit of work within the
system. Program is a passive entity(resides in Secondary Memory),
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
Process Management Activities
The operating system is responsible for the following activities in connection
with process management:
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
I/O Subsystem
https://www.studytonight.com/operating-system/
https://computing.llnl.gov/tutorials/
https://www.tutorialspoint.com/operating_system/index.htm#:~:text=An%20operating%20system%
20(OS)%20is,software%20in%20a%20computer%20system.
https://www.javatpoint.com/os-tutorial
https://www.guru99.com/operating-system-tutorial.html
https://www.geeksforgeeks.org/operating-systems/