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

IOT PROTOCOLS.pptx
IOT PROTOCOLS.pptxIOT PROTOCOLS.pptx
IOT PROTOCOLS.pptxDRREC
 
Embedded Systems
Embedded SystemsEmbedded Systems
Embedded SystemsNavin Kumar
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systemsApurva Zope
 
Zigbee technology ppt
Zigbee technology pptZigbee technology ppt
Zigbee technology pptijaranjani
 
Introduction to Embedded Systems
Introduction to Embedded SystemsIntroduction to Embedded Systems
Introduction to Embedded SystemsJoy Dutta
 
Embedded Systems - Training ppt
Embedded Systems - Training pptEmbedded Systems - Training ppt
Embedded Systems - Training pptNishant Kayal
 
Architecture of operating system
Architecture of operating systemArchitecture of operating system
Architecture of operating systemSupriya Kumari
 
Lecture 2
Lecture 2Lecture 2
Lecture 2Mr SMAK
 
Typical Embedded System
Typical Embedded SystemTypical Embedded System
Typical Embedded Systemanand hd
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor Systemsvampugani
 
Flynns classification
Flynns classificationFlynns classification
Flynns classificationYasir Khan
 

Mais procurados (20)

Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
IOT PROTOCOLS.pptx
IOT PROTOCOLS.pptxIOT PROTOCOLS.pptx
IOT PROTOCOLS.pptx
 
Embedded Systems
Embedded SystemsEmbedded Systems
Embedded Systems
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systems
 
Zigbee technology ppt
Zigbee technology pptZigbee technology ppt
Zigbee technology ppt
 
Introduction to Embedded Systems
Introduction to Embedded SystemsIntroduction to Embedded Systems
Introduction to Embedded Systems
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Embedded systems ppt
Embedded systems pptEmbedded systems ppt
Embedded systems ppt
 
Parallel Algorithms
Parallel AlgorithmsParallel Algorithms
Parallel Algorithms
 
Ppt on embedded systems
Ppt on embedded systemsPpt on embedded systems
Ppt on embedded systems
 
Embedded Systems - Training ppt
Embedded Systems - Training pptEmbedded Systems - Training ppt
Embedded Systems - Training ppt
 
RT linux
RT linuxRT linux
RT linux
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 
Memory management
Memory managementMemory management
Memory management
 
Architecture of operating system
Architecture of operating systemArchitecture of operating system
Architecture of operating system
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Multi Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing MachineMulti Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing Machine
 
Typical Embedded System
Typical Embedded SystemTypical Embedded System
Typical Embedded System
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor Systems
 
Flynns classification
Flynns classificationFlynns classification
Flynns classification
 

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

Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 

Último (20)

Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 

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.