资 源 简 介
MOVED
to https://github.com/gerixx/gfork
Introduction
Tasks can be implemented in any public method of a Serializable class. Per default a method public void run() is used to execute a task, therefore it has to implement interface java.lang.Runnable.
Example:
```
Fork f = new Fork(new MyTask());
f.execute();
f.waitFor();
...
class MyTask implements Serializable, Runnable {
public void run() {
...
}
}
```
The fork process ends when the MyTask method run finishes.
Description
Term fork is borrowed from fork processes on Unix systems. In Java 6 are Unix like forks not possible. The upcoming release of Java 7 (end of year 2010) will support a Fork/Join mechanism, which seems to come very close to real forks, but also with some restr