SlideShare uma empresa Scribd logo
1 de 67
OPERATING SYSTEM ( OS 023L1 ) EMBEDDED OPERATING SYSTEMS Presented By: GAGNO, Nelson Jr. MADAYAG, Maria Lourdes MAYBANTING, Jefferson RAMOS, Adrian Alvin SAN DIEGO, Eleonor Presented To: ENGR. ARIEL E. ISIDRO
What is anEmbedded Systems?
EMBEDDED SYSTEMS An embedded system is a combination of computer hardware and software, and perhaps additional mechanical or other parts, designed to perform a dedicated function.
REQUIREMENTS&CONSTRAINTS ,[object Object]
Relaxed to very strict requirements and combinations of different quality requirements
Short to long life times,[object Object]
Different application characteristics
Different models of computation ranging from discrete-event systems to those involving continuous time dynamics,[object Object]
Possible Organizationof an Embedded System
UNIQUE CHARACTERISTICS & DESIGN REQUIREMENTS ,[object Object],	In many embedded systems, the correctness of a computation depends, in part, on the time at which it is delivered. Often, real-time constraints are dictated by external I/O and control stability requirements. ,[object Object],Embedded software may execute in response to external events.
UNIQUE CHARACTERISTICS & DESIGN REQUIREMENTS ,[object Object],	An embedded system must lend itself to flexible configuration so that only the functionality needed for a specific application and hardware suite is provided. ,[object Object],There is virtually no device that needs to be supported by all versions of the OS, and the range of I/O device is large.
UNIQUE CHARACTERISTICS & DESIGN REQUIREMENTS ,[object Object],	Embedded systems are typically designed for a limited, well-defined functionality. Untested programs are rarely added to the software. After the software has been configured and tested, it can be assumed to be reliable. Thus, apart from security measures, embedded systems have limited protection mechanisms. ,[object Object],	Three reasons why it is possible to let interrupts directly start or stop tasks. ,[object Object]
Protection is not necessary
Efficient control over a variety of devices is required,[object Object]
Adapting an Existing Commercial Operating System An existing commercial OS can be used for an embedded system by adding real-time capability, streamlining operation, and adding necessary functionality.
Adapting an Existing Commercial Operating System An advantage of this approach is that the embedded OS derived from a commercial general-purpose OS is based on a set of familiar interfaces, which facilitates portability. 	The disadvantage of using a general-purpose OS is that it is not optimized for real-time and embedded applications.
Purpose-Built Embedded   Operating System A significant number of operating systems have been designed from the ground up	for embedded applications.   Two prominent examples of this latter approach are eCos and TinyOS.
CHARACTERISTICS OF ASPECIALZED EMBEDDED OS ,[object Object]
Scheduled policy is real time and dispatcher module is part of scheduler instead of separate component
Has a small size,[object Object]
Minimizes intervals during which interrupts are disabled
Provides fixed or variable sixed partitions for memory management as well as the ability to lock code and data in memory,[object Object]
Provides bounded execution time for most primitives
Maintains a real-time clock,[object Object]
Supports real-time queuing disciplines such as earliest deadline first and primitives for jamming a message into the front of a queue
Provides primitives to delay processing by a fixed amount of time and to suspend/resume execution,[object Object]
WHAT IS AN eCos? 	eCos stands for Embedded Configurable Operating System 	It is an open source, royalty-free, real-time OS intended for embedded applications. 	It is one of the most widely used embedded operating systems.
CONFIGURABILITY An embedded system OS that is flexible enough to be used in a wide variety of embedded application and on a wide variety of embedded platforms must provide more functionality than will be needed for any particular application and platform.
CONFIGURABILITY 	The eCos configuration tool (which runs on Windows or Linux) is used to configure an eCos package to run on a target embedded system.
CONFIGURABILITY
LOADING ANeCos CONFIGURATION
eCos COMPONENTS 	A key design requirement for eCos is portability to different architectures and platforms with minimal effort.
eCos LAYERED STRUCTURE
HARDWAREABSTRACTION LAYER ( HAL ) The HAL is software that presents a consistent API to the upper layers and maps upper-layer operations onto a specific hardware platform. Thus, the HAL is different for each hardware platform.
HARDWAREABSTRACTION LAYER ( HAL ) Three modules: ,[object Object]
Variant: Supports the features of the specific processor in the family.
Platform: Extends the HAL support to tightly coupled peripherals. This module defines the platform or board that includes the selected processor architecture and variant. It includes code for startup, chip selection configuration, interrupt controllers, and timer devices.,[object Object]
Low task switching latency: The time it takes from when a thread becomes available to when actual execution begins.
Small memory footprint: Memory resources for both program and data are kept to a minimum by allowing all components to configure memory as needed.
Deterministic behavior: Throughout all aspect of execution, the kernels performance must be predictable and bounded to meet real-time application requirements.,[object Object]
Control over the various threads in the system
A choice of schedulers, determining which thread should currently be running
A range of synchronization primitives, allowing threads to interact and share data safely
Integration with the system’s support for interrupts and exceptions,[object Object]
eCos Principal Objective Efficiency  No unnecessary software layering or irrelevant functionality. Device driver provide separate  function for: Input Output Buffering Device control
eCos SCHEDULER Bitmaps Scheduler Efficient for small number of threads active. Each thread has different priority. Multilevel queue Scheduler Appropriate when number of threads is running. Multiple threads at each priority. Time slicing.
Terms to be remember… THREAD Client of the driver or simply a “process”. PRIORITY LEVEL Use by the scheduler to determine which thread ready to run. TIME SLICING Allow each thread  at a given time to execute  a given amount of time.
Terms to be remember… PREEMPTION Is a context switch halting execution of lower priority thread allowing higher priority thread to execute. SCHEDULER Selects appropriate thread for execution provide mechanisms for these executing threads to synchronize, and control the effect of interrupts on thread execution.
BITMAP SCHEDULER Allow the execution of threads at multiple priority levels; however, only single thread can exist at each priority level.
BITMAP SCHEDULER
MULTILEVEL QUEUE SCHEDULER Allow execution of multiple threads at each of it priority levels.   Scheduler allows pre-emption and time slicing.
MULTILEVEL QUEUE SCHEDULER
eCosTHREAD SYNCHORNIZATION Thread synchronization requires that a running thread gain a "lock" on an object before it can access it.  The thread will wait in line for another thread that is using the method/data member to be done with it. This is very important to prevent the corruption of program data if multiple threads will be accessing the same data.  If two threads try to change a variable or execute the same method at the same, this can cause serious and difficult to find problems. Thread synchronization helps prevent this.
eCosTHREAD SYNCHORNIZATION Classics Mechanism Mutexes Semaphores Condition variables Synchronization/ Communication Mechanism Event flags Mailboxes SMP support (symmetric/ multiprocessing) Spinlocks
Mutual Exclusion Lock( MUTEXES ) 	A mutex is used to enforce mutually exclusive access to a resource, allowing only one thread at a time to gain access. The mutex has only two states: locked and unlocked.
Lock and Unlocked When a mutex is locked by one thread, any other thread attempting to lock the mutex is blocked. When the mutex is unlocked, then one of the threads blocked on this mutex is unblocked and allowed to lock the mutex and gain access to the resource.
SEMAPHORES A counting semaphore is an integer value used for signaling among threads. Counting semaphores are suited to enabling threads to wait until an event has occurred.  Useful for resource management.
SEMAPHORES 	If this counter is zero, an attempt by a consumer thread to wait on the semaphore will block until some other thread or a DSR posts a new event to the semaphore. 	If the counter is greater than zero then an attempt to wait on the semaphore will consume one event; in other words, decrement the counter, and return immediately.
CONDITIONAL VARIABLES 	A condition variable is used to block a thread until a particular condition is true. Condition variables are used with mutexes to allow multiple thread to access shared data.
EVENT FLAGS 	An event flag is a 32-bit word used as a synchronization mechanism. Application code may associate a different event with each bit in a flag. A thread can wait for either a single event or a combination of events by checking one or multiple bits in the corresponding flag.
MAILBOXES 	It is also called message boxes, are an eCos synchronization mechanism that provides a means for two threads to exchange information. 	The eCos mailbox mechanism can be configured for blocking or nonblocking on both the send and receive side.
SPINLOCKS 	A spinlock is a flag that a thread can check before executing a particular piece of code. Basically, only 1 thread at a time can acquire a spinlock. Any other thread attempting to acquire the same lock will keep trying (spinning) until it can acquire a lock.
Tinyos
WHAT IS A TINYOS? TinyOS is a free and open source component-based operating system and platform targeting wireless sensor networks. 	TinyOS is an embedded operating system written in the nesC programming language as a set of cooperating tasks and processes.
WIRELESS SENSOR NETWORKS 	TINYOS was developed primarily for use with networks of small wireless sensor. A number of trends have enabled the development of extremely compact, low-power sensors. The well-known Moore’s law continuous to drive down the size of memory and processing logic elements. Smaller size in turn reduces power consumption. Low power and small size treads are also evident in wireless communication hardware, micro-electrical sensors (MEMS) and transducers.
NETWORK TOPOLOGY
TINYOS GOALS ,[object Object]

Mais conteúdo relacionado

Mais procurados

System on chip architectures
System on chip architecturesSystem on chip architectures
System on chip architecturesA B Shinde
 
Multi-core architectures
Multi-core architecturesMulti-core architectures
Multi-core architecturesnextlib
 
Introduction to embedded system design
Introduction to embedded system designIntroduction to embedded system design
Introduction to embedded system designMukesh Bansal
 
1. Introduction to Embedded Systems & IoT
1. Introduction to Embedded Systems & IoT1. Introduction to Embedded Systems & IoT
1. Introduction to Embedded Systems & IoTIEEE MIU SB
 
Multicore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash PrajapatiMulticore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash PrajapatiAnkit Raj
 
Zigbee technology ppt
Zigbee technology pptZigbee technology ppt
Zigbee technology pptijaranjani
 
Introduction to Parallel Computing
Introduction to Parallel ComputingIntroduction to Parallel Computing
Introduction to Parallel ComputingAkhila Prabhakaran
 
Introduction to Embedded Systems
Introduction to Embedded SystemsIntroduction to Embedded Systems
Introduction to Embedded SystemsSudhanshu Janwadkar
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt maineddy royappa
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded SystemsHimanshu Ghetia
 
Introduction to Firmware
Introduction to FirmwareIntroduction to Firmware
Introduction to FirmwareCaroline Murphy
 

Mais procurados (20)

E.s unit 4 and 5
E.s unit 4 and 5E.s unit 4 and 5
E.s unit 4 and 5
 
System on chip architectures
System on chip architecturesSystem on chip architectures
System on chip architectures
 
Embedded System Presentation
Embedded System PresentationEmbedded System Presentation
Embedded System Presentation
 
Communication protocols - Embedded Systems
Communication protocols - Embedded SystemsCommunication protocols - Embedded Systems
Communication protocols - Embedded Systems
 
Multi-core architectures
Multi-core architecturesMulti-core architectures
Multi-core architectures
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Introduction to embedded system design
Introduction to embedded system designIntroduction to embedded system design
Introduction to embedded system design
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
1. Introduction to Embedded Systems & IoT
1. Introduction to Embedded Systems & IoT1. Introduction to Embedded Systems & IoT
1. Introduction to Embedded Systems & IoT
 
Multicore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash PrajapatiMulticore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash Prajapati
 
Vx works RTOS
Vx works RTOSVx works RTOS
Vx works RTOS
 
Zigbee technology ppt
Zigbee technology pptZigbee technology ppt
Zigbee technology ppt
 
Zigbee Presentation
Zigbee PresentationZigbee Presentation
Zigbee Presentation
 
Embedded system introduction
Embedded system introductionEmbedded system introduction
Embedded system introduction
 
Introduction to Parallel Computing
Introduction to Parallel ComputingIntroduction to Parallel Computing
Introduction to Parallel Computing
 
Introduction to Embedded Systems
Introduction to Embedded SystemsIntroduction to Embedded Systems
Introduction to Embedded Systems
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt main
 
Cache memory
Cache memoryCache memory
Cache memory
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
 
Introduction to Firmware
Introduction to FirmwareIntroduction to Firmware
Introduction to Firmware
 

Semelhante a Embedded os

Unit 1 introduction to Operating System
Unit 1 introduction to Operating SystemUnit 1 introduction to Operating System
Unit 1 introduction to Operating Systemzahid7578
 
lecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categorieslecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categoriesWajeehaBaig
 
Operating system basics, Types of operating systems, Tasks, Process and Thre...
Operating system basics, Types of operating  systems, Tasks, Process and Thre...Operating system basics, Types of operating  systems, Tasks, Process and Thre...
Operating system basics, Types of operating systems, Tasks, Process and Thre...SattiBabu16
 
Operating systems
Operating systemsOperating systems
Operating systemsanishgoel
 
Ec8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systemsEc8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systemsRajalakshmiSermadurai
 
Linux Assignment 3
Linux Assignment 3Linux Assignment 3
Linux Assignment 3Diane Allen
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating Systemvivek223
 
Real Time Operating System ,Structures of Operating System (Monolithic, Micro...
Real Time Operating System ,Structures of Operating System(Monolithic, Micro...Real Time Operating System ,Structures of Operating System(Monolithic, Micro...
Real Time Operating System ,Structures of Operating System (Monolithic, Micro...VIJETHAK2
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESKopinathMURUGESAN
 
Webinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore SystemsWebinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore SystemsKPIT
 
Introduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & ContainersIntroduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & ContainersVaibhav Sharma
 
Real time operating system
Real time operating systemReal time operating system
Real time operating systemKamran Khan
 

Semelhante a Embedded os (20)

UNIT 2.pptx
UNIT 2.pptxUNIT 2.pptx
UNIT 2.pptx
 
Ecoz presentation
Ecoz presentationEcoz presentation
Ecoz presentation
 
Unit 1 introduction to Operating System
Unit 1 introduction to Operating SystemUnit 1 introduction to Operating System
Unit 1 introduction to Operating System
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
lecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categorieslecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categories
 
Operating system basics, Types of operating systems, Tasks, Process and Thre...
Operating system basics, Types of operating  systems, Tasks, Process and Thre...Operating system basics, Types of operating  systems, Tasks, Process and Thre...
Operating system basics, Types of operating systems, Tasks, Process and Thre...
 
Operating systems
Operating systemsOperating systems
Operating systems
 
Autosar Basics hand book_v1
Autosar Basics  hand book_v1Autosar Basics  hand book_v1
Autosar Basics hand book_v1
 
EC8791-U5-PPT.pptx
EC8791-U5-PPT.pptxEC8791-U5-PPT.pptx
EC8791-U5-PPT.pptx
 
Ec8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systemsEc8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systems
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
Embedded os
Embedded osEmbedded os
Embedded os
 
Linux Assignment 3
Linux Assignment 3Linux Assignment 3
Linux Assignment 3
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
 
Real Time Operating System ,Structures of Operating System (Monolithic, Micro...
Real Time Operating System ,Structures of Operating System(Monolithic, Micro...Real Time Operating System ,Structures of Operating System(Monolithic, Micro...
Real Time Operating System ,Structures of Operating System (Monolithic, Micro...
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTES
 
Webinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore SystemsWebinar presentation on AUTOSAR Multicore Systems
Webinar presentation on AUTOSAR Multicore Systems
 
Introduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & ContainersIntroduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & Containers
 
Real time operating system
Real time operating systemReal time operating system
Real time operating system
 
OS UNIT1.pptx
OS UNIT1.pptxOS UNIT1.pptx
OS UNIT1.pptx
 

Último

APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 

Último (20)

APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 

Embedded os

  • 1. OPERATING SYSTEM ( OS 023L1 ) EMBEDDED OPERATING SYSTEMS Presented By: GAGNO, Nelson Jr. MADAYAG, Maria Lourdes MAYBANTING, Jefferson RAMOS, Adrian Alvin SAN DIEGO, Eleonor Presented To: ENGR. ARIEL E. ISIDRO
  • 3. EMBEDDED SYSTEMS An embedded system is a combination of computer hardware and software, and perhaps additional mechanical or other parts, designed to perform a dedicated function.
  • 4.
  • 5. Relaxed to very strict requirements and combinations of different quality requirements
  • 6.
  • 8.
  • 9. Possible Organizationof an Embedded System
  • 10.
  • 11.
  • 12.
  • 13. Protection is not necessary
  • 14.
  • 15. Adapting an Existing Commercial Operating System An existing commercial OS can be used for an embedded system by adding real-time capability, streamlining operation, and adding necessary functionality.
  • 16. Adapting an Existing Commercial Operating System An advantage of this approach is that the embedded OS derived from a commercial general-purpose OS is based on a set of familiar interfaces, which facilitates portability. The disadvantage of using a general-purpose OS is that it is not optimized for real-time and embedded applications.
  • 17. Purpose-Built Embedded Operating System A significant number of operating systems have been designed from the ground up for embedded applications. Two prominent examples of this latter approach are eCos and TinyOS.
  • 18.
  • 19. Scheduled policy is real time and dispatcher module is part of scheduler instead of separate component
  • 20.
  • 21. Minimizes intervals during which interrupts are disabled
  • 22.
  • 23. Provides bounded execution time for most primitives
  • 24.
  • 25. Supports real-time queuing disciplines such as earliest deadline first and primitives for jamming a message into the front of a queue
  • 26.
  • 27. WHAT IS AN eCos? eCos stands for Embedded Configurable Operating System It is an open source, royalty-free, real-time OS intended for embedded applications. It is one of the most widely used embedded operating systems.
  • 28. CONFIGURABILITY An embedded system OS that is flexible enough to be used in a wide variety of embedded application and on a wide variety of embedded platforms must provide more functionality than will be needed for any particular application and platform.
  • 29. CONFIGURABILITY The eCos configuration tool (which runs on Windows or Linux) is used to configure an eCos package to run on a target embedded system.
  • 32. eCos COMPONENTS A key design requirement for eCos is portability to different architectures and platforms with minimal effort.
  • 34. HARDWAREABSTRACTION LAYER ( HAL ) The HAL is software that presents a consistent API to the upper layers and maps upper-layer operations onto a specific hardware platform. Thus, the HAL is different for each hardware platform.
  • 35.
  • 36. Variant: Supports the features of the specific processor in the family.
  • 37.
  • 38. Low task switching latency: The time it takes from when a thread becomes available to when actual execution begins.
  • 39. Small memory footprint: Memory resources for both program and data are kept to a minimum by allowing all components to configure memory as needed.
  • 40.
  • 41. Control over the various threads in the system
  • 42. A choice of schedulers, determining which thread should currently be running
  • 43. A range of synchronization primitives, allowing threads to interact and share data safely
  • 44.
  • 45. eCos Principal Objective Efficiency No unnecessary software layering or irrelevant functionality. Device driver provide separate function for: Input Output Buffering Device control
  • 46. eCos SCHEDULER Bitmaps Scheduler Efficient for small number of threads active. Each thread has different priority. Multilevel queue Scheduler Appropriate when number of threads is running. Multiple threads at each priority. Time slicing.
  • 47. Terms to be remember… THREAD Client of the driver or simply a “process”. PRIORITY LEVEL Use by the scheduler to determine which thread ready to run. TIME SLICING Allow each thread at a given time to execute a given amount of time.
  • 48. Terms to be remember… PREEMPTION Is a context switch halting execution of lower priority thread allowing higher priority thread to execute. SCHEDULER Selects appropriate thread for execution provide mechanisms for these executing threads to synchronize, and control the effect of interrupts on thread execution.
  • 49. BITMAP SCHEDULER Allow the execution of threads at multiple priority levels; however, only single thread can exist at each priority level.
  • 51. MULTILEVEL QUEUE SCHEDULER Allow execution of multiple threads at each of it priority levels. Scheduler allows pre-emption and time slicing.
  • 53. eCosTHREAD SYNCHORNIZATION Thread synchronization requires that a running thread gain a "lock" on an object before it can access it. The thread will wait in line for another thread that is using the method/data member to be done with it. This is very important to prevent the corruption of program data if multiple threads will be accessing the same data. If two threads try to change a variable or execute the same method at the same, this can cause serious and difficult to find problems. Thread synchronization helps prevent this.
  • 54. eCosTHREAD SYNCHORNIZATION Classics Mechanism Mutexes Semaphores Condition variables Synchronization/ Communication Mechanism Event flags Mailboxes SMP support (symmetric/ multiprocessing) Spinlocks
  • 55. Mutual Exclusion Lock( MUTEXES ) A mutex is used to enforce mutually exclusive access to a resource, allowing only one thread at a time to gain access. The mutex has only two states: locked and unlocked.
  • 56. Lock and Unlocked When a mutex is locked by one thread, any other thread attempting to lock the mutex is blocked. When the mutex is unlocked, then one of the threads blocked on this mutex is unblocked and allowed to lock the mutex and gain access to the resource.
  • 57. SEMAPHORES A counting semaphore is an integer value used for signaling among threads. Counting semaphores are suited to enabling threads to wait until an event has occurred. Useful for resource management.
  • 58. SEMAPHORES If this counter is zero, an attempt by a consumer thread to wait on the semaphore will block until some other thread or a DSR posts a new event to the semaphore. If the counter is greater than zero then an attempt to wait on the semaphore will consume one event; in other words, decrement the counter, and return immediately.
  • 59. CONDITIONAL VARIABLES A condition variable is used to block a thread until a particular condition is true. Condition variables are used with mutexes to allow multiple thread to access shared data.
  • 60. EVENT FLAGS An event flag is a 32-bit word used as a synchronization mechanism. Application code may associate a different event with each bit in a flag. A thread can wait for either a single event or a combination of events by checking one or multiple bits in the corresponding flag.
  • 61. MAILBOXES It is also called message boxes, are an eCos synchronization mechanism that provides a means for two threads to exchange information. The eCos mailbox mechanism can be configured for blocking or nonblocking on both the send and receive side.
  • 62. SPINLOCKS A spinlock is a flag that a thread can check before executing a particular piece of code. Basically, only 1 thread at a time can acquire a spinlock. Any other thread attempting to acquire the same lock will keep trying (spinning) until it can acquire a lock.
  • 64. WHAT IS A TINYOS? TinyOS is a free and open source component-based operating system and platform targeting wireless sensor networks. TinyOS is an embedded operating system written in the nesC programming language as a set of cooperating tasks and processes.
  • 65. WIRELESS SENSOR NETWORKS TINYOS was developed primarily for use with networks of small wireless sensor. A number of trends have enabled the development of extremely compact, low-power sensors. The well-known Moore’s law continuous to drive down the size of memory and processing logic elements. Smaller size in turn reduces power consumption. Low power and small size treads are also evident in wireless communication hardware, micro-electrical sensors (MEMS) and transducers.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71. TASK Within a component, tasks are atomic: Once a task has started, it runs to completion. It cannot be preempted by another task in the same component, and there is no timeslicing. However, a task can be preempted by an event. A task cannot block or spin wait.
  • 72. COMMAND It is a nonblocking requests. A command is typically a request for the lower-level component to perform some service, such as initiating a sensor reading.
  • 73. EVENTS In TinyOS may be tied either directly or indirectly to hardware events. The lowest level software components interface directly to hardware interrupts, which may be external interrupts, timer events, or counter events. An event handler in a lowest level component may handle the interrupt itself or may propagate event messages up through the component hierarchy.
  • 74. TINYOS RESOURCE INTERFACE The TINYOS scheduler operates across all components. Virtually all embedded systems using TINYOS will be uni-processor systems, so that only one task among all the tasks in all the components may execute at a time. The scheduler is a separate component. It is the only portion of TINYOS that must be present in any system.
  • 75.
  • 76.
  • 77.
  • 78.