SlideShare a Scribd company logo
1 of 5
Download to read offline
N.Vignesh, Venkadesh.R, DR.K.Rajan / International Journal of Engineering Research and
                  Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                    Vol. 2, Issue 5, September- October 2012, pp.074-078
          Simulation Of Pre-Emptive Scheduling For Accuracy
                     Improvement By Using RTOS
                     N.Vignesh*, Venkadesh.R**, DR.K.Rajan***,
                      *(Assistant Professor, Vel Tech Engineering college, Chennai-62.)
                      *( Vice-Principal, Vel Tech Engineering College Chennai-62, India.)
                         ***( Principal, Vel Tech Engineering college, Chennai-62.)


ABSTRACT
         Now-a-days Hardware and Software are           Models have been proposed. They expose the effects
developing very high level. But with the increasing     of dynamic scheduling on a software processor
of SOC designs, Hardware dependent Software             already in early phases of the design. They have
(HDS) become Critical. In Previous work they            deemed crucial for design space exploration, e.g. for
introduced abstract RTOS modeling, which                task distribution and priority distribution
exposes dynamic scheduling effects early in the
system     design.    However,      such    models               However, current RTOS models poorly
insufficiently capture preemption. But the              support pre-emption. An RTOS model executing in a
accuracy of preemption depends on the                   discrete event simulation environment uses timing
granularity of the timings. So we cannot take           annotation to emulate target specific time progress
accurate readings. For an accurately modeled            (i.e. via wait-for-time statements). Scheduling
interrupt response time, very fine-grained timing       decisions are made at the boundaries of these wait-
annotation is necessary. It contradicts the RTOS        for-time statements, very similar to cooperative
abstraction idea and is detrimental to simulation       multitasking. Hence, the accuracy of pre-emption
performance.                                            depends on the granularity of the timing annotations
         In current modeling of abstract software       (Figure 1).
execution (abstract RTOS on an abstract
processor), preemption modeling highly depends                   A real CPU provides the finest granularity,
on the timing annotation granularity. Scheduling        checking at each clock cycle for incoming interrupts.
decisions are made at the boundaries of wait-for-       Abstract models can annotate each C-instruction,
time statements. Hence, preemptive scheduling in        basic block, function, or coarsely grained each task.
an abstract model (e.g. after an interrupt) may be      However, accurate emulation of pre-emption requires
delayed by up to the longest time annotation in the     fine grained annotation (e.g. at C statement level). On
whole application. Minimizing this error by using       the other hand, using fine grained annotation has two
finer grained timing annotation, however, is            drawbacks. It (a) slows down simulation speed, and
undesirable due to a slower simulation with the         (b) fine grained annotation information may not
dramatically increased number of wait-for-time          easily be available for a given application.
statements, and the difficulty to obtain accurate
fine-grained timing information. Therefore,
preemption is inaccurately emulated in TLM,
resulting in intolerable errors e.g. when
simulating interrupt response times. In this paper,     Figure 1. Granularity of timing annotation.
we introduce (simulation of) preemption in an
abstract model and consequently improve
                                                        2. Problem Definition
dramatically the accuracy of the interrupt
                                                                  In current modelling of abstract software
response time without increasing the number of
                                                        execution (abstract RTOS on an abstract processor),
wait-for-time statements.
                                                        pre-emption modelling highly depends on the timing
                                                        annotation granularity. Scheduling decisions are
Keywords    –Pre-emptive Scheduling, RTOS,              made at the boundaries of wait for- time statements.
TLM-based Abstract RTOS, ROM, SLDL, Interrupt           Hence, pre-emptive scheduling in an abstract model
Latency.                                                (e.g. after an interrupt) may be delayed by up to the
                                                        longest time annotation in the whole application.
I. Introduction                                         Minimizing this error by using finer grained timing
         Current research work has addressed the        annotation, however, is undesirable due to a slower
increasing software content in modern MPSoC             simulation with the dramatically increased number of
designs by utilizing software generation and abstract   wait-for-time statements, and the difficulty to obtain
modelling of software. Abstract RTOS and processor      accurate fine-grained timing information. Therefore,
                                                        pre-emption is inaccurately emulated in TLM,


                                                                                                74 | P a g e
N.Vignesh, Venkadesh.R, DR.K.Rajan / International Journal of Engineering Research and
                  Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                    Vol. 2, Issue 5, September- October 2012, pp.074-078
resulting in intolerable errors e.g. when simulating      available semaphore, its state changes from RUN to
interrupt response time                                   WAIT (as in a regular RTOS). The abstract RTOS
                                                          [6], keeps track of all task states and dispatches tasks
3. Related Work                                           using primitives of the underlying SLDL (e.g.
          Abstract RTOS models have been developed        events). It sequentializes the task execution according
that execute on top of System Level Design                to the selected scheduling policy.
Languages (SLDLs) (e.g. SystemC, SpecC, proposes                    A pre-emption, as a result of an external
SoCOS, a high-level RTOS model. It interprets a           interrupt, can occur at any point in time. Since a wait-
proprietary       language,      describing      RTOS     for-time increases.
characteristics, using a specialized simulation engine.
Our proposed solution uses a standard unmodified
discrete event simulator presents modelling of fixed
priority pre-emptive multi-tasking systems. However,
it uses SpecC specific concurrency and exception
mechanisms and is limited in inter-task
                                                             Figure-3. RTOS and Task Diagram
communication. In contrast, our proposed solution
does not rely on SpecC specific primitives and
                                                                   Simulation time and a pre-emption will
provides task communication.
                                                          occur while executing this statement. With the
                                                          scheduling decision being made only at the end of the
                                                          time increase, the pre-emption (dispatch of the
                                                          selected ISR task) takes effect after the wait-for-time
                                                          statement. This delays pre-emption scheduling and
                                                          subsequently increases the latency for an ISR. Figure
                                                          3 shows a pre-emption situation handled by different
                                                          approaches. We use line styles to indicate task states:
                                                          a solid line represents RUNNING, dashed line
                                                          READY and no line indicates the WAIT state. The
                                                          empty flag indicates pending on a semaphore (or
                                                          event) a filled flag its release.


Figure-2. RTOS Block Diagram

         It introduces abstract scheduling on top of
SpecC, providing scheduling primitives found in a
typical RTOS and allows modelling of target-specific
execution timing. However, it emulates pre-emption
only at the granularity of the timing annotation. In
this paper, we will eliminate this restriction. It             Figure-3(a) Processor
describes an RTOS centric co simulator, using a host
compiled RTOS. However, it does not include target                 This Figure 3(a) depicts pre-emption on a
execution time simulation.                                real processor as a reference. While the low priority
                                                          task Tlow executes, an interrupt pre-empts at t1 and
4. Abstract RTOS Modelling                                triggers the ISR. The ISR activates T high at t2 and
         We will _first describe a current approach of    Finishes. Thigh computes until t3 when acquiring a
abstract RTOS modelling [6] (subsequently called          semaphore. Subsequently, the pre-empted Tlow
TLM-based RTOS) and reveal the limitations in pre-        resumes and Finishes the section of computation at
emption modelling. Second, we will introduce the          t6.
novel ROM-based abstract RTOS and show how it
overcomes the TLM limitations.

4.1. TLM-based Abstract RTOS
         The TLM-based abstract RTOS maintains a
task state machine for each module/behaviour as
shown simplified in Figure 2. Each action, which
potentially changes scheduling, is wrapped to interact
with the abstract RTOS model (e.g. task create, -
suspend, - resume, semaphore acquire- release). For            Figure- 3(b) TLM
example, if a running task starts pending on a non-



                                                                                                   75 | P a g e
N.Vignesh, Venkadesh.R, DR.K.Rajan / International Journal of Engineering Research and
                  Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                    Vol. 2, Issue 5, September- October 2012, pp.074-078
This Figure 3(b) shows pre-emption in the TLM-            More formally, the execution duration (busy time) of
based RTOS. The section executed by T low is              an application is captured in N wait-for-time
annotated with a single wait-for-time statement (from     statements, each annotates a duration of Wi and is
t0 to t4 depicted by an arc). Since the TLM-based         executed Ci times. With this definition, the
RTOS evaluates scheduling at boundaries of wait-          application execution time can be computed as Texec
for-time statements, the interrupt occurring at t2, is    =PN; i=1; Ci =Wi. The probability P(Tdel) of
evaluated only at t4. Then, it schedules first the ISR,   incurring a delay of Tdel is then2:
then Thigh. Note that the TLM-based RTOS is highly
inaccurate. Thigh finishes late at t6 (instead of t3).
Analogous, Tlow finishes early at t4 (instead of t6).

4.2. Result Oriented Modelling (ROM)
          ROM is a general concept for abstract yet
accurate modelling of a process that was
demonstrated for communication modelling [16].
ROM assumes a limited observability of internal state              The pre-emption scheduling delay, thus the
changes of the modelled process. It is not necessary      error in ISR latency, has a significant spread in a
to show intermediate results of the process to the        TLM. For our analyzed applications, 50% of ISRs
user, as in a .black box. approach. The only goal of      will be delayed by up to 5,710 cycles. For the
ROM is to produce the end result of the process fast.     Mp3.Hw example 46% of ISRs will be delayed
Hiding of intermediate states gives ROM the               between 5,710 and 17,810 CPU cycles. In
opportunity for optimization. Often, intermediate         comparison to the specified delay of 366 cycles, our
states can be entirely eliminated. Instead, ROM           analysis indicates a potential improvement in the
utilizes an Optimistic predicts approach to determine     order of two magnitudes. In general, the actual
the outcome (e.g. termination time and final state)       improvement will depend on the application and its
                                                          timing granularity.
4.3. ROM-enhanced Abstract RTOS
           Our ROM-enhanced abstract RTOS is based        6. Experimental Results
on the same principles as the earlier described TLM-
based abstract RTOS. It extends all primitives, which
potentially trigger scheduling, to interact with a
centralized abstract RTOS model. However, ROM
differs in the implementation of three crucial
elements: (a) integration of interrupts, (b) wait-for-
time statements, and (c) dispatch implementation. As
a result, the ROM-based RTOS handles pre-emption
With higher accuracy by allowing pre-emption of
wait for time statements.                                      Figure-5 MP3 JPEG media

5. Analysis of Potential Benefits                                  In order to demonstrate the benefits of our
         In order to quantify the benefits of our         ROM-based abstract RTOS model on a real-world
ROM-based model, we first statically analyze five         design example (Figure 7), we have implemented it
applications with function level timing annotations.      on top of SCE [1] using the SpecC SLDL. We
In a second step, we measure one application.             realized the ROM-based RTOS without any change
                                                          in the simulation engine, it only uses standard
                                                          primitives (events and wait-for-time statements).
                                                          Note that the ROM concept is generic and can be
                                                          directly applied to other SLDLs such as SystemC as
                                                          well.

                                                                   To measure the improvements, we use the
                                                          ROM-based abstract RTOS in an industrial sized
                                                          example as outlined in Figure 7. An ARM7TDMI
                                                          running ¹C/OS-II [13] concurrently decodes a MP3
                                                          stream and encodes a JPEG picture. The processor is
                                                          assisted by 3 HW accelerators, an additional set of
Figure-4. Statically analyzed TLM ISR latency.            HW units perform input and output. We focus in this
                                                          simulation on the audio output. The ARM writes the
                                                          decoded samples into the AC97 controller, which
                                                          feeds them via an AC-Link to an AC97 codec [12].



                                                                                                76 | P a g e
N.Vignesh, Venkadesh.R, DR.K.Rajan / International Journal of Engineering Research and
                  Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                    Vol. 2, Issue 5, September- October 2012, pp.074-078
Upon a half- filled FIFO, the AC97 controller             With this accuracy improvement, ROM is an enabler
triggers an interrupt to the ARM which then writes        to further expand the use of abstract modelling. This
additional samples into the FIFO.                         work is the first to show that the ROM concept is
                                                          applicable outside of the communication domain.
                                                          Where in communication modelling it is tied to a
                                                          particular bus model, here the ROM approach is not
                                                          application specific. Any application scheduled on
                                                          the ROM-based RTOS will benefit from the
                                                          enhanced accuracy.

                                                          References
                                                            [1]   T. Gr¨otker, S. Liar, G. Martin, and S. Swan.
                                                                  System Designwith SystemC. Kluwer
                                                                  Academic Publishers, 2002.
                                                            [2]   Z. He, A. Mok, and C. Peng. Timed RTOS
Figure-6 Measured Interrupt Latency                               Modelling for Embedded System Design. In
                                                                  RTAS, San Francisco, 2005.
         This Figure 6 shows the ISR latency for            [3]   K. Hines and G. Borriello. A Geographically
three solutions: execution on a cycle accurate ISS [2],           Distributed Framework for Embedded
simulation using the TLM-based RTOS, and using                    System Design and Validation. In DAC, San
our ROM-based solution. The logarithmic x-axis                    Francisco, CA, June 1998.
denotes the ISR latency in CPU cycles. The y-axis           [4]    S.    Honda      et     al.   RTOS-Centric
denotes the cumulative probability. As an example,                Hardware/Software         Cosimulator     for
the TLM line reads 0.41 at 1000 cycles, indicating                Embedded         System       Design.      In
that 41% of the ISR invocations will be delayed by                CODES+ISSS, Stockholm,Sweden, Sept.
1000 cycles or less. Table 2 shows the same data in               2004.
numerical form.                                             [5]   Y. Hwang, S. Abdi, and D. Gajski. Cycle
                                                                  Approximate Retargettable Performance
                                                                  Estimation at the Transaction Level. In
                                                                  DATE, Munich, Germany, Mar. 2008.
                                                            [6]   Intel Corporation. Audio Codec '97
                                                                  Component Specification, Sept. 2000.
                                                            [7]   H. Posada et al. RTOS modelling in
          Our ROM-based abstract RTOS model, on                   SystemC for real-time Embedded SW
the other hand, shows a very tight distribution. The              simulation: A POSIX model. Design
minimal latency and the 96th percentile are only 2                Automation For Embedded Systems,
cycles apart. Interestingly, the maximum observed                 10(4):209.227, Dec. 2005.
latency reached almost 10,000 cycles. Here, the             [8]   G. Schirner and R. D¨omer. Result Oriented
interrupt occurred while the CPU just started another             Modeling a Novel Technique for Fast and
ISR. Since both interrupts use the same priority level,           Accurate TLM. IEEE TCAD,1688.1699,
no pre-emption occurred and the measured ISR                      Sept. 2007.
started late. The ROM ISR latency distribution              [9]   H. Tomiyama et al. Modeling fixed-priority
matches the CPU within 8% in terms of average and                 pre-emptive multi-task systems in SpecC. In
50th percentile. At this point, we do not model RTOS              SASIMI, Nara, Oct. 2001.
critical sections, hence ROM does not show the same
variation the CPU does.
                                                                        N.Vignesh @ Selvaganapathy received
7. Conclusion                                                           B.Tech Degree in 2007 in Electrical
         In this Paper, we have presented a novel                       and Electronics Engineering from Sri
approach for modeling preemption in an abstract                         Manakula Vinayagar Engineering
RTOS model. Our solution is based on the Result                         College affliated to Pondicherry
Oriented Modeling technique, previously applied           University and M.E Embedded System Technolgies
only to communication modeling. While a TLM-              degree received in the year 2009 from Vel Tech
based RTOS model relies on fine-grained timing            Engineering College affliated to Anna University
annotations to emulate preemptions, our ROM-based         chennai. He has 3 years of teaching experience in
model allows accurate preemption at any point. ROM        engineering colleges. His Research are interest in
significantly increases the timing accuracy of            Speed Control of Electrical Machine, Switching
preemption simulation without demanding fine-             Converter Technolgy and Drives. He has published 2
grained timing information and without reducing           international Journals, 2 International conferences
simulation performance.                                   and attended Faculty Development programmes. He



                                                                                                77 | P a g e
N.Vignesh, Venkadesh.R, DR.K.Rajan / International Journal of Engineering Research and
                  Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                    Vol. 2, Issue 5, September- October 2012, pp.074-078
is currently working as a Assistant Professor in the
Department     of    Electrical   and    Electronics
Engineering,      Vel Tech Engineering college,
Chennai-62, India. .

               Venkadesh.R completed his B.E.
               Computer Science and Engineering
               from University of Madras in 1999
               and     M.Tech      Electronics    and
               Communication Engineering from
               Pondicherry University in 2004. He
has 13 years of teaching experience in engineering
colleges. He has published 2 international Journals, 3
International conferences, attended workshops and
Faculty Development programmes. Interested area is
Communication and Networking. At present he is
working as Vice-Principal and Assistant Professor,
Department of Electronics and Communication
Engineering,     Vel Tech Engineering college,
Chennai-62, India.

              K.Rajan completed his B.E. Electrical
              and Electronics and M.E. Applied
              Electronics at P.S.G. College of
              Technology, Coimbatore. He has
              completed his Ph.D. from J.N.T.U.
Anantapur, AP in high frequency power system for
industrial and commercial zones. He has 19 years of
industrial experience in R&D, production and 9 years
of teaching experience in engineering colleges. He
has published 4 international and national journals.
He also presented papers in 14 international and
national conferences. Interested area is power
electronics and power system. At present he is
working as Principal in Vel Tech Engineering
College. – RS Trust.




                                                                              78 | P a g e

More Related Content

What's hot

Real-Time Scheduling Algorithms
Real-Time Scheduling AlgorithmsReal-Time Scheduling Algorithms
Real-Time Scheduling AlgorithmsAJAL A J
 
Dryad Paper Review and System Analysis
Dryad Paper Review and System AnalysisDryad Paper Review and System Analysis
Dryad Paper Review and System AnalysisJinGui LI
 
Preemptive Job Scheduling with Priorities and Starvation Avoidance CUM Throug...
Preemptive Job Scheduling with Priorities and Starvation Avoidance CUM Throug...Preemptive Job Scheduling with Priorities and Starvation Avoidance CUM Throug...
Preemptive Job Scheduling with Priorities and Starvation Avoidance CUM Throug...IDES Editor
 
Design of Real - Time Operating System Using Keil µVision Ide
Design of Real - Time Operating System Using Keil µVision IdeDesign of Real - Time Operating System Using Keil µVision Ide
Design of Real - Time Operating System Using Keil µVision Ideiosrjce
 
Slides For Operating System Concepts By Silberschatz Galvin And Gagne
Slides For Operating System Concepts By Silberschatz Galvin And GagneSlides For Operating System Concepts By Silberschatz Galvin And Gagne
Slides For Operating System Concepts By Silberschatz Galvin And Gagnesarankumar4445
 
Integrating fault tolerant scheme with feedback control scheduling algorithm ...
Integrating fault tolerant scheme with feedback control scheduling algorithm ...Integrating fault tolerant scheme with feedback control scheduling algorithm ...
Integrating fault tolerant scheme with feedback control scheduling algorithm ...ijics
 
DYNAMIC TASK PARTITIONING MODEL IN PARALLEL COMPUTING
DYNAMIC TASK PARTITIONING MODEL IN PARALLEL COMPUTINGDYNAMIC TASK PARTITIONING MODEL IN PARALLEL COMPUTING
DYNAMIC TASK PARTITIONING MODEL IN PARALLEL COMPUTINGcscpconf
 
Design and Implementation of a Cache Hierarchy-Aware Task Scheduling for Para...
Design and Implementation of a Cache Hierarchy-Aware Task Scheduling for Para...Design and Implementation of a Cache Hierarchy-Aware Task Scheduling for Para...
Design and Implementation of a Cache Hierarchy-Aware Task Scheduling for Para...csandit
 
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSVTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSvtunotesbysree
 
Real-Time Scheduling
Real-Time SchedulingReal-Time Scheduling
Real-Time Schedulingsathish sak
 
Project report of ustos
Project report of ustosProject report of ustos
Project report of ustosMurali Mc
 
Presentation of the open source CFD code Code_Saturne
Presentation of the open source CFD code Code_SaturnePresentation of the open source CFD code Code_Saturne
Presentation of the open source CFD code Code_SaturneRenuda SARL
 
Low-Latency Audio on Linux by Means of Real-Time Scheduling
Low-Latency Audio on Linux by Means of Real-Time SchedulingLow-Latency Audio on Linux by Means of Real-Time Scheduling
Low-Latency Audio on Linux by Means of Real-Time Schedulingtcucinotta
 
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time SystemsSara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systemsknowdiff
 

What's hot (18)

Real-Time Scheduling Algorithms
Real-Time Scheduling AlgorithmsReal-Time Scheduling Algorithms
Real-Time Scheduling Algorithms
 
Dryad Paper Review and System Analysis
Dryad Paper Review and System AnalysisDryad Paper Review and System Analysis
Dryad Paper Review and System Analysis
 
Preemptive Job Scheduling with Priorities and Starvation Avoidance CUM Throug...
Preemptive Job Scheduling with Priorities and Starvation Avoidance CUM Throug...Preemptive Job Scheduling with Priorities and Starvation Avoidance CUM Throug...
Preemptive Job Scheduling with Priorities and Starvation Avoidance CUM Throug...
 
Real time-embedded-system-lec-03
Real time-embedded-system-lec-03Real time-embedded-system-lec-03
Real time-embedded-system-lec-03
 
427 432
427 432427 432
427 432
 
Design of Real - Time Operating System Using Keil µVision Ide
Design of Real - Time Operating System Using Keil µVision IdeDesign of Real - Time Operating System Using Keil µVision Ide
Design of Real - Time Operating System Using Keil µVision Ide
 
Slides For Operating System Concepts By Silberschatz Galvin And Gagne
Slides For Operating System Concepts By Silberschatz Galvin And GagneSlides For Operating System Concepts By Silberschatz Galvin And Gagne
Slides For Operating System Concepts By Silberschatz Galvin And Gagne
 
Integrating fault tolerant scheme with feedback control scheduling algorithm ...
Integrating fault tolerant scheme with feedback control scheduling algorithm ...Integrating fault tolerant scheme with feedback control scheduling algorithm ...
Integrating fault tolerant scheme with feedback control scheduling algorithm ...
 
DYNAMIC TASK PARTITIONING MODEL IN PARALLEL COMPUTING
DYNAMIC TASK PARTITIONING MODEL IN PARALLEL COMPUTINGDYNAMIC TASK PARTITIONING MODEL IN PARALLEL COMPUTING
DYNAMIC TASK PARTITIONING MODEL IN PARALLEL COMPUTING
 
Design and Implementation of a Cache Hierarchy-Aware Task Scheduling for Para...
Design and Implementation of a Cache Hierarchy-Aware Task Scheduling for Para...Design and Implementation of a Cache Hierarchy-Aware Task Scheduling for Para...
Design and Implementation of a Cache Hierarchy-Aware Task Scheduling for Para...
 
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSVTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
 
Real-Time Scheduling
Real-Time SchedulingReal-Time Scheduling
Real-Time Scheduling
 
Project report of ustos
Project report of ustosProject report of ustos
Project report of ustos
 
Presentation of the open source CFD code Code_Saturne
Presentation of the open source CFD code Code_SaturnePresentation of the open source CFD code Code_Saturne
Presentation of the open source CFD code Code_Saturne
 
Low-Latency Audio on Linux by Means of Real-Time Scheduling
Low-Latency Audio on Linux by Means of Real-Time SchedulingLow-Latency Audio on Linux by Means of Real-Time Scheduling
Low-Latency Audio on Linux by Means of Real-Time Scheduling
 
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time SystemsSara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
 
Real time-embedded-system-lec-04
Real time-embedded-system-lec-04Real time-embedded-system-lec-04
Real time-embedded-system-lec-04
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 

Viewers also liked

Viewers also liked (20)

Mn2521592162
Mn2521592162Mn2521592162
Mn2521592162
 
T25102106
T25102106T25102106
T25102106
 
Ml2521492153
Ml2521492153Ml2521492153
Ml2521492153
 
W25116118
W25116118W25116118
W25116118
 
U25107111
U25107111U25107111
U25107111
 
Mi2521322136
Mi2521322136Mi2521322136
Mi2521322136
 
Mh2521282131
Mh2521282131Mh2521282131
Mh2521282131
 
Mu2522002204
Mu2522002204Mu2522002204
Mu2522002204
 
Mk2521432148
Mk2521432148Mk2521432148
Mk2521432148
 
TwitRadar - SP 460
TwitRadar - SP 460TwitRadar - SP 460
TwitRadar - SP 460
 
LigFlat Telecom - Sales Pitch - PT-BR - Jul/2015
LigFlat Telecom - Sales Pitch - PT-BR - Jul/2015LigFlat Telecom - Sales Pitch - PT-BR - Jul/2015
LigFlat Telecom - Sales Pitch - PT-BR - Jul/2015
 
vikas latest Resume 12-9-16
vikas latest Resume 12-9-16vikas latest Resume 12-9-16
vikas latest Resume 12-9-16
 
Tempo mario quintana
Tempo mario quintanaTempo mario quintana
Tempo mario quintana
 
Peitos
PeitosPeitos
Peitos
 
Vall de núria
Vall de núriaVall de núria
Vall de núria
 
Edital - PPP de Eficiência Energética de Caruaru
Edital  - PPP de Eficiência Energética de CaruaruEdital  - PPP de Eficiência Energética de Caruaru
Edital - PPP de Eficiência Energética de Caruaru
 
Us6257116
Us6257116Us6257116
Us6257116
 
Norton R976 belts - Brochure
Norton R976 belts - BrochureNorton R976 belts - Brochure
Norton R976 belts - Brochure
 
Cronograma - PPP de Eficiência Energética de Caruaru
Cronograma - PPP de Eficiência Energética de CaruaruCronograma - PPP de Eficiência Energética de Caruaru
Cronograma - PPP de Eficiência Energética de Caruaru
 
Andrew Eglon - Copper
Andrew Eglon - CopperAndrew Eglon - Copper
Andrew Eglon - Copper
 

Similar to O25074078

DEVELOPING SCHEDULER TEST CASES TO VERIFY SCHEDULER IMPLEMENTATIONS IN TIMETR...
DEVELOPING SCHEDULER TEST CASES TO VERIFY SCHEDULER IMPLEMENTATIONS IN TIMETR...DEVELOPING SCHEDULER TEST CASES TO VERIFY SCHEDULER IMPLEMENTATIONS IN TIMETR...
DEVELOPING SCHEDULER TEST CASES TO VERIFY SCHEDULER IMPLEMENTATIONS IN TIMETR...ijesajournal
 
Developing Scheduler Test Cases to Verify Scheduler Implementations In Time-T...
Developing Scheduler Test Cases to Verify Scheduler Implementations In Time-T...Developing Scheduler Test Cases to Verify Scheduler Implementations In Time-T...
Developing Scheduler Test Cases to Verify Scheduler Implementations In Time-T...ijesajournal
 
Real time os(suga)
Real time os(suga) Real time os(suga)
Real time os(suga) Nagarajan
 
Integrating Fault Tolerant Scheme With Feedback Control Scheduling Algorithm ...
Integrating Fault Tolerant Scheme With Feedback Control Scheduling Algorithm ...Integrating Fault Tolerant Scheme With Feedback Control Scheduling Algorithm ...
Integrating Fault Tolerant Scheme With Feedback Control Scheduling Algorithm ...ijics
 
RTOS implementation
RTOS implementationRTOS implementation
RTOS implementationRajan Kumar
 
Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems
Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems
Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems iosrjce
 
Temporal workload analysis and its application to power aware scheduling
Temporal workload analysis and its application to power aware schedulingTemporal workload analysis and its application to power aware scheduling
Temporal workload analysis and its application to power aware schedulingijesajournal
 
Temporal workload analysis and its application to power aware scheduling
Temporal workload analysis and its application to power aware schedulingTemporal workload analysis and its application to power aware scheduling
Temporal workload analysis and its application to power aware schedulingijesajournal
 
LEARNING SCHEDULER PARAMETERS FOR ADAPTIVE PREEMPTION
LEARNING SCHEDULER PARAMETERS FOR ADAPTIVE PREEMPTIONLEARNING SCHEDULER PARAMETERS FOR ADAPTIVE PREEMPTION
LEARNING SCHEDULER PARAMETERS FOR ADAPTIVE PREEMPTIONcscpconf
 
Learning scheduler parameters for adaptive preemption
Learning scheduler parameters for adaptive preemptionLearning scheduler parameters for adaptive preemption
Learning scheduler parameters for adaptive preemptioncsandit
 
There are many operating systemsReal-Time Operating SystemReal-t.pdf
There are many operating systemsReal-Time Operating SystemReal-t.pdfThere are many operating systemsReal-Time Operating SystemReal-t.pdf
There are many operating systemsReal-Time Operating SystemReal-t.pdfankitmobileshop235
 
Module-related pages
Module-related pagesModule-related pages
Module-related pagesbutest
 
Module-related pages
Module-related pagesModule-related pages
Module-related pagesbutest
 
SWARM INTELLIGENCE SCHEDULING OF SOFT REAL-TIME TASKS IN HETEROGENEOUS MULTIP...
SWARM INTELLIGENCE SCHEDULING OF SOFT REAL-TIME TASKS IN HETEROGENEOUS MULTIP...SWARM INTELLIGENCE SCHEDULING OF SOFT REAL-TIME TASKS IN HETEROGENEOUS MULTIP...
SWARM INTELLIGENCE SCHEDULING OF SOFT REAL-TIME TASKS IN HETEROGENEOUS MULTIP...ecij
 
Optimization of Remote Core Locking Synchronization in Multithreaded Programs...
Optimization of Remote Core Locking Synchronization in Multithreaded Programs...Optimization of Remote Core Locking Synchronization in Multithreaded Programs...
Optimization of Remote Core Locking Synchronization in Multithreaded Programs...ITIIIndustries
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded SystemsHimanshu Ghetia
 

Similar to O25074078 (20)

DEVELOPING SCHEDULER TEST CASES TO VERIFY SCHEDULER IMPLEMENTATIONS IN TIMETR...
DEVELOPING SCHEDULER TEST CASES TO VERIFY SCHEDULER IMPLEMENTATIONS IN TIMETR...DEVELOPING SCHEDULER TEST CASES TO VERIFY SCHEDULER IMPLEMENTATIONS IN TIMETR...
DEVELOPING SCHEDULER TEST CASES TO VERIFY SCHEDULER IMPLEMENTATIONS IN TIMETR...
 
Developing Scheduler Test Cases to Verify Scheduler Implementations In Time-T...
Developing Scheduler Test Cases to Verify Scheduler Implementations In Time-T...Developing Scheduler Test Cases to Verify Scheduler Implementations In Time-T...
Developing Scheduler Test Cases to Verify Scheduler Implementations In Time-T...
 
Real time os(suga)
Real time os(suga) Real time os(suga)
Real time os(suga)
 
Lab3F22.pdf
Lab3F22.pdfLab3F22.pdf
Lab3F22.pdf
 
Integrating Fault Tolerant Scheme With Feedback Control Scheduling Algorithm ...
Integrating Fault Tolerant Scheme With Feedback Control Scheduling Algorithm ...Integrating Fault Tolerant Scheme With Feedback Control Scheduling Algorithm ...
Integrating Fault Tolerant Scheme With Feedback Control Scheduling Algorithm ...
 
RTOS implementation
RTOS implementationRTOS implementation
RTOS implementation
 
K017617786
K017617786K017617786
K017617786
 
Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems
Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems
Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems
 
Temporal workload analysis and its application to power aware scheduling
Temporal workload analysis and its application to power aware schedulingTemporal workload analysis and its application to power aware scheduling
Temporal workload analysis and its application to power aware scheduling
 
Temporal workload analysis and its application to power aware scheduling
Temporal workload analysis and its application to power aware schedulingTemporal workload analysis and its application to power aware scheduling
Temporal workload analysis and its application to power aware scheduling
 
[IJET-V1I5P2] Authors :Hind HazzaAlsharif , Razan Hamza Bawareth
[IJET-V1I5P2] Authors :Hind HazzaAlsharif , Razan Hamza Bawareth[IJET-V1I5P2] Authors :Hind HazzaAlsharif , Razan Hamza Bawareth
[IJET-V1I5P2] Authors :Hind HazzaAlsharif , Razan Hamza Bawareth
 
LEARNING SCHEDULER PARAMETERS FOR ADAPTIVE PREEMPTION
LEARNING SCHEDULER PARAMETERS FOR ADAPTIVE PREEMPTIONLEARNING SCHEDULER PARAMETERS FOR ADAPTIVE PREEMPTION
LEARNING SCHEDULER PARAMETERS FOR ADAPTIVE PREEMPTION
 
Learning scheduler parameters for adaptive preemption
Learning scheduler parameters for adaptive preemptionLearning scheduler parameters for adaptive preemption
Learning scheduler parameters for adaptive preemption
 
There are many operating systemsReal-Time Operating SystemReal-t.pdf
There are many operating systemsReal-Time Operating SystemReal-t.pdfThere are many operating systemsReal-Time Operating SystemReal-t.pdf
There are many operating systemsReal-Time Operating SystemReal-t.pdf
 
Module-related pages
Module-related pagesModule-related pages
Module-related pages
 
Module-related pages
Module-related pagesModule-related pages
Module-related pages
 
slot_shifting
slot_shiftingslot_shifting
slot_shifting
 
SWARM INTELLIGENCE SCHEDULING OF SOFT REAL-TIME TASKS IN HETEROGENEOUS MULTIP...
SWARM INTELLIGENCE SCHEDULING OF SOFT REAL-TIME TASKS IN HETEROGENEOUS MULTIP...SWARM INTELLIGENCE SCHEDULING OF SOFT REAL-TIME TASKS IN HETEROGENEOUS MULTIP...
SWARM INTELLIGENCE SCHEDULING OF SOFT REAL-TIME TASKS IN HETEROGENEOUS MULTIP...
 
Optimization of Remote Core Locking Synchronization in Multithreaded Programs...
Optimization of Remote Core Locking Synchronization in Multithreaded Programs...Optimization of Remote Core Locking Synchronization in Multithreaded Programs...
Optimization of Remote Core Locking Synchronization in Multithreaded Programs...
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
 

Recently uploaded

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

O25074078

  • 1. N.Vignesh, Venkadesh.R, DR.K.Rajan / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 2, Issue 5, September- October 2012, pp.074-078 Simulation Of Pre-Emptive Scheduling For Accuracy Improvement By Using RTOS N.Vignesh*, Venkadesh.R**, DR.K.Rajan***, *(Assistant Professor, Vel Tech Engineering college, Chennai-62.) *( Vice-Principal, Vel Tech Engineering College Chennai-62, India.) ***( Principal, Vel Tech Engineering college, Chennai-62.) ABSTRACT Now-a-days Hardware and Software are Models have been proposed. They expose the effects developing very high level. But with the increasing of dynamic scheduling on a software processor of SOC designs, Hardware dependent Software already in early phases of the design. They have (HDS) become Critical. In Previous work they deemed crucial for design space exploration, e.g. for introduced abstract RTOS modeling, which task distribution and priority distribution exposes dynamic scheduling effects early in the system design. However, such models However, current RTOS models poorly insufficiently capture preemption. But the support pre-emption. An RTOS model executing in a accuracy of preemption depends on the discrete event simulation environment uses timing granularity of the timings. So we cannot take annotation to emulate target specific time progress accurate readings. For an accurately modeled (i.e. via wait-for-time statements). Scheduling interrupt response time, very fine-grained timing decisions are made at the boundaries of these wait- annotation is necessary. It contradicts the RTOS for-time statements, very similar to cooperative abstraction idea and is detrimental to simulation multitasking. Hence, the accuracy of pre-emption performance. depends on the granularity of the timing annotations In current modeling of abstract software (Figure 1). execution (abstract RTOS on an abstract processor), preemption modeling highly depends A real CPU provides the finest granularity, on the timing annotation granularity. Scheduling checking at each clock cycle for incoming interrupts. decisions are made at the boundaries of wait-for- Abstract models can annotate each C-instruction, time statements. Hence, preemptive scheduling in basic block, function, or coarsely grained each task. an abstract model (e.g. after an interrupt) may be However, accurate emulation of pre-emption requires delayed by up to the longest time annotation in the fine grained annotation (e.g. at C statement level). On whole application. Minimizing this error by using the other hand, using fine grained annotation has two finer grained timing annotation, however, is drawbacks. It (a) slows down simulation speed, and undesirable due to a slower simulation with the (b) fine grained annotation information may not dramatically increased number of wait-for-time easily be available for a given application. statements, and the difficulty to obtain accurate fine-grained timing information. Therefore, preemption is inaccurately emulated in TLM, resulting in intolerable errors e.g. when simulating interrupt response times. In this paper, Figure 1. Granularity of timing annotation. we introduce (simulation of) preemption in an abstract model and consequently improve 2. Problem Definition dramatically the accuracy of the interrupt In current modelling of abstract software response time without increasing the number of execution (abstract RTOS on an abstract processor), wait-for-time statements. pre-emption modelling highly depends on the timing annotation granularity. Scheduling decisions are Keywords –Pre-emptive Scheduling, RTOS, made at the boundaries of wait for- time statements. TLM-based Abstract RTOS, ROM, SLDL, Interrupt Hence, pre-emptive scheduling in an abstract model Latency. (e.g. after an interrupt) may be delayed by up to the longest time annotation in the whole application. I. Introduction Minimizing this error by using finer grained timing Current research work has addressed the annotation, however, is undesirable due to a slower increasing software content in modern MPSoC simulation with the dramatically increased number of designs by utilizing software generation and abstract wait-for-time statements, and the difficulty to obtain modelling of software. Abstract RTOS and processor accurate fine-grained timing information. Therefore, pre-emption is inaccurately emulated in TLM, 74 | P a g e
  • 2. N.Vignesh, Venkadesh.R, DR.K.Rajan / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 2, Issue 5, September- October 2012, pp.074-078 resulting in intolerable errors e.g. when simulating available semaphore, its state changes from RUN to interrupt response time WAIT (as in a regular RTOS). The abstract RTOS [6], keeps track of all task states and dispatches tasks 3. Related Work using primitives of the underlying SLDL (e.g. Abstract RTOS models have been developed events). It sequentializes the task execution according that execute on top of System Level Design to the selected scheduling policy. Languages (SLDLs) (e.g. SystemC, SpecC, proposes A pre-emption, as a result of an external SoCOS, a high-level RTOS model. It interprets a interrupt, can occur at any point in time. Since a wait- proprietary language, describing RTOS for-time increases. characteristics, using a specialized simulation engine. Our proposed solution uses a standard unmodified discrete event simulator presents modelling of fixed priority pre-emptive multi-tasking systems. However, it uses SpecC specific concurrency and exception mechanisms and is limited in inter-task Figure-3. RTOS and Task Diagram communication. In contrast, our proposed solution does not rely on SpecC specific primitives and Simulation time and a pre-emption will provides task communication. occur while executing this statement. With the scheduling decision being made only at the end of the time increase, the pre-emption (dispatch of the selected ISR task) takes effect after the wait-for-time statement. This delays pre-emption scheduling and subsequently increases the latency for an ISR. Figure 3 shows a pre-emption situation handled by different approaches. We use line styles to indicate task states: a solid line represents RUNNING, dashed line READY and no line indicates the WAIT state. The empty flag indicates pending on a semaphore (or event) a filled flag its release. Figure-2. RTOS Block Diagram It introduces abstract scheduling on top of SpecC, providing scheduling primitives found in a typical RTOS and allows modelling of target-specific execution timing. However, it emulates pre-emption only at the granularity of the timing annotation. In this paper, we will eliminate this restriction. It Figure-3(a) Processor describes an RTOS centric co simulator, using a host compiled RTOS. However, it does not include target This Figure 3(a) depicts pre-emption on a execution time simulation. real processor as a reference. While the low priority task Tlow executes, an interrupt pre-empts at t1 and 4. Abstract RTOS Modelling triggers the ISR. The ISR activates T high at t2 and We will _first describe a current approach of Finishes. Thigh computes until t3 when acquiring a abstract RTOS modelling [6] (subsequently called semaphore. Subsequently, the pre-empted Tlow TLM-based RTOS) and reveal the limitations in pre- resumes and Finishes the section of computation at emption modelling. Second, we will introduce the t6. novel ROM-based abstract RTOS and show how it overcomes the TLM limitations. 4.1. TLM-based Abstract RTOS The TLM-based abstract RTOS maintains a task state machine for each module/behaviour as shown simplified in Figure 2. Each action, which potentially changes scheduling, is wrapped to interact with the abstract RTOS model (e.g. task create, - suspend, - resume, semaphore acquire- release). For Figure- 3(b) TLM example, if a running task starts pending on a non- 75 | P a g e
  • 3. N.Vignesh, Venkadesh.R, DR.K.Rajan / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 2, Issue 5, September- October 2012, pp.074-078 This Figure 3(b) shows pre-emption in the TLM- More formally, the execution duration (busy time) of based RTOS. The section executed by T low is an application is captured in N wait-for-time annotated with a single wait-for-time statement (from statements, each annotates a duration of Wi and is t0 to t4 depicted by an arc). Since the TLM-based executed Ci times. With this definition, the RTOS evaluates scheduling at boundaries of wait- application execution time can be computed as Texec for-time statements, the interrupt occurring at t2, is =PN; i=1; Ci =Wi. The probability P(Tdel) of evaluated only at t4. Then, it schedules first the ISR, incurring a delay of Tdel is then2: then Thigh. Note that the TLM-based RTOS is highly inaccurate. Thigh finishes late at t6 (instead of t3). Analogous, Tlow finishes early at t4 (instead of t6). 4.2. Result Oriented Modelling (ROM) ROM is a general concept for abstract yet accurate modelling of a process that was demonstrated for communication modelling [16]. ROM assumes a limited observability of internal state The pre-emption scheduling delay, thus the changes of the modelled process. It is not necessary error in ISR latency, has a significant spread in a to show intermediate results of the process to the TLM. For our analyzed applications, 50% of ISRs user, as in a .black box. approach. The only goal of will be delayed by up to 5,710 cycles. For the ROM is to produce the end result of the process fast. Mp3.Hw example 46% of ISRs will be delayed Hiding of intermediate states gives ROM the between 5,710 and 17,810 CPU cycles. In opportunity for optimization. Often, intermediate comparison to the specified delay of 366 cycles, our states can be entirely eliminated. Instead, ROM analysis indicates a potential improvement in the utilizes an Optimistic predicts approach to determine order of two magnitudes. In general, the actual the outcome (e.g. termination time and final state) improvement will depend on the application and its timing granularity. 4.3. ROM-enhanced Abstract RTOS Our ROM-enhanced abstract RTOS is based 6. Experimental Results on the same principles as the earlier described TLM- based abstract RTOS. It extends all primitives, which potentially trigger scheduling, to interact with a centralized abstract RTOS model. However, ROM differs in the implementation of three crucial elements: (a) integration of interrupts, (b) wait-for- time statements, and (c) dispatch implementation. As a result, the ROM-based RTOS handles pre-emption With higher accuracy by allowing pre-emption of wait for time statements. Figure-5 MP3 JPEG media 5. Analysis of Potential Benefits In order to demonstrate the benefits of our In order to quantify the benefits of our ROM-based abstract RTOS model on a real-world ROM-based model, we first statically analyze five design example (Figure 7), we have implemented it applications with function level timing annotations. on top of SCE [1] using the SpecC SLDL. We In a second step, we measure one application. realized the ROM-based RTOS without any change in the simulation engine, it only uses standard primitives (events and wait-for-time statements). Note that the ROM concept is generic and can be directly applied to other SLDLs such as SystemC as well. To measure the improvements, we use the ROM-based abstract RTOS in an industrial sized example as outlined in Figure 7. An ARM7TDMI running ¹C/OS-II [13] concurrently decodes a MP3 stream and encodes a JPEG picture. The processor is assisted by 3 HW accelerators, an additional set of Figure-4. Statically analyzed TLM ISR latency. HW units perform input and output. We focus in this simulation on the audio output. The ARM writes the decoded samples into the AC97 controller, which feeds them via an AC-Link to an AC97 codec [12]. 76 | P a g e
  • 4. N.Vignesh, Venkadesh.R, DR.K.Rajan / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 2, Issue 5, September- October 2012, pp.074-078 Upon a half- filled FIFO, the AC97 controller With this accuracy improvement, ROM is an enabler triggers an interrupt to the ARM which then writes to further expand the use of abstract modelling. This additional samples into the FIFO. work is the first to show that the ROM concept is applicable outside of the communication domain. Where in communication modelling it is tied to a particular bus model, here the ROM approach is not application specific. Any application scheduled on the ROM-based RTOS will benefit from the enhanced accuracy. References [1] T. Gr¨otker, S. Liar, G. Martin, and S. Swan. System Designwith SystemC. Kluwer Academic Publishers, 2002. [2] Z. He, A. Mok, and C. Peng. Timed RTOS Figure-6 Measured Interrupt Latency Modelling for Embedded System Design. In RTAS, San Francisco, 2005. This Figure 6 shows the ISR latency for [3] K. Hines and G. Borriello. A Geographically three solutions: execution on a cycle accurate ISS [2], Distributed Framework for Embedded simulation using the TLM-based RTOS, and using System Design and Validation. In DAC, San our ROM-based solution. The logarithmic x-axis Francisco, CA, June 1998. denotes the ISR latency in CPU cycles. The y-axis [4] S. Honda et al. RTOS-Centric denotes the cumulative probability. As an example, Hardware/Software Cosimulator for the TLM line reads 0.41 at 1000 cycles, indicating Embedded System Design. In that 41% of the ISR invocations will be delayed by CODES+ISSS, Stockholm,Sweden, Sept. 1000 cycles or less. Table 2 shows the same data in 2004. numerical form. [5] Y. Hwang, S. Abdi, and D. Gajski. Cycle Approximate Retargettable Performance Estimation at the Transaction Level. In DATE, Munich, Germany, Mar. 2008. [6] Intel Corporation. Audio Codec '97 Component Specification, Sept. 2000. [7] H. Posada et al. RTOS modelling in Our ROM-based abstract RTOS model, on SystemC for real-time Embedded SW the other hand, shows a very tight distribution. The simulation: A POSIX model. Design minimal latency and the 96th percentile are only 2 Automation For Embedded Systems, cycles apart. Interestingly, the maximum observed 10(4):209.227, Dec. 2005. latency reached almost 10,000 cycles. Here, the [8] G. Schirner and R. D¨omer. Result Oriented interrupt occurred while the CPU just started another Modeling a Novel Technique for Fast and ISR. Since both interrupts use the same priority level, Accurate TLM. IEEE TCAD,1688.1699, no pre-emption occurred and the measured ISR Sept. 2007. started late. The ROM ISR latency distribution [9] H. Tomiyama et al. Modeling fixed-priority matches the CPU within 8% in terms of average and pre-emptive multi-task systems in SpecC. In 50th percentile. At this point, we do not model RTOS SASIMI, Nara, Oct. 2001. critical sections, hence ROM does not show the same variation the CPU does. N.Vignesh @ Selvaganapathy received 7. Conclusion B.Tech Degree in 2007 in Electrical In this Paper, we have presented a novel and Electronics Engineering from Sri approach for modeling preemption in an abstract Manakula Vinayagar Engineering RTOS model. Our solution is based on the Result College affliated to Pondicherry Oriented Modeling technique, previously applied University and M.E Embedded System Technolgies only to communication modeling. While a TLM- degree received in the year 2009 from Vel Tech based RTOS model relies on fine-grained timing Engineering College affliated to Anna University annotations to emulate preemptions, our ROM-based chennai. He has 3 years of teaching experience in model allows accurate preemption at any point. ROM engineering colleges. His Research are interest in significantly increases the timing accuracy of Speed Control of Electrical Machine, Switching preemption simulation without demanding fine- Converter Technolgy and Drives. He has published 2 grained timing information and without reducing international Journals, 2 International conferences simulation performance. and attended Faculty Development programmes. He 77 | P a g e
  • 5. N.Vignesh, Venkadesh.R, DR.K.Rajan / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 2, Issue 5, September- October 2012, pp.074-078 is currently working as a Assistant Professor in the Department of Electrical and Electronics Engineering, Vel Tech Engineering college, Chennai-62, India. . Venkadesh.R completed his B.E. Computer Science and Engineering from University of Madras in 1999 and M.Tech Electronics and Communication Engineering from Pondicherry University in 2004. He has 13 years of teaching experience in engineering colleges. He has published 2 international Journals, 3 International conferences, attended workshops and Faculty Development programmes. Interested area is Communication and Networking. At present he is working as Vice-Principal and Assistant Professor, Department of Electronics and Communication Engineering, Vel Tech Engineering college, Chennai-62, India. K.Rajan completed his B.E. Electrical and Electronics and M.E. Applied Electronics at P.S.G. College of Technology, Coimbatore. He has completed his Ph.D. from J.N.T.U. Anantapur, AP in high frequency power system for industrial and commercial zones. He has 19 years of industrial experience in R&D, production and 9 years of teaching experience in engineering colleges. He has published 4 international and national journals. He also presented papers in 14 international and national conferences. Interested area is power electronics and power system. At present he is working as Principal in Vel Tech Engineering College. – RS Trust. 78 | P a g e