Despite the upcoming java 7 standard fork/join framework, I am building some helper method that is light weight in syntax for client to run code in parallel. Here is a runnable main method to illustrate the idea. import actors.Futures object ForkTest2 { def main(args: Array[String]) { test1 test2 } def test1 { val (a, b, c) =fork({ Thread.sleep(500) println("inside fx1 ",+System.currentTimeMillis)
{{#tags}}- {{label}}
{{/tags}}