Embedded System Development Lecture 10 3/21/2007

Slides:



Advertisements
Similar presentations
IN2305-II Embedded Programming Lecture 7: More OS Services.
Advertisements

Embedded Systems More Operating System Services C.-Z. Yang Sept.-Dec
CSE451 Processes Spring 2001 Gary Kimura Lecture #4 April 2, 2001.
1 I/O Management in Representative Operating Systems.
System Calls 1.
1 Memory Management Chapter 7. 2 Memory Management Subdividing memory to accommodate multiple processes Memory needs to be allocated to ensure a reasonable.
Chapter 2 Process Management. 2 Objectives After finish this chapter, you will understand: the concept of a process. the process life cycle. process states.
CSCI1600: Embedded and Real Time Software Lecture 17: Concurrent Programming Steven Reiss, Fall 2015.
Chapter 7. More Operating System Services
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
Tutorial 2: Homework 1 and Project 1
LPC2148's RTOS Bruce Chhuon 4/10/07. What is a Real Time Operating System? ● A Real Time Operating System (RTOS) manages hardware and software resources.
Memory Management Chapter 7.
REAL-TIME OPERATING SYSTEMS
Processes and threads.
EMERALDS Landon Cox March 22, 2017.
Interrupts and signals
CS501 Advanced Computer Architecture
Microprocessor Systems Design I
CS 6560: Operating Systems Design
Operating systems Deadlocks.
Topics Covered What is Real Time Operating System (RTOS)
Chapter 9: Virtual Memory
OPERATING SYSTEMS CS3502 Fall 2017
Lecture Topics: 11/1 Processes Process Management
CS 3305 System Calls Lecture 7.
An Embedded Software Primer
Real-time Software Design
Main Memory Management
Applied Operating System Concepts
CSCI1600: Embedded and Real Time Software
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy 11/12/2018.
CGS 3763 Operating Systems Concepts Spring 2013
Programming Embedded Systems in C++
An Embedded Software Primer
Threads and Data Sharing
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 8 11/24/2018.
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 9 12/1/2018.
I/O Systems I/O Hardware Application I/O Interface
CS703 - Advanced Operating Systems
Process & its States Lecture 5.
Operating System Concepts
Operating systems Deadlocks.
Process Description and Control
Accessing Services Through Interrupts
Embedded System Development Lecture 2 1/17/2007
Embedded System Development Lecture 1 1/10/2007
Processes Hank Levy 1.
Process Description and Control
Embedded System Development Lecture 4 1/31/2007
Operating System Chapter 7. Memory Management
CSCI1600: Embedded and Real Time Software
Process Description and Control
Process Description and Control
Process Description and Control
Process Description and Control
Embedded System Development Lecture 7 2/21/2007
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 9 4/5/2019.
Chapter 2 Processes and Threads 2.1 Processes 2.2 Threads
Process Description and Control
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
Processes Hank Levy 1.
CS703 – Advanced Operating Systems
CSCI1600: Embedded and Real Time Software
Embedded System Development Lecture 12 4/4/2007
CSCI1600: Embedded and Real Time Software
Embedded System Development Lecture 10 March 29, 2006
Presentation transcript:

Embedded System Development Lecture 10 3/21/2007 CS590 Embedded System Development Lecture 10 3/21/2007

Class Notes Homework #2 is due. Any questions. 2/3-Term Exam will be March 28th. We’ll talk about that later. Microchip discounts expire 3/31.

Operating System Services Tasks must be able to communicate with one another to coordinate their activities or to share data. We will discuss the following methods that most RTOSs offer: Queues Mailboxes Pipes

Queues Initialization Allowing for multiple queues What’s in the queues? What happens on a write? What happens on a read? VxWorks Examples

Mailboxes In general, mailboxes are much like queues. Create, read, write, check, destroy Some RTOSs allow a certain number of messages in each mailbox. Others allow only one. Some RTOSs have a pool of messages for all mailboxes Some RTOSs allow prioritization of messages.

Pipes Pipes are also much like queues. Create, read, write… Some RTOSs allow you to write messages of varying length onto pipes. Pipes in some RTOSs are entirely byte-oriented. Some RTOSs use the standard C library functions fread and fwrite to read from and write to pipes.

Pitfalls Most RTOSs do not restrict which tasks can read from or write to any given queue, mailbox or pipe. The RTOS cannot ensure that data written onto a queue, mailbox or pipe will be properly interpreted by the task that reads it.

Pitfalls Running out of space in queues, mailboxes, or pipes is usually a disaster for embedded software. Passing pointers from one task to another through a queue, mailbox, or pipe is one of several ways to create shared data inadvertently.

Timers Most embedded systems must keep track of the passage of time. Task delays Task timers System ticks Board supported timing hardware Extremely accurate timing

Events An event is essentially a Boolean flag that tasks can set or reset and that other tasks can wait for. More than one task can block waiting for the same event. RTOSs typically form groups of events, and tasks can wait on any subset. Different RTOSs deal in different ways with the issue of resetting events.

Memory Management Most RTOSs have some kind of memory management subsystem. Some offer malloc and free. General block allocation is time consuming and can lead to memory fragmentation. Pools of fixed block sizes.

Interrupt Routines in an RTOS Rule 1. An interrupt routine must not call any RTOS function that might block the caller. Rule 2. An interrupt routine may not call any RTOS function that might cause the RTOS to switch tasks unless the RTOS knows that an interrupt routine, and not a task, is executing.

2/3 Term Exam Chapters 1 – 7 in the book. Project questions (PIC, Demo board…). Problems and short answer. Open book and note. Entire class period available. Should take 60-90 minutes.

Class Project Any questions from last week? LCD Demo Code and Libraries

Project Team 1 Anne-Marie Buibish John Mallinger Anthony Megna

Project Team 2 Steve Gardner Andrew Marcum Seth Schapiro Erik Certain

Project Team 3 John Bodenschatz Elhadi Elomda Mary Green Richard Hoffman

Project Team 4 Angelyn Begley Michael Carsten Keith Shie