Novel Real Time Scheduling Algorithm For Embedded Multimedia Applications
Novel Real Time Scheduling Algorithm For Embedded Multimedia Applications
Novel Real Time Scheduling Algorithm For Embedded Multimedia Applications
3, 2011
Department of Electronics & Communication Engg. Dr. K.N.Modi University, Newai, Rajasthan, India vishal.s.vora@gmail.com
2
Department of Electronics & Communication Engg. M.A.N.I.T., Bhopal, Madhya Pradesh, India asomkunwar@gmail.com
Abstract
For applications of embedded systems, several processors are scheduled on a processor because very limited applications are used. Recently application areas are broadened and used to be like personal computers. Operating systems are considered one of critical factors to develop embedded systems. Linux is becoming one of popular operating systems for embedded applications, because of open sources and royalty free. Since Linux is designed for general purpose applications, it is not suitable for embedded multimedia systems. For multimedia applications, it is required that the scheduler operate without jitters or jams. This paper presents a method to schedule many processes by guaranteeing quality of services for video and audio. This goal is achieved through the mixed scheduling using critical based EDF and round robin method to utilize the CPU time. Simulation results show that the proposed algorithm decreases the number of violations and schedules many processors effectively for multimedia embedded application.
Special Issue
Page 69 of 95
2. Scheduling Algorithms
Embedded systems are designed to perform specific applications. To design and implement embedded systems for multimedia applications, the scheduling algorithm is the most critical factor in operating systems. Several scheduling algorithms are discussed briefly.
3. Proposed Algorithm
In Section 2, four algorithms are introduced briefly and discussed their advantages and disadvantages. Those are not suitable to schedule multimedia data for embedded systems. The scheduling scheme of the proposed algorithm is based upon the CPU utilization factor. If the utilization factor is zero, CPU is idle. If the utilization factor is one, CPU is loaded in full and there is no time quantum to use other tasks. If the utilization factor is less than the threshold value, the scheduler uses EDF algorithm. If the utilization factor is equal to or higher than the threshold value, the scheduler selects the most critical
Special Issue
Page 70 of 95
International Journal of Advances in Science and Technology, Vol. 3, No.3, 2011 process first. The threshold value is determined by applications of embedded systems Because EDF only considers the deadline of process and does not select critical processes, critical processes may not be scheduled at a given time. It is very important to schedule the most critical process first. And the next less critical processes or general processes must be scheduled. This method guarantees CPU time for critical processes properly. Figure 1 shows a simple flowchart of the proposed algorithm.
4. Simulation
The proposed algorithm is simulated and verified its performance. CHEDDAR simulator is used to evaluate the performance of the algorithm [13]. For simulation, the number of deadline violation is measured while the number of processes is increased. Processes for simulation are categorized to three types, which are regular processes, audio and video processes and mixed priority processes. Also the number of context switching is measured. The threshold value is 0.9 for this experiment.
Start
Yes Based on Critical Factor Select the most critical Process first
No
Yes
No Is new process?
Special Issue
Page 71 of 95
Special Issue
Page 72 of 95
Special Issue
Page 73 of 95
5. Conclusion
Linux assigns CPU time to each process fairly but real-time scheduling algorithms select the next process according to its schedule policy. EDF shows the good scheduling performance by simulation results. Since EDF only considers deadline, it is not adequate for multimedia embedded systems. For multimedia applications, the proposed algorithm reduces the number of violation by implementing the CPU utilization factor. Also the context switching number is reduced up to 60% compare to the time sharing scheme and up to 10% compare to the EDF algorithm. This paper proposes a method by modified EDF based on critical factor and CPU utilization factor. The proposed algorithm shows low deadline violations and stable although number of processes is increased.
6. References
[1] M. Beck et al. Linux Kernel Internals, 2nd Ed, Addison-Wesley, 1998. [2] Sokolsky O., "Resource Modeling for Embedded System Design," IEEE Workshop on Software Technologies for Future Embedded and Ubiquitous System, PP. 99-103, May. 2004 [3] Young-Hwan Park, Embedded System & Embedded Linux, Scitec media, 2002 [4] Yoon-Mi Park, Embedded Linux System Design and Implementation, SCI 2003 autumn , Apr. 2003 [5] Shahid H. Bokhari, "The Linux Operation System," IEEE computer, Vol. 28, No. 8, 1995 [6] Diniel P. Bovet, Marco Cesati, Understanding the Linux Kernel, 2nd Edition, O' REILLY, September, 2003. [7] C. L. Liu, J. W. Layland, "Scheduling Algorithm for Multiprogramming in a Hard Real-Time Environment," Journal of the ACM, 20-91, Jan, 1973. [8] Ralf Steinmetz, "Analyzing the Multimedia Operating System," IEEE Multimedia, Spring, 1995. [9] P. Goyal, X. Guo, H. M. Vin, "A hierarchical CPU scheduler for multimedia operating system," Proc. of the Symposium on Operating System Design and Implementation, October, 1996. [10] J. Y. T Leung, M. L. Merrill, "A Note on Preemptive Scheduling of Periodic Real-Time Tasks," Information Processing Letters, PP.115, Nov, 1980. [11] C. M. Krishna, Kang G. Shin, "Real Time System," The McGraw-Hill Companies, Inc, 1995. [12] R. Steinmetz, "Analyzing the multimedia operating system," IEEE Multimedia, pp. 68, Spring, 1995. [13] The cheddar project. "http://beru.univ-brest.fr/ ~singhoff/ cheddar".
Authors Profile
Prof. V.S.Vora is currently a research Scholar at Dr. K.N. Modi University, Newai, at Rajasthan, India. He is working as an Assistant Professor in Department of Electronics & Communication at Atmiya Institute of Technology & Science, Rajkot, at Gujarat, India. He has 6 years of experience in teaching and working in Embedded System Domain and also research with industry experts to provide novel & innovative solutions.
Dr. Ajay K. Somkumar had received his Ph.D degree from IIT Delhi, India. He is working as Associate Professor with Department of Electronics & Communication at M.A.N.I.T, Bhopal at Madhya Pradesh, India.
Special Issue
Page 74 of 95