About 4,770,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. 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 …

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

  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

    Create an instance of a FileWatcher by passing path, an instance of an Implemented FileHandler, and types of file events that you want to monitor separated by commas. FileWatcher …

  8. How can I get screen resolution in java? - Stack Overflow

    Sep 9, 2010 · How can one get the screen resolution (width x height) in pixels? I am using a JFrame and the java swing methods.

  9. java - Is it better to synchronize with semaphores or with monitors ...

    Feb 22, 2011 · The first Java releases where only provided of Threads. Since the Java Tiger (5.0), new classes have been introduced to handle concurrency. In particular, a complete package …

  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 …