[m-rev.] for review: Add thread.spawn_native/4 and thread.spawn/4.

Peter Wang novalazy at gmail.com
Fri Jun 27 15:56:23 AEST 2014


On Fri, 27 Jun 2014 14:58:21 +1000, Paul Bone <paul at bone.id.au> wrote:
> 
> Hi, we're working on the same code so I thought I'd let you know what my
> intentions are here WRT threading on Java.
> 
> I'm writing some thread pool code for Java that will make tasks (created by
> spawn, and in the longer term parallel conjunctions) cheaper.  That is they
> will be closures until they begin execution (like sparks).  I have no
> problem with implementing spawn_native as a full Java thread and intend to
> do this.

Is there any reason to do so in the standard library?  You can create a
thread pool in the user program and feed them closures via a channel.

For parallel conjunction, I've seen that Java has some builtin classes
that could help, like ForkJoinPool?  I haven't really looked into it.

Peter



More information about the reviews mailing list