executorservice
How to free up memory of an Executor Service that has been shut down for garbage collecting?
I am working on at the moment on a program that uses a lot of threads. A- My question is related to freeing up the executors once they have shut down for garbage collecting, what is the best way? I[详细]
2023-04-11 11:45 分类:问答ListenableFutureTask / ExecutorService
I\'ve Guava in my Classpath and want to use ListenableFutures, but currently I don\'t know how to submit ListenableFutures or is it currently only possible to use them without an executor in the calli[详细]
2023-04-07 01:24 分类:问答Multithreading -- matching instances
I want to run two XPath-Expressions concurrently on two revisions of a database which both return results from an Iterator/Iterable and match resulting nodes with nodes in a List.[详细]
2023-04-06 14:44 分类:问答concurrent application not as fast as a singlethreaded
I\'ve implemented a pipeline approach. I\'m going to traverse a tree and I need certain values which aren\'t available beforehand... so I have to traverse the tree in parallel (or before) and once mor[详细]
2023-04-04 06:21 分类:问答How do I efficiently process multiple results from an Executor Service
I\'n new to ExecutorService, but am unsure about my approach to this. I could be dealing with up to 100 threads for a known task.[详细]
2023-04-03 01:32 分类:问答Java using ExecutorService,CompletionService,BlockingQueue,and Observer correctly?
So, I\'m pretty new to multi-threading and have been using this idea in all my programs lately. Before I start using it more I really want to make sure it is a correct efficient way to implement multi[详细]
2023-04-02 16:39 分类:问答List of Future-Instances
I\'d like to replace a List of Future-Instances with something more performant. Currently I\'m traversing a tree and submit a Callable to determine the number of descendant-or-self nodes for each node[详细]
2023-04-02 07:46 分类:问答Java Executor Service Thread Pool [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-04-01 03:16 分类:问答ExecutorService slow multi thread performance
I am trying to execute a simple calculation (it calls Math.random() 10000000 times). Surprisingly running it in simple method perfo开发者_运维技巧rms much faster than using ExecutorService.[详细]
2023-03-30 14:16 分类:问答Producer-Consumer with ExecutorService.newFixedThreadPool - How many threads are created?
public class MainClass { private static final int producerPoolSize = 10; private static final int consumerPoolSize = 20;[详细]
2023-03-29 14:18 分类:问答