


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Instructions Answer any THREE questions. Note: Question 1 = 34 marks All other questions = 33 marks
Examiners: Dr. J. Creagh Dr. B. Wu Dr. J. F. Power
Q1. (a) (i) Dynamic memory Garbage Collection is problematic for real-time system development. Discuss. (4 marks)
(ii) Describe the Mark and Sweep Garbage Collection algorithm, giving a clear example. (7 marks)
(iii) Compare the Incremental Garbage Collection algorithm with the Mark and Sweep Garbage Collection algorithm for real-time systems. (4 marks)
(b) What are the advantages and disadvantages of buying a commercial RTOS compared to building your own kernel? (7 marks)
(c) List the key aspects of coroutine implementation on the 80x86 processor. Clearly explain each point you make. (12 marks)
Q2. (a) Briefly outline and explain the principal characteristics of a real-time system. (7 marks)
(b) An embedded designer decides not to select a processor with the following functionality: MMU, virtual memory/paging, caching. Some processors allow such functions to be disabled. For each item, give a set of reasons why a designer would make such a decision, and justify your answers. (10 marks)
(c) (i) Describe the following pseudo-kernel system: A pseudo-kernel is a cyclic executive, mixed with polled loop and phase- driven or state driven code. Example required. (11 marks)
(ii) List and justify the advantages of such a scheme described in section (c) (i) above for real-time systems. (5 marks)
Q3. (a) What is POSIX and indicate its benefits for real-time system development? (6 marks) (b) (i) Consider the following process set: Process T D Execution Sequence Release Time P 4 60 21 QVVE 4 P 3 50 24 EEVVE 3 P 2 40 15 EQQVVE 5 P 1 30 27 EEVVVQEE 0
Draw the ICPP time line diagram for the process set above. Note: E = Execution for a clock period. Q = Execution with resource Q for a clock period. V = Execution with resource V for a clock period. (9 marks)
(ii) Clearly explain the effect of blocking with the ICPP protocol (mathematical formula required). Why is ICPP beneficial for real-time programming? Justify. (6 marks)
Q5. (a) (i) Consider the network technologies FDDI, ATM, Ethernet and CAN. Which network technology would you select for the following distributed real- time systems? (1) A truck system (2) A chemical production system Clearly justify your selection. (4 marks)
(ii) What is the principal additional communication management capability of CAN in relation to standard mainstream network technologies? Justify the benefits provided. (6 marks)
(b) (i) With examples, explain how the RT-CORBA platform-independent mechanism for managing priorities works? (6 marks)
(ii) The SERVER_DECLARED and CLIENT_PROPAGATED priority models may be used by applications. Describe these models, diagrams required. Justify why each model is required. (12 marks)
(iii) RT-CORBA provides standard synchronisers as a locking mechanism. Explain the use of these synchronisers, giving an example. (5 marks)