Real Time Operating System
Real Time Operating System
A Real-Time Operating System (RTOS) is an operating system built for applications where the
timing of tasks is just as important as the tasks themselves. In these systems, it's not enough
for tasks to be correct — they also need to be completed within specific time limits.
RTOS is used system such as in embedded systems (like smart devices), robotics (like
controlling robots), and telecommunications (like network equipment).
Architecture
1. Kernel: Manages tasks, resources, and interrupts to meet deadlines.
2. Scheduler: Decides task execution order.
3. Task Management: Handles task creation and termination.
4. Interrupt Handling: Responds to external events.
5. Tasks: Can be periodic (regular) or aperiodic (random).
6. Memory Management: Allocates memory for tasks.
7. Inter-process Communication (IPC): Enables task communication.
8. Device Drivers: Interacts with hardware.
9. File System (optional): Manages file storage.
Features:
• Deterministic: Provides predictable task execution times.
• Pre-emptive Multitasking: High-priority tasks can pre-empt low-priority ones.
• Low Latency: Quick response to external events.
• Real-time Scheduling: Ensures tasks meet deadlines.
Applications:
• Embedded Systems: IoT devices, smart appliances.
• Robotics: Controlling sensors and actuators.
• Medical Devices: Life-critical equipment like pacemakers.
• Telecommunications: Routers and network equipment.
• Automotive Systems: Engine and safety control systems.
Architecture
iOS has four main layers:
1. Core OS Layer: Manages hardware, memory, and security.
2. Core Services Layer: Provides services like networking and data storage.
3. Media Layer: Handles graphics, audio, and video.
4. Cocoa Touch Layer: Manages user interfaces and touch interactions.
Features of iOS
1. User Interface: Easy-to-use, supports multi-touch gestures.
2. Security: Strong protection with encryption and app reviews.
3. App Store: Safe marketplace for apps.
4. Multitasking: Switch between apps smoothly.
5. Performance: Optimized for speed and efficiency.
6. iCloud: Syncs data across devices.
7. Push Notifications: Alerts you about updates in real-time.
Applications of iOS
1. Mobile Devices: iPhones, iPads for daily tasks.
2. Business: Apps for collaboration and productivity.
Architecture
1. Linux Kernel: Manages hardware and system resources.
2. Hardware Abstraction Layer (HAL): Connects hardware with software.
3. Android Runtime (ART): Runs apps with necessary libraries.
4. Libraries: Essential functionalities like graphics and databases.
5. Application Framework: Provides tools for app development.
6. Applications: User apps like Contacts and third-party apps.
Features of Android OS
1. Customizable: Users can personalize their devices.
2. Multitasking: Run multiple apps at once.
3. Google Integration: Works seamlessly with Google services.
4. Open Source: Developers can modify the OS.
5. App Ecosystem: Access to a large number of apps.
6. Security: Features like encryption and app protection.
Applications of Android OS
1. Mobile Devices: Phones and tablets.
2. Wearables: Smartwatches and fitness trackers.
3. TV: Smart TVs with Android.
4. Automotive: Android Auto in cars.
5. IoT: Used in smart home devices.
Scheduling algorithms manage how processes are assigned to the CPU, significantly impacting
multitasking efficiency. Below are the common algorithms used in various operating systems:
Windows OS
o Impact: Ensures critical tasks are executed first, but lower-priority tasks may
starve.
RTOS
o Impact: Effective for periodic tasks but unsuitable for dynamic workloads.
Android OS
iOS
1. Priority-Based Scheduling:
o Impact: Simple but can cause delays if a task does not yield.
Linux OS
o Ensures equal CPU time for all tasks based on priority and runtime.
2. Real-Time Scheduling:
2. Time Sharing: Improves fairness but may reduce throughput due to frequent context
switches.
3. Real-Time Algorithms: Ensure deadlines are met, critical for applications like robotics
or streaming.
Summary
• Efficient memory allocation improves performance.
• Security measures (e.g., isolation) prevent interference between processes.
• Automated tools like garbage collection and ARC simplify management in modern
systems.
Summary
• File systems (e.g., NTFS, ext4, APFS) organize storage.
• Efficient storage management ensures security, reliability, and performance.
• Integration with cloud and flash storage enhances modern applications.