Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7685731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:19:07+00:00 2026-05-31T19:19:07+00:00

When reading articles about Java threads, I often notice the expression: current thread is

  • 0

When reading articles about Java threads, I often notice the expression: “current thread is the owner of this object’s monitor”. I get the meaning: the thread gets the right to operate on the object. But I am puzzled why we use the phrase “the object’s monitor” instead of “the object’s lock”?

In brief, I don’t know the meaning of the word ‘monitor’
The question may be strange and simple. But I wish anybody can help to solve it. 3ks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:19:08+00:00Added an answer on May 31, 2026 at 7:19 pm

    but I am puzzled why use word “the object’s monitor” instend of “the object’s lock”?

    See ulmangt’s answer for links that explain the term “monitor” as used in this context. Note that:

    “Monitors were invented by Per Brinch Hansen and C. A. R. Hoare, and were first implemented in Brinch Hansen’s Concurrent Pascal language.”

    (Source: Wikipedia)

    Why use the term “monitor” rather than “lock”? Well strictly speaking, the terms do mean different things … especially if you use them in the way that they were originally intended to be used.

    • A “lock” is something with acquire and release primitives that maintain certain lock properties; e.g. exclusive use or single writer / multiple reader.

    • A “monitor” is a mechanism that ensures that only one thread can be executing a given section (or sections) of code at any given time. This can be implemented using a lock (and “condition variables” that allow threads to wait for or send notifications to other threads that the condition is fulfilled), but it is more than just a lock. Indeed, in the Java case, the actual lock used by a monitor is not directly accessible. (You just can’t say “Object.lock()” to prevent other threads from acquiring it … like you can with a Java Lock instance.)

    In short, if one were to be pedantic “monitor” is actually a better term than “lock” for characterizing what Java is providing. But in practice, both terms are used almost interchangeably.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Reading this DZone article about Java concurrency I was wondering if the following code:
I reading articles about XSD on w3schools and here many examples. For example this:
After reading some articles about XSS I have incorporated HTMLPurifier into my zend framework
While I was reading about session hijacking articles, i learned that it would be
I was reading this article by Brandon Aaron here , about how jquery context
I was reading a Wikipedia article about Java EE application servers here: http://en.wikipedia.org/wiki/Java_Platform,_Enterprise_Edition#Java_EE_5_certified It
I was reading this MSDN article about the usage of properties and methods in
I've been reading articles about speeding up websites by serving static content from a
I have been reading articles about state management in ASP.NET for few days for
While reading some articles about writing web servers using Twisted , I came across

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.