Documente Academic
Documente Profesional
Documente Cultură
Process creation
Process loading
CPU allocation
Process termination
OS Basics
• Interprocess Communication
Synchronization and coordination
Deadlock detection
Process Protection
Data Exchange Mechanisms
• Memory Management
Services for file creation, deletion,
reposition and protection
• Input/Output Management
Handles requests and release subroutines
for a variety of peripherals and read, write
and reposition programs
Types Of RTOS
Device Drivers
Disc Miscellaneous Network Parallel Serial
Requirement for Good RTOS
a) RTOS vendor must provide worst case execution times for all
times for all OS routines.
A) Pre-emptive Multitasking :
a) An external tick interrupt ,interrupts task at an
indeterminate point and passes control to kernal
program.
b) The kernal will save the state of the interrupted task
ad then determine which task it should run next.
c) The Kernal restore the state of task and pass control
of the CPU to that task.
d) Task will continue to run until it is interrupted by next
external tick interrupt or voluntarily gives up allotted time
slice.
Preemptive Kernel
B) Non-preemptive Multitasking :
.
Non Preemptive Kernel
2) Process thread can be prioritized :
a) A OS schedules threads/or processes based on their relative
priorities.
b) Processes are forced to relinquish the processor if a higher
priority process becomes ready to run.
c) Highest priority runnable process will be executing on the
system at all times
Task States
Task Switching
Task States
Process Scheduling Types
Types of Scheduling Policies
Deadline driven – ideal but not available
Cooperative – relies on current process to give
up the CPU
Pre-emptive priority scheduling – higher
priority tasks may interrupt lower priority tasks
Static – priorities are set before the system
begins execution
Dynamic – priorities can be redefined at run
time
Process Scheduling Types
Many priorities levels in a RTOS is better to
have for complex systems with many
threads
At least 128 levels