task.delta = random();
task.count = 100;
Runnable generator = new SimpleGenerator(task);
Thread generatorThread = new Thread(generator, "Generator");
//generatorThread.setPriority(Thread.MAX_PRIORITY);
Runnable integrator = new SimpleIntegrator(task);
Thread integratorThread = new Thread(integrator, "Integrator");
//integratorThread.setPriority(Thread.MAX_PRIORITY);
//System.err.println("" + generatorThread.getPriority() + " " + integratorThread.getPriority());
generatorThread.start();
integratorThread.start();