Abstract
In this paper we present a novel scheme for portable CPU accounting and control in Java, which is based on program transformation techniques and can be used with every standard Java Virtual Machine. In our approach applications, libraries, and the Java Development Kit are modified in order to expose details regarding the execution of threads. Each thread accounts for the number of executed bytecode instructions and periodically the threads of an application component aggregate the information of their respective CPU consumption within a shared account and invoke scheduling functions that are able to prevent applications from exceeding their allowed CPU quota.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Back, G., Hsieh, W., Lepreau, J.: Processes in KaffeOS: Isolation, resource management, and sharing in Java. In: Proceedings of the Fourth Symposium on Operating Systems Design and Implementation (OSDI 2000), San Diego, CA, USA (October 2000)
Binder, W.: Design and implementation of the J-SEAL2 mobile agent kernel. In: The 2001 Symposium on Applications and the Internet (SAINT 2001), San Diego, CA, USA (January 2001)
Binder, W., Calderon, V.: Creating a resource-aware JDK. In: ECOOP 2002 Workshop on Resource Management for Safe Languages, Malaga, Spain (June 2002), http://www.ovmj.org/workshops/resman/
Binder, W., Hulaas, J., Villazón, A., Vidal, R.: Portable resource control in Java: The J-SEAL2 approach. In: ACM Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA 2001), Tampa Bay, Florida, USA (October 2001)
Binder, W., Lichtl, B.:Using a secure mobile object kernel as operating system on embedded devices to support the dynamic upload of applications. LNCS, vol. 2535. Springer, Heidelberg (2002)
Binder, W., Roth, V.: Secure mobile agent systems using Java: Where are we heading. In: Seventeenth ACM Symposium on Applied Computing (SAC 2002), Madrid, Spain (March 2002)
Czajkowski, G., Daynes, L.: Multitasking without compromise: A virtual machine evolution. In: ACM Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA 2001), Tampa Bay, Florida (October 2001)
Czajkowski, G., von Eicken, T.: JRes: A resource accounting interface for Java. In: Proceedings of the 13th Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA 1998), October 18–22. ACM SIGPLAN Notices, vol. 33(10), pp. 21–35. ACM Press, New York (1998)
Gosling, J., Joy, B., Steele, G.L., Bracha, G.: The Java language specification, 2nd edn. Java series. Addison-Wesley, Reading (2000)
Java Community Process. JSR 121 – Application Isolation API Specification. Web pages, at http://jcp.org/jsr/detail/121.jsp
Lindholm, T., Yellin, F.: The Java Virtual Machine Specification, 2nd edn. Addison-Wesley, Reading (1999)
Suri, N., Bradshaw, J.M., Breedy, M.R., Groth, P.T., Hill, G.A., Jeffers, R., Mitrovich, T.S., Pouliot, B.R., Smith, D.S.: NOMADS: toward a strong and safe mobile agent system. In: Sierra, C., Maria, G., Rosenschein, J.S. (eds.) Proceedings of the 4th International Conference on Autonomous Agents (AGENTS 2000), NY, June 3–7, pp. 163–164. ACM Press, New York (2000)
The Standard Performance Evaluation Corporation. SPEC JVM98 Benchmarks. Web pages, at http://www.spec.org/osg/jvm98/
Vitek, J., Bryce, C., Binder, W.: Designing JavaSeal or how to make Java safe for agents. Technical report, University of Geneva (July 1998), http://cui.unige.ch/OSG/publications/OO-articles/TechnicalReports/98/javaSeal.pdf
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2004 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Binder, W., Hulaas, J. (2004). Self-accounting as Principle for Portable CPU Control in Java. In: Weske, M., Liggesmeyer, P. (eds) Object-Oriented and Internet-Based Technologies. NODe 2004. Lecture Notes in Computer Science, vol 3263. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-30196-7_3
Download citation
DOI: https://doi.org/10.1007/978-3-540-30196-7_3
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-23201-8
Online ISBN: 978-3-540-30196-7
eBook Packages: Springer Book Archive