java.util.concurrent
Difference between Executor and ExecutorCompletionservice in java
As the question title itself says what is the difference between Exe开发者_StackOverflow中文版cutors and ExecutorCompletionService classes in java?[详细]
2023-04-13 00:43 分类:问答Delay notification for lock acquisition in Java
We have a use case where we need to acquire a lock and send a notification if acquiring the lock takes more than 5 mins. We should still be waiting for the lock forever.[详细]
2023-04-12 19:04 分类:问答Need to know object locking information
In java, I have created an object with global scope. At some point I am in a diff开发者_运维技巧erent thread and need to know whether the global object is currently locked by any threads.[详细]
2023-04-09 10:52 分类:问答Thread.interrupt() and java.io.InterruptedIOException
I\'m running Java 1.5 on Solaris 10. My program is a standalone java program, using java concurrency package and log4j-1.2.12.jar to log certain information. primary logic is as below[详细]
2023-04-09 01:26 分类:问答Handling java.util.concurrent.Future with null result
If I submit task, and futureTask.get() returns null, I would like to process what I sent in the Callable object another way.When debugging, I can see that my Future has a private final member called \[详细]
2023-04-04 18:48 分类:问答Scheduling a Callable at a fixed rate
I have a task that I want to run at a fixed rate. However I also need the result of the task after each execution. Here is what I tried:[详细]
2023-04-02 21:39 分类:问答Polling Multiple Threads and CPU Usage
I have a call that receives a list of jobs from the user say user posted 3 jobs A, B and C, they all开发者_JS百科 start execution in their own threads AT,BT and CT, then I start monitoring these 3 thr[详细]
2023-03-30 03:54 分类:问答Looking for an unbounded, queue-based, concurrent implementation of java.util.Set
I\'m looking for an implementation of java.util.Set with the following features: Should be concurrent by no means of synchronized locking; So it\'s obvious that I don\'t want to use Collections.sync[详细]
2023-03-28 23:39 分类:问答ExecutorService awaitTermination gets stuck
I made a fixed size thread pool with Executors.newFixedThreadPool(2), and I executed 10 Runnable objects. I set breakpoints and traced through the execution. However, fixedSizeThreadPool.awaitTerminat[详细]
2023-03-28 05:48 分类:问答Manipulate Thread Implementation in JVM
Recently, I\'ve been working on the deployment of concurrent objects onto multicore. In a sample, I use BlockingQue开发者_运维知识库ue.take() method whose specification mentions that it is blocking. I[详细]
2023-03-21 15:45 分类:问答