os Flashcards
What is an Operating System (OS)?
A program that manages a computer’s hardware and software resources while providing a user interface for interaction.
It acts as an intermediary between the hardware and user applications.
List the functions of an Operating System.
- Process Management
- Memory Management
- Storage Management
- I/O Management
- Security & Protection
- User Interface
What are the main components of a computer system?
- Hardware
- Operating System
- Application Programs
- Users
What is a Single-Processor System?
A computer system with one CPU that executes all instructions.
It follows the Von Neumann architecture.
What are the advantages of a Single-Processor System?
- Simple and cost-effective
- Easier to design and maintain
What are the disadvantages of a Single-Processor System?
- Limited processing power
- If the CPU fails, the entire system stops
Define a Multiprocessor System.
A system with two or more CPUs that share memory and peripherals to execute multiple tasks efficiently.
What is Symmetric Multiprocessing (SMP)?
All CPUs run the OS and share workloads.
What are the advantages of a Multiprocessor System?
- Increases system performance
- Better fault tolerance
- Efficient parallel processing
What is a Clustered System?
A system where multiple computers work as a single system to provide high availability and load balancing.
What are the characteristics of a Clustered System?
- Uses high-speed network connections for communication
- Can be Loosely Coupled or Tightly Coupled
What are the advantages of a Clustered System?
- High availability and fault tolerance
- Easy scalability
- Supports parallel processing
What is the goal of an OS structure?
- Efficiency
- Modularity
- Security and Protection
- Scalability
Describe the Monolithic Structure of an OS.
The entire OS is a single program with all services combined.
Example: Early UNIX systems.
What are the pros of a Monolithic Structure?
- Fast execution
- Direct communication between OS components
What are the cons of a Monolithic Structure?
- Difficult to modify or update
- A single bug can crash the entire system
What is a Layered Structure in an OS?
The OS is divided into layers, each performing specific tasks.
What are the pros of a Layered Structure?
- Easier to debug and maintain
- Modular design
What are the cons of a Layered Structure?
- Performance overhead
Define Microkernel Structure.
Only essential OS services are in the kernel, while other services run as user-space programs.
What are the advantages of a Microkernel Structure?
- More secure
- Easier to update individual OS components
What are the disadvantages of a Microkernel Structure?
- Slower performance due to more user-kernel transitions
What is the Modular Approach in OS structure?
The OS is structured like a modular system, where components can be loaded/unloaded dynamically.
What are the major OS services?
- Program Execution
- I/O Operations
- File-System Manipulation
- Communication (IPC)
- Error Detection and Handling
- Resource Allocation
- Security & Protection