1 2 3 4 5 6
object Main extends App { while(true){ Thread.sleep(1000) println( "process " + cbt.process.currentProcessId + " is still running" ) } }