BITS WILP Real Time Systems Handout 2018-H1



BIRLA INSTITUTE OF TECHNOLOGY & SCIENCE, PILANI
WORK INTEGRATED LEARNING PROGRAMMES
Digital
Part A: Content Design
Course Title
Real Time Systems
Course No(s)
BITS ZG553/ ES ZG553/MEL ZG553
Credit Units
5
Credit Model

Content Authors
Shubhangi Gawali

Course Objectives
No

CO1
To introduce the issues and challenges in developing software for Real Time / embedded systems
CO2
To introduce Real Time Scheduling in uni-processing, multi-processing and distributed RTS
CO3
Introduce both theoretical and practical aspects of Real Time Operating Systems (RTOS) to the students.

Text Book(s)
T1
Liu, Jane W.S., Real Time Systems, Pearson Education, 2000

Reference Book(s) & other resources
R1
C.M.Krishna, K.G.Shin, Real Time Systems, McGraw Hill Education,2010
R2
Phillip.A.Laplante, S.J.Ovaska, Real Time System Design and Analysis, 4th edition,2012*

R3
Shaw, Real-Time Systems and Software, John Wiley & Sons Inc., 2001. ISBN 0-471-35490-2*

R4
H. Kopetz, "Real-time Systems,"  Design Principles for Distributed Embedded Applications 2nd edition, Springer, 2011*
R5
Sivamurthy, G. Manimaran, Resource Management in Real-Time Systems and Networks ,PHI, New Delhi,2005
R6
Relevant Journal and Conference Papers

* Available as kindle edition which is considerably cheaper than the printed version

Content Structure
       1.            Fundamentals of Real-Time Systems
                         1.1.            Typical Real-Time Systems
                                            1.1.1.            Definitions
                                            1.1.2.            Examples of Real-Time Systems
                         1.2.            Hard vs Soft Real-Time Systems
                                            1.2.1.            Jobs and Processors
                                            1.2.2.            Timing Constraints
                                            1.2.3.            Hard and Soft Real-Time Systems
       2.            A Reference Model of Real-Time Systems
                         2.1.            Processors and Resources
                         2.2.            Temporal Parameters of Real-Time Workload
                         2.3.            Periodic Task Model
                         2.4.            Precedence Constraints and Data dependency
                         2.5.            Functional Parameters
                         2.6.            Resource Parameters
                         2.7.            Feasibility, Optimality and Performance Measures
       3.            Commonly Used Approaches to Real-Time Scheduling
                         3.1.            Clock-Driven Approach
                         3.2.            Round-robin and Weighted Round-robin Approaches
                         3.3.            Priority-Driven Approach
                         3.4.            Effective Release Times and Deadlines
                         3.5.            Off-line vs On-line Scheduling
                         3.6.            Different Scheduling Algorithms
                                            3.6.1.            EDF (Earliest Deadline First) Algorithm
                                            3.6.2.            LRT (Latest Release Time) Algorithm
                                            3.6.3.            LST (Least-Slack-Time-First) Algorithm
       4.            Clock Driven Scheduling
                         4.1.            Static Timer Driven Scheduler
                         4.2.            General Structure of Cyclic Schedules
                         4.3.            Cyclic Executives
                         4.4.            Scheduling Aperiodic Jobs
                         4.5.            Scheduling Sporadic Jobs
                         4.6.            Practical Considerations
                         4.7.            Pros and Cons of Clock-Driven Scheduling
       5.            Priority-Driven Scheduling of Periodic Tasks
                         5.1.            Fixed-Priority vs Dynamic-Priority Algorithms
                         5.2.            Well-known Fixed-priority Scheduling Algorithms
                                            5.2.1.            RM (Rate-Monotonic) Algorithm
                                            5.2.2.            DM (Deadline-Monotonic) Algorithm
                         5.3.            Well-known Dynamic-priority Scheduling Algorithms
                                            5.3.1.            EDF (Earliest Deadline First) Algorithm
                                            5.3.2.            LST (Least-Slack-Time-First) Algorithm
                         5.4.            Maximum Schedulable Utilization of Different Scheduling Algorithms
                         5.5.            Time Demand Analysis for Fixed Priority Systems
       6.            Scheduling Aperiodic and Sporadic Jobs in Priority-Driven Systems
                         6.1.            Assumptions and Approaches
                         6.2.            Deferrable Servers
                         6.3.            Scheduling of Sporadic Jobs
       7.            Resource and Resource Access Control
                         7.1.            Resource and Their Usage
                         7.2.            Effect of Resource Contention and Resource Access Control
                         7.3.            Basic Priority Inheritance Protocol
                         7.4.            Basic Priority Ceiling Protocol
       8.            Hardware Considerations in Real-Time Systems
                         8.1.            CPU
                         8.2.            Memory
                         8.3.            Peripheral Devices
       9.            Multi-Processing  & Distributed Real Time Systems
                         9.1.            Priority-driven Preemptive Scheduling, Static Table-Driven Scheduling, Dynamic Plan-based Scheduling, Integrated Scheduling of Hard and QoS - Degradable Tasks, Real-Time Scheduling with Feedback Control
                         9.2.            Resource reclaiming in Multi-Processor RTS
                               9.3.      Scheduler Model, Properties of Resource Re-claiming algorithms, Task Model, Resource reclaiming algorithms
                               9.4.      Fault-Tolerant task Scheduling in Multiprocessor RTS - Fault Classification, Fault Tolerance in RTS, Fault-Tolerant Scheduling Algorithms for Multi-Processor Systems, Scheduling of Real-Time Imprecise Computations
                               9.5.      Resource Management in Distributed RTS- Scheduling in Distributed RTS, Global Scheduling, an Integrated Approach to Distributed Real time Scheduling.
         10.         Real Time Operating Systems
                            10.1.      Pseudokernels to Operating Systems
                            10.2.      Process States
                            10.3.      Inter-task communication and synchronization
                            10.4.      Memory Management
                            10.5.      Storage & File Systems


Learning Outcomes:

No
Learning Outcomes
LO1
Ability to Design and Analyze Scheduling Algorithms for Single Processor Embedded Real Time Systems
LO2
Ability to Design and Analyze Scheduling Algorithms for Single Processor Embedded Real Time Systems
LO3
Ability to design , build Real Rime Embedded Systems
LO4
knowledge about both theoretical and practical aspects of Real Time Operating Systems (RTOS).


Part B: Learning Plan

Academic Term
Second  Semester 2017-2018
Course Title
Real Time Systems
Course No
BITS ZG553 / ES ZG553 / MEL ZG553
Lead Instructor
Shubhangi Gawali

Contact Hour 1 & 2
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
1
Typical Real-Time Systems, Dependability, Fault Tolerance, Hard Vs Soft Real Time Systems
T1 Ch1, T2 Ch1, T1 Ch 2
Post CH







Contact Hour 2 & 3
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
2
A Reference Model of Real-Time Systems
·         Processors and Resources
·         Temporal Parameters of Real-Time Workload
·         Periodic Task Model
·         Precedence Constraints and Data dependency
·         Functional Parameters
·         Resource Parameters
·         Feasibility, Optimality and Performance Measures
T1 Ch 3
Post CH




Contact Hour 5 , 6
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
3.1 – 3.4
Scheduling Algorithms – An Introduction, Commonly used Scheduling Algorithms
·         Clock-Driven Approach
·         Round-robin and Weighted Round-robin Approaches
·         Priority-Driven Approach
·         Effective Release Times and Deadlines
T1 Ch 4
Post CH





Contact Hour 7
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
3.5 - 3.6
Commonly Used Approaches to Real-Time Scheduling
·         Off-line vs On-line Scheduling
·         Different Scheduling Algorithms
o   EDF Algorithm
o   LRT Algorithm
o   LST Algorithm
T1 Ch 4
Post CH




Contact Hour 8

Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
4.1 - 4.2
Clock Driven Scheduling
·         Static Timer Driven Scheduler
·         General Structure of Cyclic Schedules
·         Cyclic Executives
T1 Ch 5
Post CH





Contact Hour 9 & 10
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
4.4 - 4.7
Clock Driven Scheduling
·         Scheduling Aperiodic Jobs
·         Scheduling Sporadic Jobs
·         Practical Considerations
·         Pros and Cons of Clock-Driven Scheduling
T1 Ch 5
Post CH




Contact Hour 12 & 13
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
5.1 - 5.3
Priority-Driven Scheduling of Periodic Tasks
·         Fixed-Priority vs Dynamic-Priority Algorithms
·         Well-known Fixed-priority Scheduling Algorithms
o   RM (Rate-Monotonic) Algorithm
o   DM (Deadline-Monotonic) Algorithm
·         Well-known Dynamic-priority Scheduling Algorithms
o   EDF (Earliest Deadline First) Algorithm
o   LST (Least-Slack-Time-First) Algorithm
T1 Ch 6
Post CH





Contact Hour 14
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
5.4
Priority-Driven Scheduling of Periodic Tasks
·         Maximum Schedulable Utilization of Different Scheduling Algorithms
T1 Ch 6
Post CH




Contact Hour 15
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
5.5
Priority-Driven Scheduling of Periodic Tasks
·         Time Demand Analysis for Fixed Priority Systems
T1 Ch 6
Post CH




Contact Hour 16
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
6.1 – 6.2
Scheduling Aperiodic and Sporadic Jobs in Priority-Driven Systems
·         Assumptions and Approaches
·         Deferrable Servers
T1 Ch 7
Post CH




Contact Hour 17 & 18
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
6.2
Scheduling Aperiodic and Sporadic Jobs in Priority-Driven Systems
·         Deferrable Servers
T1 Ch 7
Post CH




Contact Hour 19 & 20
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
6.3
Scheduling Aperiodic and Sporadic Jobs in Priority-Driven Systems
·         Scheduling of Sporadic Jobs
T1 Ch 7
Post CH




Contact Hour 21
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
7.1-7.2
Resource and Resource Access Control
·         Resource and Their Usage
·         Effect of Resource Contention and Resource Access Control
T1 Ch 8
Post CH




Contact Hour 22
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
7.3
Resource and Resource Access Control
·         Basic Priority Inheritance Protocol
T1 Ch 8
Post CH




Contact Hour 23
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
7.4
Resource and Resource Access Control
·         Basic Priority Ceiling Protocol
T1 Ch 8
Post CH




Contact Hour 24
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
8.2 - 8.3
Hardware Considerations in Real-Time Systems
·         CPU
·         Memory
·         Peripheral Devices
Lecture Notes
Post CH




Contact Hour 25 - 27
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
9
Scheduling in Multi- Processing Systems
Papers to be provided
Post CH




Contact Hour 28 & 29
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
9
Scheduling in Distributed Systems
Papers to be provided
Post CH




Contact Hour 30 - 32
Type
Content Ref.
Topic Title
Study/HW Resource Reference
Pre CH



During CH
10
Real-Time Operating Systems

·         Kernels
·         Memory Management
·         Storage & File System
Lecture Notes
Post CH






Detailed Plan for Lab work/Design work
Lab No
Lab Objective
Lab Sheet Access URL
Content Reference
1
Introduction to Cheddar Simulation Environment
Lab Session 1 to 3 in Lab sheet

3
Example RTOS : Hands-on Exercises with Keil ARM RTX
Lab Session 5 to 6 in the Lab Sheet



Evaluation Scheme:  
Legend: EC = Evaluation Component; AN = After Noon Session; FN = Fore Noon Session
No
Name
Type
Duration
Weight
Day, Date, Session, Time
EC-1
Assignment
Online
-
10%
February 1 to 10, 2018

Assignment
Online

10%
March 20-30, 2018
EC-2
Mid-Semester Test
Closed Book
2 hours
30%
03/03/2018 (AN) 2 PM TO 4 PM
EC-3
Comprehensive Exam
Open Book
3 hours
50%
21/04/2018 (AN) 2 PM TO 5 PM


Note: If Assignment kindly remove Quiz-I, II, III
Syllabus for Mid-Semester Test (Closed Book): Topics in Session Nos.  1 to 16
Syllabus for Comprehensive Exam (Open Book): All topics (Session Nos. 1 to 32)
Important links and information:
Elearn portal: https://elearn.bits-pilani.ac.in
Students are expected to visit the Elearn portal on a regular basis and stay up to date with the latest announcements and deadlines.
Contact sessions: Students should attend the online lectures as per the schedule provided on the Elearn portal.
Evaluation Guidelines:
1.       EC-1 consists of either two Assignments or three Quizzes. Students will attempt them through the course pages on the Elearn portal. Announcements will be made on the portal, in a timely manner.
2.       For Closed Book tests: No books or reference material of any kind will be permitted.
3.       For Open Book exams: Use of books and any printed / written reference material (filed or bound) is permitted. However, loose sheets of paper will not be allowed. Use of calculators is permitted in all exams. Laptops/Mobiles of any kind are not allowed. Exchange of any material is not allowed.
4.       If a student is unable to appear for the Regular Test/Exam due to genuine exigencies, the student should follow the procedure to apply for the Make-Up Test/Exam which will be made available on the Elearn portal. The Make-Up Test/Exam will be conducted only at selected exam centres on the dates to be announced later.
It shall be the responsibility of the individual student to be regular in maintaining the self study schedule as given in the course handout, attend the online lectures, and take all the prescribed evaluation components such as Assignment/Quiz, Mid-Semester Test and Comprehensive Exam according to the evaluation scheme provided in the handout.

No comments:

Post a Comment