Of the course, the thread won't block itself if I do not put `synchronized
run' in the Runnable object!!!
EOT
______________________________ Reply Separator _________________________________
Subject: Can you use Java as a Job Scheduler?
Author: Peter Pilgrim at London
Date: 23/11/98 15:30
[WORK RELATED] Before I jump off the deep end.
I presume there is nothing to prevent Java being used a job scheduler.
That is the JVM creates say 3 worker threads and each of these worker
thread executes a process like `/bin/ls -l ; sleep 60'.
I asked because I have called `Process.waitFor()' to wait for the job to
complete is the past and it obvious blocks the thread, but does JVM itself
block or does it let the other threads to continue. Latter being ideal I
can then develop at home (telecomute perhaps on linux-jdk)
Pete