Skip to main content

Self-accounting as Principle for Portable CPU Control in Java

  • Conference paper
Object-Oriented and Internet-Based Technologies (NODe 2004)

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 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)

    Google Scholar 

  2. 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)

    Google Scholar 

  3. 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/

  4. 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)

    Google Scholar 

  5. 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)

    Google Scholar 

  6. 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)

    Google Scholar 

  7. 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)

    Google Scholar 

  8. 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)

    Chapter  Google Scholar 

  9. Gosling, J., Joy, B., Steele, G.L., Bracha, G.: The Java language specification, 2nd edn. Java series. Addison-Wesley, Reading (2000)

    Google Scholar 

  10. Java Community Process. JSR 121 – Application Isolation API Specification. Web pages, at http://jcp.org/jsr/detail/121.jsp

  11. Lindholm, T., Yellin, F.: The Java Virtual Machine Specification, 2nd edn. Addison-Wesley, Reading (1999)

    Google Scholar 

  12. 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)

    Chapter  Google Scholar 

  13. The Standard Performance Evaluation Corporation. SPEC JVM98 Benchmarks. Web pages, at http://www.spec.org/osg/jvm98/

  14. 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

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics