Async mode helps a little
This commit is contained in:
parent
94646a92de
commit
9e971de6b0
|
@ -16,7 +16,12 @@ import java.util.logging.Logger;
|
|||
public class Actor {
|
||||
private final static AtomicLong _count = new AtomicLong(0);
|
||||
private final static AtomicLong _actorId = new AtomicLong(0);
|
||||
protected final static ExecutorService _executor = Executors.newWorkStealingPool();
|
||||
protected final static ExecutorService _executor = new ForkJoinPool(
|
||||
Runtime.getRuntime().availableProcessors(),
|
||||
ForkJoinPool.defaultForkJoinWorkerThreadFactory,
|
||||
null,
|
||||
true
|
||||
);
|
||||
protected final static ScheduledExecutorService _scheduledExecutor = Executors.newScheduledThreadPool(Runtime.getRuntime().availableProcessors());
|
||||
|
||||
private final String _name;
|
||||
|
|
Loading…
Reference in New Issue