• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. HotSpot
  4. Synchronization

Synchronization

  • Created by Christian Wimmer, last modified on Apr 23, 2008

Synchronization and Object Locking

One of the major strengths
of the Java programming language

is its built-in support for multi-threaded programs. An object that is shared between multiple threads can be locked in order to synchronize its access. Java provides primitives to designate critical code regions, which act on a shared object and which may be executed only by one thread at a time. The ¯rst thread that enters the region locks the shared object. When a second thread is about to enter the same region, it must wait until the ¯rst thread has unlocked the object again. The client compiler translates the appropriate Java bytecodes into machine code that implements an e±cient and lightweight locking mechanism.

Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.23
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 150, "requestCorrelationId": "f510ec8203e4aee1"}