From: Ken A. <kan...@bb...> - 2003-03-07 16:05:56
|
At 04:05 PM 3/5/2003 -0500, Geoffrey Knauth wrote: >Tim, thanks for those code examples. I'll keep them for any possible Swing work with threads. > >However the true motivation for the question had to do with launching a few separate processing tasks in their own threads. For example, processes A1 and A2 are prerequisites for B, and we are just wondering if, in staying with JScheme, we might be able to get A1 and A2 to happen more in parallel. It's nice to know we can. This reminded me of a future implementation i just checked in in elf/future.scm (future expression) evaluates expression in a separate thread and returns a future which can be touched to get the value of the future, suspending if it's value isn't available yet. So you have one object that gives you parallelism and syncronization. |