executor
I do not understand this ThreadPoolExecutor behavior
I have a ThreadPoolExecutor that is constructed with an unbounded queue (LinkedBlockingQueue) and a core and max pool size set to the number of cpus (say 4).[详细]
2023-04-01 21:57 分类:问答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 分类:问答Program continues to run despite InterruptedException
I started learning java and I am开发者_高级运维 now at the concurrency chapter. After reading some stuff about concurrency I tried an example of my own.[详细]
2023-03-28 06:17 分类:问答Could not start more threads despite using Executors
i have been advised to use Executors.newCachedThreadPool() which will be able to solve problems when over-spawning threads.[详细]
2023-03-23 21:38 分类:问答ScheduledExecutorService multiple threads in parallel
I\'m interested in using ScheduledExecutorService to spawn mu开发者_如何学运维ltiple threads for tasks if task before did not yet finish. For example I need to process a file every 0.5s. First task st[详细]
2023-03-23 12:59 分类:问答RejectedExecutionException even when ExecutorService is guarded by isShutdown()
I\'ve got a problem that\'s been driving me nuts for a while and I need to consult your collective wisdom.[详细]
2023-03-15 15:45 分类:问答java-Executor Framework
Please look at my following code.... private static final int NTHREDS = 10; ExecutorService executor = Executors.newFixedThreadPool(NTHREDS);[详细]
2023-02-16 10:12 分类:问答Is it just me or something is seriously wrong with new Python futures module on windows
I am on windows XP and I have problems with new Python 3.2 futures module. It seems I am unable to get ProcessPoolExecutor to work.[详细]
2023-02-14 05:43 分类:问答Stop Executor when a Callable returns a specific result
I\'d like to stop an Executor from running any more Future objects even if they have been submitted to the Executor.[详细]
2023-02-09 06:54 分类:问答Guice: injector in provider
I know that generally injector should be used only once in all application (on startup). But i have following use case. I inject task implementation for Executor, and then inside that task i have depe[详细]
2023-02-05 23:12 分类:问答