Abstract
The key for adopting the utilizationbased schedulability test is to derive the utilization bound. Given the computation times, this paper proposes two utilization bound algorithms to derive interrelease times for nonpreemptive periodic tasks, using a new priority scheme, “Rate Monotonic AlgorithmShortest Job First.” The obtained task set possesses the advantage of Rate Monotonic Algorithm and Shortest Job First priority scheme. Further, the task set is tested for schedulability, by first deriving a general schedulability condition from “problem window” analysis and, a necessary and sufficient schedulability condition for a task to be scheduled, at any release time are also derived. As a technical contribution, success ratio and effective processor utilization are analyzed for our proposed utilization bound algorithms on a uniprocessor architecture modeled using UMLRT.
1. Introduction
Tasks in a realtime system must be executed within its deadline to produce functionally correct results in a timely manner. This implies that the timing requirements of tasks, submitted to the realtime system, are known [1]. Each task in a realtime system is scheduled depending on the characteristic of the scheduling algorithm. One of the most widely used uniprocessor scheduling algorithm for periodic realtime tasks is the Rate Monotonic Algorithm (RMA), proposed by Lehoczky et al. in [2]. Let denote the task set of “” tasks in a periodic system. For each task , task utilization be the ratio of computation time to its interrelease time:. Then, system load of a periodic task system be the sum of all utilization of the tasks in. Rate Monotonic Algorithm (RMA) assigns priority—smaller the period, higher the priority, and each task has its own unique priority [3]. According to [4], set of “” independent preemptive periodic tasks are schedulable using RMA if and only if the system load is given by the following: Later, a minimum utilization bound of RMA for “” number of preemptive tasks on single processor was found to be in [5] given by the following: where is ratio between any two periods, which is less than 2.
There are two types of scheduling strategies: nonpreemptive scheduling and preemptive scheduling. In nonpreemptive strategy, tasks started to execute, would not preempt in an occurrence of higher priority tasks. A higher priority tasks will preempt any lower priority tasks in preemptive scheduling. However, nonpreemptive scheduling is being preferred because they are easier to implement and have lower runtime overhead than preemptive scheduling [6].
There is a growing interest in using the object paradigm for developing realtime software [7]. The dominance of software in realtime embedded systems design caused interest in methodologies with widely accepted notations in the software community, such as the Unified Modeling Language (UML). The Unified Modeling Language (UML) is a modeling language for capturing the specification and the implementation using the graphical notations in software community [4]. This approach describes the specification graphically, promotes correctness of the specification, and generates the test scenarios for the implementation automatically. This paper contributes an objectoriented platformbased design, for uniprocessor architecture using UMLRT to analyze the schedulability for the proposed utilization bound algorithms based on a new priority scheme “Rate MonotonicShortest Job First” (RMSJ).
In Section 2, related works to the proposed method is discussed. Section 3 describes the system model using UMLRT and notations used. Condition for schedulability of a task and general schedulability test are discussed in Sections 4 and 5, respectively. Proposed priority scheme and utilization bound algorithms are discussed in Section 6. A necessary and sufficient schedulability condition for a task to be scheduled, at any release time, is derived in Section 7. Section 8 deals with performance evaluation for the proposed algorithms. Finally, Section 9 concludes with results analyzed.
2. Related Works
For singleprocessor scheduling, Jeffay et al. [6] presented an exact schedulability test of pseudopolynomial timecomplexity for a periodic or sporadic task set under nonpreemptive EDF scheduling on a singleprocessor. George et al. [8] established exact schedulability tests for both nonpreemptive EDF and nonpreemptive fixedpriority scheduling on a single processor with pseudopolynomial timecomplexity and addressed general task models in which relative deadlines and periods are not necessarily related. Baruah et al. [3] addressed schedulability analysis for nonpreemptive recurring tasks, which is the general form of nonpreemptive sporadic tasks, and showed that the nonpreemptive schedulability analysis problem can be reduced to a polynomial number of preemptive schedulability analysis problems.
The admission control is an algorithm that depends on the scheduling policy and ensures that only tasks that will meet their deadlines are accepted into the system [9]. Accordingly, general bound is derived and used for admission control of RMSbased systems that only requires information about the number of tasks to be admitted in the system. If more information about the tasks characteristics is analyzed, a better admission control can be obtained. For example, the exact characterization described by Lehoczky et al. in [2] uses computation time () and interrelease time () values for admission control. In [10], Burchard et al. used knowledge about the periods of the tasks to obtain better admission control for RMS tasks. Clearly, using more information increases the complexity of the admission control since there are more variables to take into consideration during admission control. In [11], Lu et al. derived a schedulability bound for nonpreemptive Rate Monotonic scheduling by using period ratio of the tasks to provide a guarantee that tasks will meet their deadlines. When uniprocessor priority scheme is considered, Liu and Layland [4] showed that Rate Monotonic priority ordering (RMPO) is optimal for independent synchronous periodic tasks. Leung and Whitehead [12] showed that deadline monotonic priority ordering (DMPO) is optimal for independent synchronous tasks with constrained deadlines. Audsley [13] devised an optimal priority assignment (OPA) algorithm that solved the problem of priority assignment for asynchronous tasksets, and for tasks with arbitrary deadlines.
In [1], Guan et al. addresse schedulability test conditions for nonpreemptivefixed priority (NPFP), building upon the “problem window analysis” for preemptive scheduling for multiprocessors. First, lineartime general schedulability test condition that works not only on NPFP, but also any other workconserving nonpreemptive scheduling algorithm is derived; then an analysis is done on a test condition of quadratic timecomplexity for NPFP, which has significant performance improvement comparing to the first one. In [14] Bertogna et al. derived a general method for schedulability conditions for multiprocessor realtime systems in a “problem window” and then it is tightened and analyzed for two algorithms, namely, Earliest Deadline First (EDF) and Fixed Priority (FP).
This concept of “problem window” analysis done in multiprocessors is generalized on uniprocessor environment for which task schedulability condition and schedulability at any release time for a periodic task are derived. Further two utilization bound algorithms are proposed using a new priority assignment scheme “Rate MonotonicShortest Job” (RMSJ) and task schedulability is analyzed.
3. System Model Using UMLRT and Notations
Consider a work conserving nonpreemptive uniprocessor realtime system. A task set, where, there are “” tasks, each task is characterized by two parameters—computation time and interrelease time or period , with an interpretation that tasks are generated in every integer multiples of interrelease time to execute units before the next integer interrelease time . All tasks generated are independent and are executed on a nonpreemptive uniprocessor architecture modelled using UMLRT. The notations used are described in Table 1.
3.1. UMLRT
UMLRT is a modeling tool for realtime, developed by the Rational Corporation. UMLRT uses Unified Modeling Language (UML) to express the original ROOM (RealTime ObjectOriented Modelling) concepts and extensions. It includes constructs for modelling both behaviour and structural concepts of eventdriven realtime systems. Rational Rose Real time is a software development environment tailored to the demands of real time software. It is used to create models of the software system based on the UML constructs, to generate code, compile, and then run and debug the application. Rational Rose Real time can be used through all phases of the software development lifecycle, through design, implementation, test, and final deployment. UMLRT profile introduces a set of common scheduling annotations which are fairly sufficient to perform schedulability analysis [15]. Using Rational Rose Real time developers can execute, test, and debug models at the modelling language level using visual observation tools.
In UMLRT the four principle constructs for modelling structure are capsules, ports, protocols, and connectors [5].
3.1.1. Capsules
The fundamental modelling constructs of UMLRT are capsules. Capsules are distributed architectural active objects that interact with other capsules exclusively through one or more ports. The behavior of a capsule is modelled in the state transition diagram that can process (send and receive) messages via their ports, while its (hierarchical) structure is modelled in the capsule structure diagram. The structure diagram for the proposed model using UMLRT is shown in Figure 1.
3.1.2. Ports
Through ports, messages are sent and received to and from capsule instances. Ports connected to a state machine of a capsule (end port) can handle messages sent to them. Capsules and its associated input and output ports are shown in Table 2.
3.1.3. Protocols
Protocols define a set of messages exchanged between a set of capsules. Important timer ports and messages used in capsules are shown in Table 3.
3.1.4. Connectors
Connectors capture the key communication relationships between capsule roles. They interconnect capsule roles that have similar public interfaces through ports.
4. Condition for Schedulability of a Task
A necessary condition for deadline miss to occur for , is that the worstcase work load, by all other tasks in the task set except is no less than . is the latest feasible start time for , to start execution in order to meet its deadline as shown in Figure 2.
The aim is to compute the individual contribution of worstcase workload by other tasks, that is, , in the problem area, as shown in Figure 2. The work load in can be categorized into three parts as shown in Figure 3.
Initial Job. The contribution of task , in problem area , is when computation of task started earlier or at and having deadline in the problem area.
Intermediate Job, . The computation of a task started in and having deadline in the problem area earlier to .
Final Job. The contribution of task in problem area is when computation of task started in and having deadline later or at . Assume that all tasks contribute maximum in the problem area. This is a pessimistic but safe approximation to count the workload of a task in the problem area [3].
For to be scheduled, where
5. General Schedulability Test
The entire task set is schedulable only when each task is schedulable. The computation timings of tasks are arranged, .
Theorem 1. Highest priority task is schedulable by a work conserving nonpreemptive scheduling algorithm if
Proof. By contradiction if, , then the highest priority task may miss its deadline. We recall that is the maximum computation time in the subset of . For a nonpreemptive architecture, any will not be preempted, if it starts to execute before the release time of any higher priority task. Consider that . From Figure 4, it is shown that , which started to execute at , is still executing beyond causing the task to miss deadline.
Therefore, if , then will be schedulable.
Theorem 2. A task is schedulable by a work conserving nonpreemptive scheduling algorithm if
Proof. In [3], an algorithm is work conserving, if there are no idle processors, when a ready task is waiting. Schedulability condition for a task is given by (3) and (4). The final job contribution is bounded in the second term RHS of (7). Therefore, from (4) the general schedulability for will be
Equation (8) indicates pessimistic and sufficient condition for a task to be schedulable. A task will be scheduled in the task set if (8) is satisfied. Therefore,
dividing by ,
Equation (11) is the condition for a task to be schedulable.
Sufficient schedulability condition for least priority task from (9),
, is neglected in (12), because schedulability condition for to execute is analyzed.
6. Proposed Utilization Bound Algorithms
6.1. Rate Monotonic AlgorithmShortest Job First (RMASJF)
In shortest job first (SJF), priority is given to shortest computation time, independent of interrelease time of the tasks, thus minimizing the waiting time and improving the throughput [6]. Rate monotonic algorithm (RMA) is of great practical importance because priority is given to tasks with lesser release time. This paper proposes two utilization bound algorithms to derive a task set which satisfies both RMASJF priority scheme; that is, higher priority tasks will have lesser computation time and lesser interrelease time.
When a set of computation times are given, our aim is to design a work conserving task system, to utilize the available processing capacity. To achieve maximum processing capacity, system load must be equal to unity for a uniprocessor system [8]. In [3], an algorithm is work conserving, if processor is not idle, when a ready task is waiting. Therefore, behavior of the system developed is strongly dependent upon the periods of the task comprising the task set [16].
6.2. Method 1: Work Conserving Utilization Bound
Initially the algorithm aims to schedule “” tasks, by deriving the highest priority task release time . Schedulability of each task is analyzed using the general schedulability test. Later of tasks are varied to find an optimized utilization bound in to schedule “” tasks utilizing the processor effectively (see Algorithm 1).

6.3. Method 2: WorstCase Utilization Bound
In method 2, the worstcase latency of each task is considered to compute its interrelease time. Worstcase response time () of each task is found at critical instant, where all tasks are released instantaneously (see Algorithm 2).

7. Sufficient Schedulability Condition at Any Release Time
Sufficient schedulability condition for in its release time is derived. Let be the problem area of shown in Figure 5, and is the latest feasible start time to execute , for to be schedulable.
Consider the worstcase latency analyzed in Section 6.3. The contributions of worstcase work load of other tasks are analyzed under two cases.
Case A. , released before .
Case B. , released in [, ].
7.1. Case A: , Released before
7.1.1. Released before
Figure 5 shows released at before :
Lemma 3. Task released before , will contribute initial job or intermediate job, if .
Proof. To prove by contradiction, if , then this task does not contribute any workload in work area; therefore, for this condition there is no initial or intermediate job. Therefore, will contribute initial job or intermediate job.(1)Initial job will be present if, (i), then initial job will be ;(ii), then; therefore, the initial job will be .(2)Intermediate job will be present if, .
For the above condition,
Recalling that all tasks contribute maximum in the problem area, is assumed to start execute in and has deadline in problem area. So, will contribute intermediate job, .
7.1.2. Released before
Figure 6 shows released at before . Maximum contribution of any will be the task having maximum computation time as initial job released at and started to execute before . Therefore, initial job = .
7.2. Case B: , Released in ,
7.2.1. Released
Lemma 4. If released will contribute intermediate job, if, while is pending.
Proof. Recalling that, contribution of the task started to execute in problem area and finishes before is intermediate job.
For
The above equation shows that there are intermediate jobs contributed by, in the problem area while is pending.
Lemma 5. If released will contribute final job, if
Proof. Consider Figure 7. By contradiction, if , then by Lemma 4, this condition possesses intermediate job. Therefore, will contribute final job (see Algorithm 3).

7.2.2. Released in
Lemma 6. If released will have no contribution in for scheduling .
Proof. Any released in [], as shown in Figure 7, will have no contribution in because anyis executed. So, released in [] will contribute no workload in .
8. Performance Evaluation
Example 1. Given the computation time = (6, 5, 7, 3, 4, 2) the aim is to find optimum interrelease time for each task to achieve 100% success ratio by utilizing the processor effectively by work conserving utilization bound algorithm.
First computation times are arranged in nondecreasing order:
The various system load values by varying are shown in Table 4. All timings are in seconds.
Maximum utilization bound was found to be 0.9969 for the task set given below: . When schedulability of was analyzed, ; ; = 36 − 7 = 29; = 0.9964. Lowest priority task will be schedulable if (12) is satisfied: Though the condition is satisfied, is unschedulable practically because of runtime of the algorithm. The runtime of the algorithm for six tasks is found to be 0.37599 seconds. In order to compensate the runtime, period is incremented and the problem is analyzed practically.
For the task set, , utilization bound , the task set is found schedulable using processor effectively as shown in Figure 8.(i)When , all tasks are schedulable, using less processor capacity.(ii)When task set is found unschedulable because of runtime of algorithm.When task set is schedulable using processor capacity effectively with 97.5% as showed in Table 5. For the system load the effective processor utilization is found to be 97.5.
Extensive simulations are conducted in UMLRT, for the worstcase utilization bound and work conserving unity utilization bound and their performance is compared. The task parameters settings are as follows: for each task computation timings are randomly distributed in ; Ti is calculated according to the two algorithms proposed. Maximum of 14 tasks are generated, to compare the success ratio and effective processor utilization. Figure 9 shows the comparison of utilization bound derived for the two algorithms proposed. From Figure 10, the success ratio for work conserving unity utilization bound is high compared to worstcase utilization bound. Using the worstcase workload of task the utilization bound or the system load derived is heavily loaded for WorstCase Utilization Bound Algorithm. Effective processor utilized by the proposed algorithm is shown in Figure 11.
Advantage of Work Conserving Utilization Bound(i) Processor can be effectively utilized to schedule task set.
Example 2. To find whether is schedulable for the task set having as shown in Table 4 by general schedulability test.
Solution. For to be schedulable, (8) is sufficient condition: Therefore, is schedulable by general schedulability test.
When schedulability of was analyzed,; ; ; = 0.9827. Lowest priority task will be schedulable if (12) is satisfied: Similarly, all the tasks are tested for schedulability and practically found schedulable using UMLRT.
(ii) To find whether in the task set is schedulable in its 54th release.
Here , 5th task for to be scheduled, where
Case 1. 54th release time of the task , = 1134 and = 1155.
= 4; therefore, = 1155 − 4 = 1151 and = 17. Figure 12 shows the problem area of .(a)Finding initial job or intermediate job contribution of ; therefore, 4. By Lemma 3, task released before , will contribute initial job or intermediate job, if
here, .
will contribute initial job if, , accordingly for, the condition is not satisfied; therefore, it possesses only intermediate job.
will contribute intermediate job if .
Here,
+ + − = 3 > 0. Therefore, computation of a task started in and having deadline in the problem area, will contribute an intermediate job.
By Lemma 4, task released will contribute intermediate job, if
= 1151, = 1144, release time is in the problem area.
+ + is satisfied because + + = 1150 and = 1151. Therefore does contribute one intermediate job in .
By Lemma 4, if released will contribute final job, if
= 1144, release time is in the problem area; therefore, does not contribute final job in because + + .
Therefore, the final job = 0.
So, the total worstcase workload contribution of is = 2(intermediate job) = 4.
Likewise, the other task contribution on is found out similarly. One has
; therefore, will be scheduled. Figure 13 shows the simulation result of in UMLRT.
9. Conclusion
Two algorithms with a new priority assignment scheme (RMASJF) is proposed which possesses advantages of both rate monotonic and shortest job first, for a nonpreemptive periodic task set, on an uniprocessor architecture modelled using UMLRT. Further, a general schedulability test is derived using “problem window” analysis, to check for task schedulability. A sufficient schedulability condition to verify whether a periodic task is schedulable in any release time is also proposed. Task set generated is analyzed for the above schedulability test and condition with typical examples. The performances of the proposed algorithms are also analyzed with success ratio and effective processor utilization using UMLRT. In future aperiodic dependent nonpreemptive task with the proposed scheme on multiprocessor architecture modelled using UMLRT will be analyzed.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.