Concurrent Truffle languages and creating threads

Stefan Marr java at stefan-marr.de
Fri Sep 29 12:35:26 UTC 2017


Hi Christian:

> On 29 Sep 2017, at 13:29, Christian Humer <christian.humer at gmail.com> wrote:
> 
> I did not think about this. Do you actually use it?

Yes, it is quite integral to SOMns.
Everything executes on one of 4 fork/join pools (depending on the concurrency model).

All threads in my system are consequently subclasses of ForkJoinWorkerThread: https://github.com/smarr/SOMns/blob/master/src/tools/concurrency/TracingActivityThread.java#L16

> For every thread except integrator threads. We want to allow fast thread and context local data for all languages independent of the language that created it. That API did not land yet.

Is there going to be an API for efficient thread-local data, too?
And if so, what’s the design going to be, roughly?

Thanks
Stefan

-- 
Stefan Marr
School of Computing, University of Kent
http://stefan-marr.de/research/




More information about the graal-dev mailing list