IT2A4 EMBEDDED SYSTEMS

Size: px
Start display at page:

Download "IT2A4 EMBEDDED SYSTEMS"

Transcription

1 IT2A4 EMBEDDED SYSTEMS UNIT I INTRODUCTION TO EMBEDDED SYSTEMS Definition and Classification Overview of Processors and hardware units in an embedded system Software embedded into the system Exemplary Embedded Systems Embedded Systems on a Chip (SoC) and the use of VLSI designed circuits UNIT II DEVICES AND BUSES FOR DEVICES NETWORK I/O Devices - Device I/O Types and Examples Synchronous - Iso-synchronous and Asynchronous Communications from Serial Devices - Examples of Internal Serial- Communication Devices - UART and HDLC - Parallel Port Devices Sophisticated interfacing features in Devices/Ports- Timer and Counting Devices - 12C, USB, CAN and advanced I/O Serial high speed buses- ISA, PCI, PCI-X, cpci and advanced buses. UNIT III PROGRAMMING CONCEPTS AND EMBEDDED PROGRAMMING IN C, C++ Programming in assembly language (ALP) vs. High Level Language - C Program Elements, Macros and functions -Use of Pointers - NULL Pointers - Use of Function Calls Multiple function calls in a Cyclic Order in the Main Function Pointers Function Queues and Interrupt Service Routines Queues Pointers Concepts of EMBEDDED PROGRAMMING in C++ - Objected Oriented Programming Embedded Programming in C++, C Program compilers Cross compiler Optimization of memory codes. UNIT IV REAL TIME OPERATING SYSTEMS PART - 1 Definitions of process, tasks and threads Clear cut distinction between functions ISRs and tasks by their characteristics Operating System Services- Goals Structures- Kernel - Process Management Memory Management Device Management File System Organization and Implementation I/O Subsystems Interrupt Routines Handling in RTOS, REAL TIME OPERATING SYSTEMS : RTOS Task scheduling models - Handling of task scheduling and latency and deadlines as performance metrics Co-operative Round Robin Scheduling Cyclic Scheduling with Time Slicing (Rate Monotonics Co-operative Scheduling) Preemptive Scheduling Model strategy by a Scheduler Critical Section Service by a Preemptive Scheduler Fixed (Static) Real time scheduling of tasks - INTER PROCESS COMMUNICATION AND SYNCHRONISATION Shared data problem Use of Semaphore(s) Priority Inversion Problem and Deadlock Situations Inter Process Communications using Signals Semaphore Flag or mutex as Resource key Message Queues Mailboxes Pipes Virtual (Logical) Sockets Remote Procedure Calls (RPCs).

2 UNIT V REAL TIME OPERATING SYSTEMS PART - 2 Study of Micro C/OS-II or Vx Works or Any other popular RTOS RTOS System Level Functions Task Service Functions Time Delay Functions Memory Allocation Related Functions Semaphore Related Functions Mailbox Related Functions Queue Related Functions Case Studies of Programming with RTOS Understanding Case Definition Multiple Tasks and their functions Creating a list of tasks Functions and IPCs Exemplary Coding Steps.

3 IT2A4 EMBEDDED SYSTEMS 2 MARKS UNIT-I INTRODUCTION TO EMBEDDED SYSTEMS 1. What is System? The system is a way of working, organizing or doing some task or series of tasks by following plan, program and set of rules. E.g: time display system, Automatic cloth washing system. 2. Define Embedded Systems. An embedded system is one that has computer-hardware with software embedded in it as one of its most important component. Software embedded into hardware is known as embedded systems. E.g: Mobile Phones, Elevator, Computer, etc. 3. What are the components of embedded system hardware? Processor Program memory and data memory Timers Serial communication ports Input devices Output devices Power suply, Reset and Oscillator Circuits 4. Classification of embedded system. Small Scale Embedded Systems Medium Scale embedded Systems Large Scale Embedded Systems 5. Define Processor. Processor is the heart of the system. A processor implements a process or processes as per the commands given to it. 6. Specify the 2 essential units of the processor in a system. Program Flow Control Unit (CU) Execution Unit (EU)

4 7. What are the types of General Purpose Processor? Microprocessor Microcontroller Embedded Processor Digital Signal Processor (DSP) Media Processor 8. Define Microprocessor. A microprocessor is a single VLSI chip that has a CPU and may also have some other units that are additionally present and that result in faster processing of instructions. 9. Define Microcontroller. A microcontroller is a single-chip VLSI unit which, though having limited computational capabilities, possesses enhanced input-output capabilities ana a number of on-chip functional units. 10. What is Clock? A fixed frequency pulses that an oscillator circuit generates and that controls all operations during processing and all timing references of the system. 11. What is the process of Reset? A processor state in which the processor registers acquire initial values and from which starts an initial program; this program is usually the one that also runs on power up. 12. Define Watchdog timer. A timer the timeout from which resets the processor in case the program gets stuck for an unexpected time. 13. What is ROM image? The final stage software embedded into hardware is known as Rom image. 14. Define Assembler. An assembler translates the assembly software into machine codes using a step called assembling. 15. Define Linker. Linker links the codes with the other required assembled codes. Linking is necessary because of the number of codes to be linked for the final binary file. 16. Define Loader. Loader program performs the task of relocating the codes after finding physical RAM addresses available at a given instant.

5 17. What is the use of Locator? A program called locator reallocates the linked file and creates a file for permanent location of codes in a standard format. 18. Define Compiler. A compiler assembles the codes according to the processor instruction set and other specifications. 19. What is Device driver? A device driver is software for controlling, receiving and sending a byte or a stream of bytes from or to a device. 20. Define multitasking. A task may share the memory with other task. A processor may process multiple tasks separately or concurrently.

6 UNIT II DEVICES AND BUSES FOR DEVICE NETWORK 1. What are the types of I/O devices? Serial Input, Output Serial UART Input, Output Parallel Port Single Bit Input, Output Parallel Port Input, Output 2. Give some example for Serial UART Input. Keypad, Mouse, Keyboard, Modem, Character inputs on serial line. 3. Types of communication. Synchronous Iso-Synchronous Asynchronous 4. Define Synchronous Communication. When a byte or a frame of the data is received or transmitted at constant time intervals with uniform phase differences, the communication is called as synchronous. 5. Define Isosynchronous Communication. Communicationin which constant phase difference is not maintained between the frames but maintained within a frames. 6. Define Asynchronous Communication. A communication in which a constant phase difference is not maintained and the clocks that guide the transmitter and receiver are separate. The time interval is not fixed. 7. Give short notes on HDLC. HDLC represents a High Level Data Link Control. This is an international standard protocol for a data link network. It is used for linking data from point to point and between multiple points. 8. Specify some states in a Timer. Reset State Initial Load State Present state Overflow State Overrun State

7 9. What is the Use of timer devices? Real Time clock ticks. Initiating an event after a present delay time. Capturing the count vale at the timer. Scheduling of various tasks. 10. Define I 2 C Bus. The two IC s are mutually network through a common bus I s known as I 2 c bus. It has two lines for carry signals. One line is for clock and one is for bi-directional data. 11. Define CAN Bus. The number of devices are networked and controlled through a network bus. It is mainly used in automotive electronics. 12. What is USB Bus? The Universal Serial Bus (USB) is a bus between a host system and a number of interconnected peripherals. The serial devices are scanner, keyboard, printer, etc. 13. Give some example for Advanced Serial High Speed Buses. IEEE XAUI XBI SONET OC-48 SONET OC Define ISA Bus. It is a standard bus based on IBM standard architecture. 15. What are PCI and PCI/X Bus? PCI A standard bus used as Peripheral Component Interconnect bus PCI/X A standard bus used as PCI Extended Bus 16. Define Master Slave Communication. A communication between two processors when one processor guides the transmission of the bits to a slave after receiving acknowledgement from the address slave. 17. Define Watchdog Timer. An important timing device in a system that resets the system after a predefined timeout.

8 18. Handshaking signals. The signals before storing the bits at the port buffer or before accepting the bits from the port buffer. 19. What are the protocols used in Advanced Parallel High Speed Buses? GMII XGMI CSIX-1 RapidIO 20. Explain the characteristics of parallel port devices. A port device may have multi-byte data input buffer. A port may have a data Direction register (DDR). It is bidirectional.

9 UNIT III PROGRAMMING CONCEPTS AND EMBEDDED PROGRAMMING IN C, C++ 1. What are the advantages of assembly language coding? It gives a precise control of the processor. The machine codes are compact. A few assembly instruction device driver codes may need only. 2. What are the advantages of high level language? Repetitive coding redundant. Use of standard library function. Modular programming approach. Type checking. Control structures. Portability. 3. Define Modular programming approach. It is an approach in which the large modules are divided into number of sub modules and each module are executed separately. 4. Bottom Up design. Programming is first done for the sub modules of the specific and distinct actions. 5. Top-Down design. It is another programming approach, in which the main program is first designed, then its modules, sub-modules, and finally the functions. 6. What is the Inclusion files used? Including Codes files. Including string data files. Including initial data files. Including header files. Including basic variable files. 7. Define source files. Source files are program files for the application software. The source files need to be compiled. The first function from where the processing will start is known as main function. It codes starts with void main ().

10 8. What is the use of configuration files? Cofiguration files are the files for the configuration of the system. Eg: #include os_cfg.h 9. What are the two types of preprocessor directives? Preprocessor Global Variables. Preprocessor Constants. 10. What are C program elements? Inclusion files. Source files. Configuration files. Preprocessor directives. 11. What are program elements? Dta types. Data structures. Modifiers. Statements. Loops. 12. Define Macro function. Executes a named small collection of codes with values passed by calling program through its aguments. 13. What is Recursive function? A function that calls itself is known as recursive function. It may be reentrant also. 14. Define Queue. It is a data structure with a series of element with the first element waiting for an opration. An operation can be done only in the first in first out (FIFO) mode. 15. What are the steps involved in function calls? Declaring a function. Defining statements in the function. Call to a function. 16. Define Reentrant function. Reentrant function is usable by several tasks and routines synchronously (at the same time). This is because all its argument values are retrievable from the stack. 17. What are the 5 flags used in queue? Qerrorflag hearderflag

11 trailingflag CirQuflag PolyQuFlag 18. How an object is characterized? An identity (a reference to a memory block) A state ( its data, property, fields and attributes) A behavior (method or methods) 19. Types of methods. Method overloading Method overriding 20. Define Method overloading. Methods can have same name in the inherited class. This is called as method overloading. 21. Define Method Overriding. Methods can have same name as well as same number of types of arguments in the inherited class. 22. What are the disadvantage of C++? Template. Multiple Inheritance. Exceptional handling. Virtual base classes. 23. Define Cross-compiler. The cross compiler runs on a host, but develops the machine codes for the targeted system.

12 UNIT IV REAL TIME OPRATING SYSTEMS PART-1 1. Define process. A process defines a sequentially executing (running) program and its state. The state during running of a process is represented by its status (running, blocked or finished), its control block calls as process control block (PCB). 2. Define task. An application program can also be defined as a program consisting of the tasks and task behaviors in various states that are controlled by scheduling mechanisms. 3. What are task states? Idle state Ready state Running state Blocked state 4. Define thread. Thread is a small executable unit in a program. A process may consist of one or multiple threads. 5. Write the layer structure of OS. Application software Application Programming Interface (API) System software Hardware OS Hardware 6. What are the 2 types of modes used in OS? User mode The user process is permitted to run and use only a subset of function. Supervisory mode The OS runs in protected mode. 7. Define Kernel. Kernel is the basic structural unit of OS. It can be defined as a secured unit in OS. The OS is the middle layer between the application software and system hardware. An OS includes the kernel as the structural unit.

13 8. Write the 2 types of request methods in OS. Message A process running on user mode generates the message. System-call A call to a function at the OS. 9. Define Memory Allocation. When a process is created, the memory manager allocates the memory addresses to it by mapping the process-address space. 10. What are the functions of device management? Device Detection and Addition. Device Deletion. Device Allocation and Registration. Device Buffer Management. 11. Write the two types of file system. Block File System. Byte Stream File System. 12. Define Real Time Operating System. Operating syatem with real time task scheduling, interrupt-latency control, synchronisation of tasks with IPCs, predictable timing and synchronisation behaviour of the system. 13. Define Fixed Block Allocation. Memory address space is divided into blocks with processes having small address spaces getting a lesser number of blocks and processes with big address spaces getting a larger number of blocks. 14. What is pre-emptive scheduling? A scheduling algorithm in which a higher priority task is forced to block by the scheduler to let a higher priority task run. 15. What are the methods used in fixed real time scheduling? Simulated annealing method Heuristic method Dynamic programming model 16. Write the three solutions for shared data problem. Use modifier volatile

14 Use reentrant function Put a shared variable in a circular queue 17. Define signal function. One way for messaging is to use an OS function signal(). It is provided in Unix, Linux and several RTOSes. A hardware mechanism sends the interrupt to the OS, task or the OS itself sends signals. 18. Define Mutex. The special variable and mechanism used to take note of certain action to prevent any task or process from proceeding further and at the same time let another task exclusively proceed further. 19. Define Pipe. A device for use by the task for sending the messages and another task using the device receives the messages as streams. A pipe is a unidirectional device. 20. Define Semaphore. A special variable operated by the OS functions which are used to take note of certain actions to prevent another task or process from proceeding further.

15 UNIT V REAL TIME OPERATING SYSTEMS PART-2 1. Give some example for RTOS. Linux µcos-ii VxWorks Windows CE QNx VRTX PalmOS 2. What is the use of void OSInit (void) and void OSStart (void)? void OSInit (void) Used at the beining prior to OSStart() void OSStart (void) Used after the OSInit() and task create function 3. Define Locking OS scheduler. OSSchedlock() disables preemption by a higher-priority task. This function inhibits preemption by higher-priority task, but does not inhibit interrupt. If an interrupt occurs then locking enables return of OS control to that task, which executes this function. The control returns to the task after any ISR completes. 4. What are the steps involved in task service? Creating a task Suspending a task Resuming a task 5. Specify time delay functions. Void OSTimeDly Unsigned byte_ostimedlyresume Void OSTimeDlyHMSM 6. Define queue related functions. A mailbox communicates a pointer for a message, which may be larger or smaller. By using a queue, we can communicate an array of message pointers from the tasks. 7. What is the use of VxWorks? Multitasking environment

16 Supports ability to run two concurrent OS Multiple file systems Watchdog timers 8. Write any functions for task state transitions. taskresume() tasksuspend() semgive() taskdelay() tasksuspend() exit() taskdelete() 9. What is exception handling? Executing a function on receiving a signal. Error is also handled by using an exception-handling function. 10. Define mailbox. An IPC in the event control block into which a task posts the messages at the tail pointer or urgent messages at the front pointer, which are retrieved by another task waiting for that. 11. Define TCB. TCB is a Task control block, which has the task parameters so that on task switching the parameters remain saved and when RTOS re-switches it back, the task can run from the point at which it left. Task is thus an independent process. 12. Task creation. Task is allotted a TCB and an identity. Creation also initiates and schedules on creation in MUCOS. 13. What is mean by resource key? A semaphore that resets on the start of execution of a critical region code and sets on finishing these. 14. What is the use of system timer? A system clock that can be set to interrupt at present interwals. The time is updated regularly and the system interrupts regularly. RTOS also gets control of CPU to examine if any preemption or rescheduling is needed.

17 15. Define IPC and specify some IPC functions. IPC Inter Process Communication Some of the functions are, sembcreate() semmcreate() semdelete() semtake() 16. What is the function used to create pipe device in IPC? pipedevcreate() 17. What is the specification of ACVM? Alphanumeric keyboard Three line LCD display Coin insertion slot Delivery slot Internet connection port 18. What are the 2 inputs of ACVM? Coins of different denominations through a coin slot User commands 19. What is the purpose of digital camera? Digital recording and display of pictures. Processing to get the pictures of required brightness, contrast and color. Permanent saving of a picture in a file. Transfer files to a computer through a port. 20. Write the design metrics of digital camera? Power dissipation. Resolution. Performance. Process deadlines User interfaces Engineering cost Manufacturing cost

18 6 MARKS UNIT-I INTRODUCTION TO EMBEDDED SYSTEMS 1. Explain about the components used in system. A microprocessor A large memory Primary memory Secondary memory Input units Output units Networking units I/O units 2. What are the Components of embedded system? Processor Program memory and data memory Timers Serial communication ports Input devices Output devices Power suply, Reset and Oscillator Circuits 3. Explain about the Classification of embedded system. Small Scale Embedded Systems Medium Scale embedded Systems Large Scale Embedded Systems 4. What are the types of memories used in Embedded system? Internal RAM RAM at system on chip Internal caches at microprocessor External RAM Flash / EEPROM ROM / PROM Memory addresses at the system port

19 5. Write short notes on Components in an Exemplary SoC-Smart Card with diagram. ASIP RAM ROM EEPROM Timer and Interrupt Controller Interfacing circit for I/Os

20 UNIT II DEVICES AND BUSES FOR DEVICE NETWORK 1. Types and Examples of I/O Devices. Serial Input, Output Serial UART Input, Output Parallel Port Single Bit Input, Output Parallel Port Input, Output 2. Explain about I 2 C Bus. The two IC s are mutually network through a common bus I s known as I 2 c bus. It has two lines for carry signals. One line is for clock and one is for bi-directional data. Data Integrated Circuit 2 Clock Integrated Circuit 1 Data Clock Clock Integrated Circuit 3 Data 3. Explain ISA Bus. It is a standard bus based on IBM standard architecture. Addresses allocated are hex F. Reserved address from peripherals. Display monitor port are within hex F. 4. What is the difference between PCI and PCI/X Buses? PCI A standard bus used as Peripheral Component Interconnect bus PCI/X A standard bus used as PCI Extended Bus

21 5. Write short notes about USB and Advanced Serial High Speed Buses. The Universal Serial Bus (USB) is a bus between a host system and a number of interconnected peripherals. The serial devices are scanner, keyboard, printer, etc. IEEE XAUI XBI SONET OC-48 SONET OC-192

22 UNIT III PROGRAMMING CONCEPTS AND EMBEDDED PROGRAMMING IN C, C++ 1.Write short notes about Inclusion files in C program elements. Including Codes files. Including string data files. Including initial data files. Including header files. Including basic variable files. 2.Explain about program elements. Macro function Main function Reentrant function Interrupt service routine Task Recursive function 3.What is the Use of Pointer and NULL Pointers? Unsigned byte *porta Void *portadata #define porta Unsigned byte *porta = &portadata Unsigned short *timer1 #define NULL(void*) 0x000 4.What are the steps involved in Function Calls? Declaring a function. Defining statements in the function. Call to a function. Passing the values. 5.What is Reentrant function? What are the conditions used in Reentrant function? Reentrant function is usable by several tasks and routines synchronously (at the same time). This is because all its argument values are retrievable from the stack. All the arguments pass the values and none of the argument is a pointer. When an operation is not atomic, that function should not operate on any variable. That function does not call any other function that is not itself Reentrant

23 UNIT IV REAL TIME OPRATING SYSTEMS PART-1 1. What are the goals of operating system? Facilitating easy sharing of resources as per schedule and allocations. Facilitating easy implementation. Maximizing system performance. Providing management function. Providing portability. Providing interoperability. Providing common set of interfaces. 2.Explain about the structure of OS. Application software Application Programming Interface (API) System software Hardware OS Hardware 3.Write short notes about memory management. Memory Allocation Memory Management Fixed block Allocation Dynamic block Allocation Dynamic page Allocation Dynamic Data Memory Allocation Dynamic Address Allocation 4.Explain about process management. Process Creation Management of the Created processes 5.Write short notes on semaphore functions. OSSemCreate OSSemPost OSSemPend OSSemAccept OSSemQuery

24 UNIT V REAL TIME OPERATING SYSTEMS PART-2 1.Write short notes about task service and its exemplary uses. Creating a task Suspending a task 2.Explain time delay functions in RTOS. Delaying by defining a time delay by number of clock ticks. Resuming a delayed task by OSTimeDly. Delaying by defining a time delay in units of hours, minutes, seconds and milliseconds. 3.Explain memory allocation-related functions. Creating memory blocks at a memory address. Getting a memory blocks at a memory address. Querying a memory block. Putting a memory block into a partition. 4.Write semaphore-related function in detail. Creating a semaphore for the IPCs. Waiting for an IPC for semaphore release. Check for availability of an IPC after a semaphore release. Sending an IP after a semaphore release. Retrieve the error information for a semaphore. 5.Explain about mailbox-related functions. Creating a mailbox for an IPC. Check for availability of an IPC after a message at mailbox. Waiting for availability of an IPC for a message at mailbox. Send a message for an IPC through mailbox. Finding mailbox data and retrieving the error information for a mailbox.

25 10 MARKS UNIT-I INTRODUCTION TO EMBEDDED SYSTEMS 1.Explain about the Processor in the System. General Purpose Processor Microprocessor Microcontroller Embedded Processor Digital Signal Processor (DSP) Media Processor Application Specific System processor Multiprocessor System GPP core 2.What are the hardware units used in embedded systems? Power source Clock oscillator circuit Real time clock Reset circuit, watchdog-timer Reset Memories Input, Output, I/O Ports Interrupt Handler DAC and ADC LCD and LED display Keypad / Keyboard Pulse Dialer, Modem Transceiver 3.Explain about the Software used in embedded system. Final Machine Implementable Software for a Product Coding of software in Machine codes Software in Process Specific Assembly Language Software in High Level Language Software for Device Driver and Device Management Software design for Scheduling Multiple Tasks Software Tools in Designing of an Embeded Systems Needed Software Tools in Exemplary Cases Models of Software Designing

26 4.Write brief notes about Embedded System-On-Chip (SOC) and in VLSI Circuit. Exemplary SoC for Cell-Phone ASIP IP Core Embedding a GPP FPGA Components in an Exemplary SoC-Smart Card

27 UNIT II DEVICES AND BUSES FOR DEVICE NETWORK 1.Explain about the Characteristics of Synchronous, Iso-Synchronous and Asynchronous Communication. When a byte or a frame of the data is received or transmitted at constant time intervals with uniform phase differences, the communication is called as synchronous. Communication in which constant phase difference is not maintained between the frames but maintained within a frames. A communication in which a constant phase difference is not maintained and the clocks that guide the transmitter and receiver are separate. The time interval is not fixed. D0 D7 Serial Input Port I0 I7 Clock 2.Explain about Parallel Port Devices with diagram. It contains parallel input port, output port, and a bi-directional port. IORD, IOWR. Port device may have multi byte data input. A port may have a DDR. It may have multiple or alternative functionality. 3.Explain Sophisticated Interfacing Features in Device Ports. Operation voltage level expected for logic state 1 = 5V. Power management can be done at the gate of the device. Port interface used is one drain CMOS. A device connects to a system bus and I/O bus. An IO device consists of multiple gigabyte transceivers. Multiple IO devices can be developed for IO devices. An IO device integrate a Physical Coding Sub layer.

28 4.Explain with example Timer and Counting Devices. States in a Timer Reset State Initial Load State Present state Overflow State Overrun State Use of Timer Device Ten forms of a timer 5.Explain about I 2 C, CAN and USB Buses. The two IC s are mutually network through a common bus I s known as I 2 c bus. It has two lines for carry signals. One line is for clock and one is for bi-directional data. Data Integrated Circuit 2 Clock Integrated Circuit 1 Data Clock Clock Integrated Circuit 3 Data The Universal Serial Bus (USB) is a bus between a host system and a number of interconnected peripherals. The serial devices are scanner, keyboard, printer, etc.

29 UNIT III PROGRAMMING CONCEPTS AND EMBEDDED PROGRAMMING IN C, C++ 1.Explain the Advantages of Assembly language and High level language. Assembly language It gives a precise control of the processor. The machine codes are compact. A few assembly instruction device driver codes may need only. High level language Repetitive coding redundant. Use of standard library function. Modular programming approach. Type checking. Control structures. Portability. 2.Briefly explain C program elements. Include Directive for the Inclusion files Including Codes files. Including string data files. Including initial data files. Including header files. Including basic variable files. Source files Configuration files Preprocessor Directives 3.Explain the Use of function calls and Multiple function calls. Use of function calls Declaring a function. Defining statements in the function. Call to a function. Passing the values. Reentrant function Reentrant function is usable by several tasks and routines synchronously (at the same time). This is because all its argument values are retrievable from the stack.

30 All the arguments pass the values and none of the argument is a pointer. When an operation is not atomic, that function should not operate on any variable. That function does not call any other function that is not itself Reentrant Passing the References Passing argument values through a pointer. 4.Briefly explain Queue. Five flags QerrorFlag Headerflag trailingflag CirQuFlag PolyQuFlag Four Boolean variables headerenable trailingenable CirQuEnable PolyQuEnable Four Unsigned short variable headernumbyte trailingnumbytes CirQuNumByte PolyOuBlockNum 5.Optimization of Memory Needs. Use declaration as unsigned byte. Avoid use of library function. Use assembly code for simple function. Use inline modifiers. Shared data problem does not arise. Combine two functions if possible. Delete function when there is no longer needed.

31 UNIT IV REAL TIME OPRATING SYSTEMS PART-1 1.Define Kernel and its function. Creation to deletion Process structure maintenance Processing resource request Scheduling Interprocess communication Memory management allocation and deallocation Device management Device drivers I/O management Interrupt control mechanism 2.Explain briefly about process management. Process creation Context Process stack pointer Current state Addresses Pointer to the parent process Pointer to the list of daughter process Pointer to a list of resources Management of created processes 3.How a memory management is done in RTOS? Memory Allocation Memory Management after Initial Allocation Fixed block allocation Dynamic block allocation Dynamic page allocation Dynamic data memory allocation Dynamic address relocation Multiprocessor memory allocation Memory protection to OS function Memory protection among the tasks

32 4.What the types used for task scheduling in RTOS? Co-operative Round Robin scheduling Cyclic Scheduling with Time slicing (Rate Monotonics Co-operative Scheduling) Preemptive Scheduling Model Strategy by a Scheduler Critical Section Service by a Preemptive Scheduler Fixed (Static) Real Time Scheduling of Tasks 5.What is shared data problem? Explain the steps to solve shared data problem. Problem of sharing data by multiple task and routines Shared data problem solutions Application of semaphore and shared data problem Elimination of shared data problem Priority inversion problem and deadlock situation

33 UNIT V REAL TIME OPERATING SYSTEMS PART-2 1. What are the queue-related functions for intertask communication? Explain. Creating a Queue for an IPC. Waiting for an IPC message at a queue. Emptying the queue and eliminating all the message pointers. Sending a message pointer to the queue. Sending a message pointer and inserting it at the queue front. Querying to find the message and error information for the queue ECB. 2. Explain about IPC functions. Creating a binary semaphore for the IPCs. Waiting for an IPC for binary semaphore. Sending an IPC after a binary semaphore release. Taking the semaphore multiple times. Creating a mutex semaphore for the IPCs. Creating a counting semaphore for the IPCs. Using POSIX semaphores. Creating a message queue for the message IPCs. Sending an IPC after a message is sent into the queue. Waiting in a queue for availability of message. 3. Explain the design of Automatic Chocolate Vending Machine (ACVM). Requirements. Specifications. Specification Modeling Using UML. ACVM Hardware Architecture. 4. Explain the hardware architecture of a digital camera with neat diagram. CPU. RAM. MUX and ADC. CCD Array. CCDP. Flash memory / ROM. USB port.

34 5. Explain the hardware architecture of an ACVM with neat diagram. State diagram for ACVM tasks. Block diagram of ACVM hardware including microcontroller.

DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6602- EMBEDDED SYSTEMS QUESTION BANK UNIT I - INTRODUCTION TO EMBEDDED SYSTEMS PART A

DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6602- EMBEDDED SYSTEMS QUESTION BANK UNIT I - INTRODUCTION TO EMBEDDED SYSTEMS PART A DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6602- EMBEDDED SYSTEMS QUESTION BANK UNIT I - INTRODUCTION TO EMBEDDED SYSTEMS PART A 1. Define system. A system is a way of working, organizing or

More information

MLR INSTITUTE OF TECHNOLOGY DUNDIGAL , HYDERABAD QUESTION BANK

MLR INSTITUTE OF TECHNOLOGY DUNDIGAL , HYDERABAD QUESTION BANK MLR INSTITUTE OF TECHNOLOGY DUNDIGAL - 500 043, HYDERABAD QUESTION BANK Course Name : EMBEDDED SYSTEMS Course Code : A57043 Class : IV B. Tech I Semester Branch : ECE Year : 2015 2016 Course Faculty :

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF ELECTRONICS AND INSTRUMENTATION ENGINEERING QUESTION BANK VI SEMESTER EE6602 EMBEDDED SYSTEMS Regulation 2013 Academic Year

More information

Part B Questions. Unit I

Part B Questions. Unit I Part B Questions Unit I 1. Explain the specification of Embedded system. Safety and Reliability Performance Power Consumption Cost Robustness Size Limited User Interface Software Upgradation Capability

More information

UNIT -3 PROCESS AND OPERATING SYSTEMS 2marks 1. Define Process? Process is a computational unit that processes on a CPU under the control of a scheduling kernel of an OS. It has a process structure, called

More information

Inter-Process Communication and Synchronization of Processes, Threads and Tasks: Lesson-3: Task and Task States

Inter-Process Communication and Synchronization of Processes, Threads and Tasks: Lesson-3: Task and Task States Inter-Process Communication and Synchronization of Processes, Threads and Tasks: Lesson-3: Task and Task States 1 Task Concepts 2 Task An application program can also be said to be a program consisting

More information

Short Term Courses (Including Project Work)

Short Term Courses (Including Project Work) Short Term Courses (Including Project Work) Courses: 1.) Microcontrollers and Embedded C Programming (8051, PIC & ARM, includes a project on Robotics) 2.) DSP (Code Composer Studio & MATLAB, includes Embedded

More information

Micrium µc/os II RTOS Introduction EE J. E. Lumpp

Micrium µc/os II RTOS Introduction EE J. E. Lumpp Micrium µc/os II RTOS Introduction (by Jean Labrosse) EE599 001 Fall 2012 J. E. Lumpp μc/os II μc/os II is a highly portable, ROMable, very scalable, preemptive real time, deterministic, multitasking kernel

More information

Embedded System Curriculum

Embedded System Curriculum Embedded System Curriculum ADVANCED C PROGRAMMING AND DATA STRUCTURE (Duration: 25 hrs) Introduction to 'C' Objectives of C, Applications of C, Relational and logical operators, Bit wise operators, The

More information

REAL TIME OPERATING SYSTEM PROGRAMMING-I: VxWorks

REAL TIME OPERATING SYSTEM PROGRAMMING-I: VxWorks REAL TIME OPERATING SYSTEM PROGRAMMING-I: I: µc/os-ii and VxWorks Lesson-1: RTOSes 1 1. Kernel of an RTOS 2 Kernel of an RTOS Used for real-time programming features to meet hard and soft real time constraints,

More information

Lesson 5: Software for embedding in System- Part 2

Lesson 5: Software for embedding in System- Part 2 Lesson 5: Software for embedding in System- Part 2 Device drivers, Device manager, OS, RTOS and Software tools 1 Outline Device drivers Device manager Multitasking using an operating system (OS) and Real

More information

Real-Time Programming

Real-Time Programming Real-Time Programming Week 7: Real-Time Operating Systems Instructors Tony Montiel & Ken Arnold rtp@hte.com 4/1/2003 Co Montiel 1 Objectives o Introduction to RTOS o Event Driven Systems o Synchronization

More information

2008 Chapter-8 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill, Inc.

2008 Chapter-8 L1: Embedded Systems - Architecture, Programming and Design, Raj Kamal, Publs.: McGraw-Hill, Inc. REAL TIME OPERATING SYSTEMS Lesson-1: OPERATING SYSTEM SERVICES GOAL, MODES AND STRUCTURE 1 1. OS Services Goal 2 Goal The OS Service Goal Perfection and correctness during a service 3 OS Services Goal

More information

Embedded Systems. 5. Operating Systems. Lothar Thiele. Computer Engineering and Networks Laboratory

Embedded Systems. 5. Operating Systems. Lothar Thiele. Computer Engineering and Networks Laboratory Embedded Systems 5. Operating Systems Lothar Thiele Computer Engineering and Networks Laboratory Embedded Operating Systems 5 2 Embedded Operating System (OS) Why an operating system (OS) at all? Same

More information

EMBEDDED SYSTEMS PART A UNIT-1

EMBEDDED SYSTEMS PART A UNIT-1 EMBEDDED SYSTEMS PART A UNIT-1 1. What is Embedded System? Give some applications and examples. 2. Differentiate RTOS and an ordinary OS. 3. What is Hard RTS and Soft RTS? 4. What are the categories of

More information

Lecture 3: Concurrency & Tasking

Lecture 3: Concurrency & Tasking Lecture 3: Concurrency & Tasking 1 Real time systems interact asynchronously with external entities and must cope with multiple threads of control and react to events - the executing programs need to share

More information

REAL TIME OPERATING SYSTEMS: A COMPLETE OVERVIEW

REAL TIME OPERATING SYSTEMS: A COMPLETE OVERVIEW REAL TIME OPERATING SYSTEMS: A COMPLETE OVERVIEW Mrinal Parikshit Chandane Former Assistant Professor, Dept. of E&TC, KJSCE, (India) ABSTRACT Telecommunication applications such as telephony, navigation

More information

What s An OS? Cyclic Executive. Interrupts. Advantages Simple implementation Low overhead Very predictable

What s An OS? Cyclic Executive. Interrupts. Advantages Simple implementation Low overhead Very predictable What s An OS? Provides environment for executing programs Process abstraction for multitasking/concurrency scheduling Hardware abstraction layer (device drivers) File systems Communication Do we need an

More information

Exam TI2720-C/TI2725-C Embedded Software

Exam TI2720-C/TI2725-C Embedded Software Exam TI2720-C/TI2725-C Embedded Software Wednesday April 16 2014 (18.30-21.30) Koen Langendoen In order to avoid misunderstanding on the syntactical correctness of code fragments in this examination, we

More information

Embedded Operating Systems. Unit I and Unit II

Embedded Operating Systems. Unit I and Unit II Embedded Operating Systems Unit I and Unit II Syllabus Unit I Operating System Concepts Real-Time Tasks and Types Types of Real-Time Systems Real-Time Operating Systems UNIT I Operating System Manager:

More information

Lecture notes Lectures 1 through 5 (up through lecture 5 slide 63) Book Chapters 1-4

Lecture notes Lectures 1 through 5 (up through lecture 5 slide 63) Book Chapters 1-4 EE445M Midterm Study Guide (Spring 2017) (updated February 25, 2017): Instructions: Open book and open notes. No calculators or any electronic devices (turn cell phones off). Please be sure that your answers

More information

Commercial Real-time Operating Systems An Introduction. Swaminathan Sivasubramanian Dependable Computing & Networking Laboratory

Commercial Real-time Operating Systems An Introduction. Swaminathan Sivasubramanian Dependable Computing & Networking Laboratory Commercial Real-time Operating Systems An Introduction Swaminathan Sivasubramanian Dependable Computing & Networking Laboratory swamis@iastate.edu Outline Introduction RTOS Issues and functionalities LynxOS

More information

Linux Driver and Embedded Developer

Linux Driver and Embedded Developer Linux Driver and Embedded Developer Course Highlights The flagship training program from Veda Solutions, successfully being conducted from the past 10 years A comprehensive expert level course covering

More information

Multiple Choice Questions. Chapter 5

Multiple Choice Questions. Chapter 5 Multiple Choice Questions Chapter 5 Each question has four choices. Choose most appropriate choice of the answer. 1. Developing program in high level language (i) facilitates portability of nonprocessor

More information

Mobile Operating Systems Lesson 01 Operating System

Mobile Operating Systems Lesson 01 Operating System Mobile Operating Systems Lesson 01 Operating System Oxford University Press 2007. All rights reserved. 1 Operating system (OS) The master control program Manages all software and hardware resources Controls,

More information

Reference Model and Scheduling Policies for Real-Time Systems

Reference Model and Scheduling Policies for Real-Time Systems ESG Seminar p.1/42 Reference Model and Scheduling Policies for Real-Time Systems Mayank Agarwal and Ankit Mathur Dept. of Computer Science and Engineering, Indian Institute of Technology Delhi ESG Seminar

More information

UNIT II PROCESSOR AND MEMORY ORGANIZATION

UNIT II PROCESSOR AND MEMORY ORGANIZATION UNIT II PROCESSOR AND MEMORY ORGANIZATION Structural units in a processor; selection of processor & memory devices; shared memory; DMA; interfacing processor, memory and I/O units; memory management Cache

More information

REAL-TIME MULTITASKING KERNEL FOR IBM-BASED MICROCOMPUTERS

REAL-TIME MULTITASKING KERNEL FOR IBM-BASED MICROCOMPUTERS Malaysian Journal of Computer Science, Vol. 9 No. 1, June 1996, pp. 12-17 REAL-TIME MULTITASKING KERNEL FOR IBM-BASED MICROCOMPUTERS Mohammed Samaka School of Computer Science Universiti Sains Malaysia

More information

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Embedded System Design Case Study-Part I Module No: CS/ES/39 Quadrant 1 e-text

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Embedded System Design Case Study-Part I Module No: CS/ES/39 Quadrant 1 e-text e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Embedded System Design Case Study-Part I Module No: CS/ES/39 Quadrant 1 e-text In this lecture, the design and the basic concepts

More information

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE) UNIT I OPERATING SYSTEMS

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE) UNIT I OPERATING SYSTEMS UNIT I OPERATING SYSTEMS 1. Write a short note about [6+6M] a) Time services b) Scheduling Mechanisms 2. a) Explain the overview of Threads and Tasks. [6M] b) Draw the structure of Micro kernel and explain

More information

Embedded Systems. 6. Real-Time Operating Systems

Embedded Systems. 6. Real-Time Operating Systems Embedded Systems 6. Real-Time Operating Systems Lothar Thiele 6-1 Contents of Course 1. Embedded Systems Introduction 2. Software Introduction 7. System Components 10. Models 3. Real-Time Models 4. Periodic/Aperiodic

More information

Dr. Rafiq Zakaria Campus. Maulana Azad College of Arts, Science & Commerce, Aurangabad. Department of Computer Science. Academic Year

Dr. Rafiq Zakaria Campus. Maulana Azad College of Arts, Science & Commerce, Aurangabad. Department of Computer Science. Academic Year Dr. Rafiq Zakaria Campus Maulana Azad College of Arts, Science & Commerce, Aurangabad Department of Computer Science Academic Year 2015-16 MCQs on Operating System Sem.-II 1.What is operating system? a)

More information

EMBEDDED SYSTEM BASICS AND APPLICATION

EMBEDDED SYSTEM BASICS AND APPLICATION EMBEDDED SYSTEM BASICS AND APPLICATION Dr.Syed Ajmal IIT- Robotics TOPICS TO BE DISCUSSED System Embedded System Components Classifications Processors Other Hardware Software Applications 2 INTRODUCTION

More information

Subject: Operating System (BTCOC403) Class: S.Y.B.Tech. (Computer Engineering)

Subject: Operating System (BTCOC403) Class: S.Y.B.Tech. (Computer Engineering) A. Multiple Choice Questions (60 questions) Subject: Operating System (BTCOC403) Class: S.Y.B.Tech. (Computer Engineering) Unit-I 1. What is operating system? a) collection of programs that manages hardware

More information

Nios II. uc/os-ii porting with Nios II Altera Corporation

Nios II. uc/os-ii porting with Nios II Altera Corporation Nios II uc/os-ii porting with Nios II 2002 2 µc/os-ii Main Features Portable (Most 8, 16, 32 and 64 bit CPUs) ROMable Scalable Preemptive Real-Time Deterministic High Performance Multitasking Robust Provides

More information

DSP/BIOS Kernel Scalable, Real-Time Kernel TM. for TMS320 DSPs. Product Bulletin

DSP/BIOS Kernel Scalable, Real-Time Kernel TM. for TMS320 DSPs. Product Bulletin Product Bulletin TM DSP/BIOS Kernel Scalable, Real-Time Kernel TM for TMS320 DSPs Key Features: Fast, deterministic real-time kernel Scalable to very small footprint Tight integration with Code Composer

More information

Introduction to Real-Time Operating Systems

Introduction to Real-Time Operating Systems Introduction to Real-Time Operating Systems GPOS vs RTOS General purpose operating systems Real-time operating systems GPOS vs RTOS: Similarities Multitasking Resource management OS services to applications

More information

Embedded Systems: OS

Embedded Systems: OS Embedded Systems: OS Jinkyu Jeong (Jinkyu@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu ICE3028: Embedded Systems Design, Fall 2018, Jinkyu Jeong (jinkyu@skku.edu) Standalone

More information

Module 1. Introduction:

Module 1. Introduction: Module 1 Introduction: Operating system is the most fundamental of all the system programs. It is a layer of software on top of the hardware which constitutes the system and manages all parts of the system.

More information

Zilog Real-Time Kernel

Zilog Real-Time Kernel An Company Configurable Compilation RZK allows you to specify system parameters at compile time. For example, the number of objects, such as threads and semaphores required, are specez80acclaim! Family

More information

Embedded Systems: OS. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Embedded Systems: OS. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University Embedded Systems: OS Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Standalone Applications Often no OS involved One large loop Microcontroller-based

More information

Real-Time Systems Hermann Härtig Real-Time Operating Systems Brief Overview

Real-Time Systems Hermann Härtig Real-Time Operating Systems Brief Overview Real-Time Systems Hermann Härtig Real-Time Operating Systems Brief Overview 02/02/12 Outline Introduction Basic variants of RTOSes Real-Time paradigms Common requirements for all RTOSes High level resources

More information

UNIT IV I/O PROGRAMMING AND SCHEDULE MECHANISM

UNIT IV I/O PROGRAMMING AND SCHEDULE MECHANISM UNIT IV I/O PROGRAMMING AND SCHEDULE MECHANISM Intel I/O instruction Transfer rate, latency; interrupt driven I/O - Non-maskable interrupts; software interrupts, writing interrupt service routine in C

More information

CSC Operating Systems Spring Lecture - XII Midterm Review. Tevfik Ko!ar. Louisiana State University. March 4 th, 2008.

CSC Operating Systems Spring Lecture - XII Midterm Review. Tevfik Ko!ar. Louisiana State University. March 4 th, 2008. CSC 4103 - Operating Systems Spring 2008 Lecture - XII Midterm Review Tevfik Ko!ar Louisiana State University March 4 th, 2008 1 I/O Structure After I/O starts, control returns to user program only upon

More information

Techno India Batanagar Department of Computer Science & Engineering. Model Questions. Multiple Choice Questions:

Techno India Batanagar Department of Computer Science & Engineering. Model Questions. Multiple Choice Questions: Techno India Batanagar Department of Computer Science & Engineering Model Questions Subject Name: Operating System Multiple Choice Questions: Subject Code: CS603 1) Shell is the exclusive feature of a)

More information

Chapter 13: I/O Systems

Chapter 13: I/O Systems Chapter 13: I/O Systems Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Streams Performance 13.2 Silberschatz, Galvin

More information

DE5 Thursday, September 09, 2010

DE5 Thursday, September 09, 2010 Real-time Embedded System Programming g Course Teacher: D. M. Akbar Hussain DE5-2010 Lessen # 1 1 Course Book is Required? Course: The course material is prepared from the following books & Internet Resources

More information

Tasks. Task Implementation and management

Tasks. Task Implementation and management Tasks Task Implementation and management Tasks Vocab Absolute time - real world time Relative time - time referenced to some event Interval - any slice of time characterized by start & end times Duration

More information

The control of I/O devices is a major concern for OS designers

The control of I/O devices is a major concern for OS designers Lecture Overview I/O devices I/O hardware Interrupts Direct memory access Device dimensions Device drivers Kernel I/O subsystem Operating Systems - June 26, 2001 I/O Device Issues The control of I/O devices

More information

3.1 Introduction. Computers perform operations concurrently

3.1 Introduction. Computers perform operations concurrently PROCESS CONCEPTS 1 3.1 Introduction Computers perform operations concurrently For example, compiling a program, sending a file to a printer, rendering a Web page, playing music and receiving e-mail Processes

More information

Overview of Microcontroller and Embedded Systems

Overview of Microcontroller and Embedded Systems UNIT-III Overview of Microcontroller and Embedded Systems Embedded Hardware and Various Building Blocks: The basic hardware components of an embedded system shown in a block diagram in below figure. These

More information

Systemy RT i embedded Wykład 11 Systemy RTOS

Systemy RT i embedded Wykład 11 Systemy RTOS Systemy RT i embedded Wykład 11 Systemy RTOS Wrocław 2013 Plan Introduction Tasks Queues Interrupts Resources Memory management Multiprocessor operation Introduction What s an Operating System? Provides

More information

CSE 4/521 Introduction to Operating Systems. Lecture 29 Windows 7 (History, Design Principles, System Components, Programmer Interface) Summer 2018

CSE 4/521 Introduction to Operating Systems. Lecture 29 Windows 7 (History, Design Principles, System Components, Programmer Interface) Summer 2018 CSE 4/521 Introduction to Operating Systems Lecture 29 Windows 7 (History, Design Principles, System Components, Programmer Interface) Summer 2018 Overview Objective: To explore the principles upon which

More information

(MCQZ-CS604 Operating Systems)

(MCQZ-CS604 Operating Systems) command to resume the execution of a suspended job in the foreground fg (Page 68) bg jobs kill commands in Linux is used to copy file is cp (Page 30) mv mkdir The process id returned to the child process

More information

Lab 8 Real-time OS - 1

Lab 8 Real-time OS - 1 Lab 8-1 Speaker: Hao-Yun Chin Advisor: Prof. Tian-Sheuan Chang Apr 27, 2004 Outline Introduction to Real-time Operation System (RTOS) Introduction to C/OS-II Features Task & task scheduling Start C/OS-II

More information

ABSTRACT 1 (59) Synchronised Simulation of a Distributed Real Time System Dok Nr 1 Datum Säk.klass. Examensarbetare Anders Möller.

ABSTRACT 1 (59) Synchronised Simulation of a Distributed Real Time System Dok Nr 1 Datum Säk.klass. Examensarbetare Anders Möller. ABSTRACT CC Systems AB is a company developing control systems for many different applications. An important issue when developing new systems or improving existing ones is the ability to simulate the

More information

6/20/2018. Lecture 2: Platforms & RTOS. Outline. Lab Setup (20 min) Labs work. Lecture: Platform + RTOS

6/20/2018. Lecture 2: Platforms & RTOS. Outline. Lab Setup (20 min) Labs work. Lecture: Platform + RTOS Lecture 2: Platforms & RTOS 1 Outline Lab Setup (20 min) Labs work Workbench + vxworks Documentations (15 min) Project Management (25 min) Host Shell (25 min) Lecture: Platform + RTOS 2 1 3 Microcomputer

More information

Lecture 4: Real Time Semaphores

Lecture 4: Real Time Semaphores Lecture 4: Real Time Semaphores 1 Lab work (20 min) Configuring VxWorks Kernel VxWorks Hostshell 09/19/2015 Quiz Solution (10) Quiz (15) Lecture Synchronization and Semaphores (45) Lab exercise Binary

More information

Microcontroller basics

Microcontroller basics FYS3240 PC-based instrumentation and microcontrollers Microcontroller basics Spring 2017 Lecture #4 Bekkeng, 30.01.2017 Lab: AVR Studio Microcontrollers can be programmed using Assembly or C language In

More information

CMPE401 Computer Interfacing

CMPE401 Computer Interfacing CMPE401 Computer Interfacing MIDTERM EXAMINATION October 24, 2007 Name: ID: 5 questions. 50 minutes. Allowed material: Course notes A 68000 Programming Reference Card Calculators Model solutions of midterms,

More information

INTERRUPT MANAGEMENT An interrupt is a hardware mechanism used to service an event that can be external or internal to

INTERRUPT MANAGEMENT An interrupt is a hardware mechanism used to service an event that can be external or internal to CHAPTER 2 ucosiii Page 1 ENGG4420 CHAPTER 2 LECTURE 5 October 22 12 3:28 PM INTERRUPT MANAGEMENT An interrupt is a hardware mechanism used to service an event that can be external or internal to the CPU.

More information

Operating Systems. Computer Science & Information Technology (CS) Rank under AIR 100

Operating Systems. Computer Science & Information Technology (CS) Rank under AIR 100 GATE- 2016-17 Postal Correspondence 1 Operating Systems Computer Science & Information Technology (CS) 20 Rank under AIR 100 Postal Correspondence Examination Oriented Theory, Practice Set Key concepts,

More information

In Class Assignment 2

In Class Assignment 2 In Class Assignment 2 Name: UMBC ID: Academic Integrity Statement: "Integrity of scholarship is essential for an academic community. The University expects that students will honor this. By signing this,

More information

B. V. Patel Institute of Business Management, Computer &Information Technology, UTU

B. V. Patel Institute of Business Management, Computer &Information Technology, UTU BCA-3 rd Semester 030010304-Fundamentals Of Operating Systems Unit: 1 Introduction Short Answer Questions : 1. State two ways of process communication. 2. State any two uses of operating system according

More information

Operating Systems Overview. Chapter 2

Operating Systems Overview. Chapter 2 Operating Systems Overview Chapter 2 Operating System A program that controls the execution of application programs An interface between the user and hardware Masks the details of the hardware Layers and

More information

SMD149 - Operating Systems

SMD149 - Operating Systems SMD149 - Operating Systems Roland Parviainen November 3, 2005 1 / 45 Outline Overview 2 / 45 Process (tasks) are necessary for concurrency Instance of a program in execution Next invocation of the program

More information

GLOSSARY. VisualDSP++ Kernel (VDK) User s Guide B-1

GLOSSARY. VisualDSP++ Kernel (VDK) User s Guide B-1 B GLOSSARY Application Programming Interface (API) A library of C/C++ functions and assembly macros that define VDK services. These services are essential for kernel-based application programs. The services

More information

Real-Time Systems. Real-Time Operating Systems

Real-Time Systems. Real-Time Operating Systems Real-Time Systems Real-Time Operating Systems Hermann Härtig WS 2018/19 Outline Introduction Basic variants of RTOSes Real-Time paradigms Common requirements for all RTOSes High level resources Non-Real-Time

More information

Software Development & Education Center

Software Development & Education Center Software Development & Education Center Embedded Linux & RTOS With ARM 9 µc Embedded Linux and RTOS with ARM9 µc Introduction The course is designed for those who want to pursue Linux based Embedded Systems.

More information

LINUX INTERNALS & NETWORKING Weekend Workshop

LINUX INTERNALS & NETWORKING Weekend Workshop Here to take you beyond LINUX INTERNALS & NETWORKING Weekend Workshop Linux Internals & Networking Weekend workshop Objectives: To get you started with writing system programs in Linux Build deeper view

More information

Mid Term from Feb-2005 to Nov 2012 CS604- Operating System

Mid Term from Feb-2005 to Nov 2012 CS604- Operating System Mid Term from Feb-2005 to Nov 2012 CS604- Operating System Latest Solved from Mid term Papers Resource Person Hina 1-The problem with priority scheduling algorithm is. Deadlock Starvation (Page# 84) Aging

More information

Chapter 19: Real-Time Systems. Operating System Concepts 8 th Edition,

Chapter 19: Real-Time Systems. Operating System Concepts 8 th Edition, Chapter 19: Real-Time Systems, Silberschatz, Galvin and Gagne 2009 Chapter 19: Real-Time Systems System Characteristics Features of Real-Time Systems Implementing Real-Time Operating Systems Real-Time

More information

Operating System. Operating System Overview. Layers of Computer System. Operating System Objectives. Services Provided by the Operating System

Operating System. Operating System Overview. Layers of Computer System. Operating System Objectives. Services Provided by the Operating System Operating System Operating System Overview Chapter 2 A program that controls the execution of application programs An interface between applications and hardware 1 2 Operating System Objectives Layers

More information

Operating System Overview. Operating System

Operating System Overview. Operating System Operating System Overview Chapter 2 1 Operating System A program that controls the execution of application programs An interface between applications and hardware 2 1 Operating System Objectives Convenience

More information

Module 11: I/O Systems

Module 11: I/O Systems Module 11: I/O Systems Reading: Chapter 13 Objectives Explore the structure of the operating system s I/O subsystem. Discuss the principles of I/O hardware and its complexity. Provide details on the performance

More information

Operating Systems Design Fall 2010 Exam 1 Review. Paul Krzyzanowski

Operating Systems Design Fall 2010 Exam 1 Review. Paul Krzyzanowski Operating Systems Design Fall 2010 Exam 1 Review Paul Krzyzanowski pxk@cs.rutgers.edu 1 Question 1 To a programmer, a system call looks just like a function call. Explain the difference in the underlying

More information

Module 12: I/O Systems

Module 12: I/O Systems Module 12: I/O Systems I/O hardwared Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Performance 12.1 I/O Hardware Incredible variety of I/O devices Common

More information

Process Monitoring in Operating System Linux

Process Monitoring in Operating System Linux Process Monitoring in Operating System Linux ZDENEK SLANINA, VILEM SROVNAL Department of Measurement and Control VSB Technical University of Ostrava 17. listopadu 15, 708 33 Ostrava-Poruba CZECH REPUBLIC

More information

EC EMBEDDED AND REAL TIME SYSTEMS

EC EMBEDDED AND REAL TIME SYSTEMS EC6703 - EMBEDDED AND REAL TIME SYSTEMS Unit I -I INTRODUCTION TO EMBEDDED COMPUTING Part-A (2 Marks) 1. What is an embedded system? An embedded system employs a combination of hardware & software (a computational

More information

Using the FreeRTOS Real Time Kernel

Using the FreeRTOS Real Time Kernel Using the FreeRTOS Real Time Kernel NXP LPC17xx Edition Richard Barry iii Contents List of Figures... vi List of Code Listings... viii List of Tables... xi List of Notation... xii Preface FreeRTOS and

More information

Faculty of Electrical Engineering, Mathematics, and Computer Science Delft University of Technology

Faculty of Electrical Engineering, Mathematics, and Computer Science Delft University of Technology Faculty of Electrical Engineering, Mathematics, and Computer Science Delft University of Technology exam Embedded Software TI2726-B January 28, 2019 13.30-15.00 This exam (6 pages) consists of 60 True/False

More information

Chapter 3: Process Concept

Chapter 3: Process Concept Chapter 3: Process Concept Chapter 3: Process Concept Process Concept Process Scheduling Operations on Processes Inter-Process Communication (IPC) Communication in Client-Server Systems Objectives 3.2

More information

Chapter 3: Process Concept

Chapter 3: Process Concept Chapter 3: Process Concept Chapter 3: Process Concept Process Concept Process Scheduling Operations on Processes Inter-Process Communication (IPC) Communication in Client-Server Systems Objectives 3.2

More information

Process. Program Vs. process. During execution, the process may be in one of the following states

Process. Program Vs. process. During execution, the process may be in one of the following states What is a process? What is process scheduling? What are the common operations on processes? How to conduct process-level communication? How to conduct client-server communication? Process is a program

More information

RTOS Real T i Time me Operating System System Concepts Part 2

RTOS Real T i Time me Operating System System Concepts Part 2 RTOS Real Time Operating System Concepts Part 2 Real time System Pitfalls - 4: The Ariane 5 satelite launch rocket Rocket self destructed in 4 June -1996. Exactly after 40 second of lift off at an attitude

More information

Concurrent Programming. Implementation Alternatives. Content. Real-Time Systems, Lecture 2. Historical Implementation Alternatives.

Concurrent Programming. Implementation Alternatives. Content. Real-Time Systems, Lecture 2. Historical Implementation Alternatives. Content Concurrent Programming Real-Time Systems, Lecture 2 [Real-Time Control System: Chapter 3] 1. Implementation Alternatives Martina Maggio 19 January 2017 Lund University, Department of Automatic

More information

Putting it All Together

Putting it All Together EE445M/EE360L.12 Embedded and Real-Time Systems/ Real-Time Operating Systems : Commercial RTOS, Final Exam, Review 1 Putting it All Together Micrium μcos-ii Reference: www.micrium.com Application Note

More information

Concurrent Programming

Concurrent Programming Concurrent Programming Real-Time Systems, Lecture 2 Martina Maggio 19 January 2017 Lund University, Department of Automatic Control www.control.lth.se/course/frtn01 Content [Real-Time Control System: Chapter

More information

Module 8. Industrial Embedded and Communication Systems. Version 2 EE IIT, Kharagpur 1

Module 8. Industrial Embedded and Communication Systems. Version 2 EE IIT, Kharagpur 1 Module 8 Industrial Embedded and Communication Systems Version 2 EE IIT, Kharagpur 1 Lesson 37 Real-Time Operating Systems: Introduction and Process Management Version 2 EE IIT, Kharagpur 2 Instructional

More information

CHAPTER 3 - PROCESS CONCEPT

CHAPTER 3 - PROCESS CONCEPT CHAPTER 3 - PROCESS CONCEPT 1 OBJECTIVES Introduce a process a program in execution basis of all computation Describe features of processes: scheduling, creation, termination, communication Explore interprocess

More information

Chapter 13: I/O Systems

Chapter 13: I/O Systems COP 4610: Introduction to Operating Systems (Spring 2015) Chapter 13: I/O Systems Zhi Wang Florida State University Content I/O hardware Application I/O interface Kernel I/O subsystem I/O performance Objectives

More information

The Real Time Thing. What the hack is real time and what to do with it. 22C3 30. December Erwin Erkinger e.at

The Real Time Thing. What the hack is real time and what to do with it. 22C3 30. December Erwin Erkinger e.at The Real Time Thing What the hack is real time and what to do with it 22C3 30. December 2005 Erwin Erkinger vindaome@p e.at Content Part 1: Introduction the vocabulary and the concepts Part 2: Practical

More information

The components in the middle are core and the components on the outside are optional.

The components in the middle are core and the components on the outside are optional. CHAPTER 2 ucosiii Page 1 ENGG4420 CHAPTER 3 LECTURE 8 October 31 12 9:43 AM MQX BASICS MQX Real Time Operating System has been designed for uni processor, multi processor, and distributedprocessor embedded

More information

Chapter 3: Process Concept

Chapter 3: Process Concept Chapter 3: Process Concept Silberschatz, Galvin and Gagne 2013! Chapter 3: Process Concept Process Concept" Process Scheduling" Operations on Processes" Inter-Process Communication (IPC)" Communication

More information

Embedded Systems UNIT 3

Embedded Systems UNIT 3 UNIT 3 UNIT- III Overview of Microcontroller and Embedded hardware and various building blocks, Processor Selection for an Embedded System, Interfacing Processor, Memories and I/O Devices, I/O Devices

More information

Real-Time Operating Systems (Working Draft) What is an Operating System (OS)?

Real-Time Operating Systems (Working Draft) What is an Operating System (OS)? Real-Time Operating Systems (Working Draft) Originally Prepared by Sebastian Fischemeister Modified by Insup Lee CIS 541, Spring 2010 What is an Operating System (OS)? A program that acts as an intermediary

More information

Module 12: I/O Systems

Module 12: I/O Systems Module 12: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Performance Operating System Concepts 12.1 Silberschatz and Galvin c

More information

M.C.A. DEGREE EXAMINATION, DEC First Year. Time : 03 Hours Maximum Marks : 75

M.C.A. DEGREE EXAMINATION, DEC First Year. Time : 03 Hours Maximum Marks : 75 (DMCA 101) M.C.A. DEGREE EXAMINATION, DEC. - 2012 First Year Paper - I : INFORMATION TECHNOLOGY Time : 03 Hours Maximum Marks : 75 Section - A Answer any Three of the following (3 15 = 45) 1) Define the

More information

Main Points of the Computer Organization and System Software Module

Main Points of the Computer Organization and System Software Module Main Points of the Computer Organization and System Software Module You can find below the topics we have covered during the COSS module. Reading the relevant parts of the textbooks is essential for a

More information

CHAPTER 3 LabVIEW REAL TIME APPLICATION DEVELOPMENT REFERENCES: [1] NI, Real Time LabVIEW. [2] R. Bishop, LabVIEW 2009.

CHAPTER 3 LabVIEW REAL TIME APPLICATION DEVELOPMENT REFERENCES: [1] NI, Real Time LabVIEW. [2] R. Bishop, LabVIEW 2009. CHAPTER 3 By Radu Muresan University of Guelph Page 1 ENGG4420 CHAPTER 3 LECTURE 1 October 31 10 5:12 PM CHAPTER 3 LabVIEW REAL TIME APPLICATION DEVELOPMENT REFERENCES: [1] NI, Real Time LabVIEW. [2] R.

More information