About 4,620,000 results
Open links in new tab
  1. multithreading - What's a monitor in Java? - Stack Overflow

    Dec 16, 2014 · A monitor is an entity that possesses both a lock and a wait set. In Java, any Object can serve as a monitor. For a detailed explanation of how monitors work in Java, I …

  2. java - Can anyone explain thread monitors and wait? - Stack …

    Aug 24, 2010 · The condition variable is shared state, so it needs to be locked to avoid race conditions between threads that want to wait and threads that want to notify. Instead of …

  3. In Java, what is the difference between a monitor and a lock

    Apr 2, 2018 · Monitors Monitor is a synchronization construct that allows threads to have both mutual exclusion (using locks) and cooperation i.e. the ability to make threads wait for certain …

  4. What's the meaning of an object's monitor in Java? Why use this …

    Mar 24, 2012 · The Java Virtual Machine uses monitors to support multithreading. Monitors achieve this through two concepts - Mutual exclusion while running the threads (here is where …

  5. "Monitor" in java threads - Stack Overflow

    Oct 1, 2019 · In the context of Java programming, the monitor is the intrinsic lock (where intrinsic means "built-in") on a Java object. For a thread to enter any synchronized instance method on …

  6. How to monitor Java memory usage? - Stack Overflow

    There are tools that let you monitor the VM's memory usage. The VM can expose memory statistics using JMX. You can also print GC statistics to see how the memory is performing …

  7. Watching a Directory for Changes in Java - Stack Overflow

    52 I want to watch a directory for file changes. And I used WatchService in java.nio. I can successfully listen for file created event. But I can't listen for file modify event. I checked official …

  8. java - How to check heap usage of a running JVM from the …

    Can I check heap usage of a running JVM from the commandline, I mean the actual usage rather than the max amount allocated with Xmx. I need it to be commandline because I don't have …

  9. File changed listener in Java - Stack Overflow

    Jan 30, 2009 · 120 I've written a log file monitor before, and I found that the impact on system performance of polling the attributes of a single file, a few times a second, is actually very …

  10. Java Garbage Collection Monitoring - Stack Overflow

    Before the collection, the survivor space was 12.44% utilized, but after this collection it is only 7.74% utilized. More heavyweight options are profilers, e.g. JVisualVM with GC monitoring, or …