executors Questions
6
Solved
I'm looking for a Java Executor that allows me to specify throttling/throughput/pacing limitations, for example, no more than say 100 tasks can be processed in a second -- if more tasks get submitt...
Herbst asked 6/11, 2013 at 18:26
2
Solved
I have the following code which fires hiveContext.sql() most of the time. My task is I want to create few tables and insert values into after processing for all hive table partition.
So I first f...
Jaquenette asked 5/8, 2015 at 18:48
1
The author of asio, Christopher Kohlhoff, is working on a library and proposal for executors in C++. His work so far includes this repo and docs. Unfortunately, the rationale portion has yet to be ...
Etna asked 11/2, 2017 at 15:45
3
Solved
Spark architecture is entirely revolves around the concept of executors and cores. I would like to see practically how many executors and cores running for my spark application running in a cluster...
Rebozo asked 26/8, 2016 at 8:44
2
Solved
In spark2.0, I have two dataframes and I need to first join them and do a reduceByKey to aggregate the data. I always got OOM in executor. Thanks in advance.
Data
d1 (1G, 500 million rows, cached...
Oakland asked 28/10, 2016 at 16:19
6
Solved
I have a fixed thread pool that I submit tasks to (limited to 5 threads). How can I find out which one of those 5 threads executes my task (something like "thread #3 of 5 is doing this task")?
Exe...
Smaragd asked 20/7, 2010 at 20:57
1
My understanding is that it seems very similar to Abstract Factory.
Note:
The executor interface:
public interface Executor {
public void execute();
}
And then there is an Executors class con...
Tucket asked 14/10, 2015 at 18:25
7
I'm building a (concurrent) simulator for a set of N particles that are moving in a space according to the Newton's laws.
My idea is model each particle as a task, which interacts with other partic...
Dabbs asked 5/8, 2013 at 13:16
1
Solved
I am trying to mock ExecutorService and Executors from java.util.concurrent package.
I am able to get the mocked object if I try to get the object within the same class (test class) where I am mo...
Border asked 18/12, 2013 at 13:48
2
Solved
I have this code:
ScheduledExecutorService scheduledExecutor;
.....
ScheduledFuture<?> result = scheduledExecutor.scheduleWithFixedDelay(
new SomethingDoer(),0, measurmentPeriodMillis, Time...
1
Solved
I am using an ExecutorService to implement a 3-thread pool, and CountDownLatch to monitor the completion of all threads, for further processing.
ExecutorService threadExecutor = Executors.newFixed...
Twila asked 6/3, 2013 at 11:4
3
I have a series of tasks (i.e. Runnables) to be executed by an Executor.
Each task requires a certain condition to be valid in order to proceed. I would be interested to know if there is a way to s...
Arbuckle asked 20/11, 2012 at 20:54
3
Solved
I have a task which requires me to schedule tasks and remove them when a certain event occurs. I'm using a ScheduledThreadPoolExecutor to schedule the tasks, that's pretty straightforward. But, I f...
Lodicule asked 24/9, 2012 at 16:38
3
Solved
My understanding of a Producer-Consumer pattern is that it could be implemented using a queue shared between the producer and the consumer. Producer submits work to a shared queue, consumer retriev...
Cobaltous asked 11/8, 2011 at 19:55
3
Solved
I am confused on the following:
To use threads in a Java program, the simplest way is to extend Thread class and implement the runnable interface (or simply implement runnable).
To start the thread...
Peevish asked 19/9, 2010 at 10:48
1
© 2022 - 2024 — McMap. All rights reserved.