1 / 20

OS Scheduling & RTOS

OS Scheduling & RTOS. Group no. 2 Presented to : Eng.Ahmed Hassan Sunday, March 04,2012. Scope. Operating system (OS) Examples of Operating system RTOS Soft versus Hard RTOS Operating System Scheduling Types of operating system scheduling Scheduling algorithms.

trina
Download Presentation

OS Scheduling & RTOS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. OS Scheduling & RTOS Group no.2 Presented to : Eng.Ahmed Hassan Sunday, March 04,2012

  2. Scope • Operating system (OS) • Examples of Operating system • RTOS • Soft versus Hard RTOS • Operating System Scheduling • Types of operating system scheduling • Scheduling algorithms

  3. Operating System • A program that controls the execution of application programs • An interface between applications and hardware

  4. Operating System handles • Memory Addressing & Management • Interrupt & Exception Handling • Process & Task Management • Process Scheduling & Synchronization • File System • Timing

  5. Examples of Operating Systems • RTOS – Real-Time Operating System • Single-user, Single-task: example PalmOS • Single-user, Multi-task: MS Windows and MacOS • Multi-user, Multi-task: UNIX

  6. What is RTOS • A real-time operating system (RTOS) • It is an operating system (OS) intended to serve real-time application requests. • It is part of program (or source code) that was written for manage the CPU usability of microcontroller and it help to improve the efficiency of CPU in managing the tasks or process.

  7. What is RTOS (cont.) • valued more for how quickly it can respond than for the amount of work it can perform in a given period of time. • Real-time operating systems themselves have two varieties, soft real-time systems and hard real-time systems.

  8. Soft vs. Hard RTOS • In a soft real-time system, tasks are completed as fast as possible without having to be completed within a specified timeframe. • In a hard real-time operating system however, not only tasks must be completed within the specified timeframe, but they must also be completed correctly.

  9. Operating System Scheduling • Scheduling is the method by which threads, processes  or data flows are given access to system resources.

  10. Operating System Scheduling(cont.) • The need for a scheduling algorithm arises from the requirement for most modern systems to perform • multitasking (execute more than one process at a time) and, • multiplexing(transmit multiple flows simultaneously).

  11. The scheduler is concerned with • Throughput:- number of processes that complete their execution per time unit. • Waiting Time:- equal CPU time to each process. • Turnaround:- total time between submission of a process and its completion. • Response Time:- amount of time it takes from when a request was submitted.

  12. How Scheduling manage task execution • A task, also referred to as a thread, is an independent section of a program complete with its own stack and CPU register space. • Each task is assigned a priority, and is always placed in one of dormant, ready, running, waiting.

  13. How Scheduling manage tasks execution (cont.) • A task is ready when it is available for execution but its priority is less than the current task priority of the system. • Consequently, a task is running when its current priority is met and the CPU starts to execute it. • A task is considered in wait mode when it is waiting for a resource to become available

  14. Types of OS scheduling • Long-term scheduling • Medium-term scheduling • Short-term scheduling

  15. Scheduling Algorithms • These are algorithms used for distributing resources among parties which simultaneously and asynchronously request them.

  16. Scheduling Algorithms(cont.) • First in first out • also known “First Come First served (FCFS) “ • Shortest remaining time or (SJF) • Fixed priority pre-emptive scheduling • Round-robin scheduling • Multilevel queue scheduling

More Related