Threads/Parallel

Just to be fair to Java: that 's only true if you do thread programming at the lowest level directly using the Thread API. Unless you write your own threadpool or something similar, almost no Java programmer would write multithreaded/paralllel code like that anymore. It’s been possible since many years to use threadpools (see java.util.concurrent.Executor & subinterfaces/classes) and now in Java 8 you can use the declarative high level API of parallel streams.

1 Like

Is there an example of how to do this? The example on Julia parallel computing is just a straight for-loop

That’s already how it’s implemented.