Re: Splitting processor performance for multiple processes in Java



Mark Space wrote:
class MyTask implements Callable<MyResult> {
public MyResult call() throws Exception {
MyResult result = null;
// do stuff, then:
return result;
}
}

A nit: initializing a local variable to 'null' is not always optimal, though it is sometimes necessary.

--
Lew
.