Pipes and COPY-ON-WRITE
In this example, every forked process gets its own copy of the
countervariable i through copy-on-write.
committer: Markus Bröker <mbroeker@largo.homelinux.org>
public class Test {
public static void main (String args[]) {
int i;
try {
i = Integer.parseInt (args[0]);
System.out.printf ("%d%n", i + 5);
} catch (Exception e) {
e.printStackTrace ();
}
}
}