Top "Concurrent-programming" questions

In computer science, concurrency is a property of systems in which multiple computations can be performed in overlapping time periods.

Is there a Mutex in Java?

Is there a Mutex object in java or a way to create one? I am asking because a Semaphore object …

java mutex semaphore java.util.concurrent concurrent-programming
What are the main uses of yield(), and how does it differ from join() and interrupt()?

I am a little bit confused about the use of yield() method in Java, specifically in the example code below. …

java multithreading concurrent-programming yield-keyword
Java 8: Parallel FOR loop

I have heard Java 8 provides a lot of utilities regarding concurrent computing. Therefore I am wondering what is the simplest …

java for-loop concurrency java.util.concurrent concurrent-programming
How to have 2 JVMs talk to one another

I have the following situation: I have 2 JVM processes (really 2 java processes running separately, not 2 threads) running on a local …

java ipc concurrent-programming
Java blocking issue: Why would JVM block threads in many different classes/methods?

Update: This looks like a memory issue. A 3.8 Gb Hprof file indicated that the JVM was dumping-its-heap when this "blocking" …

java garbage-collection locking blocking concurrent-programming
How to explain the "deadlock" better?

I am struggling to explain "deadlock" in threads in easy words, so please help. What could be the best example …

multithreading deadlock concurrency concurrent-programming
Javafx Updating UI from a Thread without direct calling Platform.runLater

Nowadays some says it is not suitable to use Platform.runLater() for updating the UI from a non-JavaFX Thread and …

multithreading javafx task ui-thread concurrent-programming