Analysis of Java lock performance metrics classification

Pinguo Huang, Min Fu

Research output: Chapter in Book/Report/Conference proceedingConference proceeding contributionpeer-review

Abstract

Java locking is an essential functionality and tool in the development of applications and systems, and this is mainly because several modules may run in a synchronized way inside an application and these modules need a good coordination manner in order for them to run properly and in order to make the whole application or system stable and normal. As such, this paper focuses on comparing various Java locking mechanisms in order to achieve a better understanding of how these locks work and how to conduct a proper locking mechanism. The comparison of locks is made according to CPU usage, memory consumption, and ease of implementation indicators, with the aim of providing guidance to developers in choosing locks for different scenarios. For example, if the Pessimistic Locks are used in any program execution environment, i.e., whenever a thread obtains resources, it needs to obtain the lock first, which can ensure a certain level of data security. However, it will bring great CPU overhead and reduce efficiency. Also, different locks have different memory consumption, and developers are sometimes faced with the need to choose locks rationally with limited memory, or they will cause a series of memory problems. In particular, the comparison of Java locks is able to lead to a systematic classification of these locks and can help improve the understanding of the taxonomy logic of the Java locks.

Original languageEnglish
Title of host publication2022 International Symposium on Advances in Informatics, Electronics and Education ISAIEE 2022
Subtitle of host publicationproceedings
Place of PublicationPiscataway, NJ
PublisherInstitute of Electrical and Electronics Engineers (IEEE)
Pages407-411
Number of pages5
ISBN (Electronic)9781665463577
ISBN (Print)9781665463584
DOIs
Publication statusPublished - 2022
Event3rd International Symposium on Advances in Informatics, Electronics and Education, ISAIEE 2022 - Frankfurt, Germany
Duration: 17 Dec 202219 Dec 2022

Conference

Conference3rd International Symposium on Advances in Informatics, Electronics and Education, ISAIEE 2022
Country/TerritoryGermany
CityFrankfurt
Period17/12/2219/12/22

Keywords

  • Java locks
  • synchronization mechanism
  • performance analysis
  • classification

Fingerprint

Dive into the research topics of 'Analysis of Java lock performance metrics classification'. Together they form a unique fingerprint.

Cite this