Operating System Quick Notes
What is an OS?
- Interface between user and hardware.
- Manages computer resources.
- Provides platform for programs.
Key functions:
- Resource management
- Process management
- Storage management
- Memory management
- Security
Common OS types:
- Windows,
- macOS,
- Linux,
- Unix
History of OS:
- First generation: Vacuum tubes, plug boards
- Second generation: Transistors, batch systems
- Third generation: Integrated circuits, multiprogramming
- Fourth generation: Large-scale integration, PCs
Characteristics of OS:
- Device management
- File management
- Job accounting
- Error-detecting aids
- Memory management
- Processor management
- Control on system performance
- Security
- Convenience
- Efficiency
- Ability to evolve
- Throughput
Components of an OS:
-
Shell (user interface)
- Kernel (core component)
Advantages of an OS:
- Resource management
- Efficient hardware use
- Security
- Application execution
Disadvantages of an OS:
- Complexity
- Cost
- Security vulnerabilities
Operating System Layers
- Hardware layer: Physical components (CPU, memory, I/O).
- Extended machine layer: Basic operations (context switching, dispatching, I/O initiation).
- Operating system layer: Manages system resources, provides interface for applications.
- User application layer: Programs interacting with OS.
Operating System Concepts
-
Process: Instance of a program in execution.
- Thread: Unit of execution within a process.
- Interprocess communication (IPC): Mechanisms for processes to interact.
- Scheduling: Allocating CPU time to different processes.
- Synchronization: Coordinating execution of multiple processes/threads.
- Deadlock: Situation where two or more processes wait for each other.
Types of Operating Systems
- Operating systems can be categorized based on their functionalities and target applications:
- Batch Operating Systems: Process jobs in batches, suitable for large-scale data processing tasks like payroll or inventory management.
- Multiprogramming Systems: Execute multiple programs concurrently, improving resource utilization.
- Multitasking Systems: Allow multiple tasks to run simultaneously within a single program.
- Multiprocessing Systems: Utilize multiple CPUs to enhance performance for computationally intensive tasks.
- Time-Sharing Systems: Divide processing time among multiple users, providing interactive computing experiences.
- Real-Time Systems: Guarantee timely responses to events, critical for applications like flight control or medical equipment.
- Distributed Systems: Spread tasks across multiple interconnected computers, enabling scalability and fault tolerance.
-Network Operating Systems: Manage network resources and provide services like file sharing, printing, and user authentication.
Specific Functions of operating System
- Memory Management: Allocating and deallocating memory to processes.
- Processor Management: Scheduling processes for CPU access.
- Device Management: Managing device communication and allocation.
- File Management: Organizing and managing files and directories.
- User Interface: Providing a command-line or graphical interface for user interaction.
- Booting: Starting or restarting the computer.
- Security: Implementing security measures to protect user data.
- Performance Control: Optimizing system performance through resource allocation and scheduling.
- Job Accounting: Tracking resource usage for tasks and users.
- Error Detection: Monitoring for and correcting system errors.
- Coordination: Coordinating between software and users.
- Basic Computer Tasks: Managing peripheral devices and network communication.
Services of Operating System
- User Interface: Providing a graphical or command-line interface.
- Program Execution: Running user and system programs.
- Input/Output Handling: Managing input and output operations.
- File System Manipulation: Storing, retrieving, and managing files.
- Resource Allocation: Allocating resources to processes.
- Accounting: Tracking system activities and resource usage.
- Information and Resource Protection: Protecting data and resources from unauthorized access.
- Communication: Enabling communication between processes.
- System Services: Providing additional services like printing and time management.
Note: This is a brief overview of operating system concepts. For a more in-depth understanding, refer :
Learn Operating System for free at : Operating System - CompEduBoxOperating System Notes [ 4330703 ] | GTU | MCQs | Tutorial | Exam Notes
0 Comments