}
}
};
private void newThread(String name) {
Thread workThread = isServer ? new FakeServerThread(workerTask, name, true) : new Thread(workerTask);
workThread.start();
threadIdToManager.put(workThread.getId(), this.name);
workThreads.add(workThread);
}