-
1. Re: True parallel execution in fork
kukeltje Dec 4, 2008 6:50 AM (in response to blublinsky)There 'kind of' is, but depending what you mean by true parallel. If you make async actions in the legs of the fork and have a scheduler that has multiple threads, the actions are carried out in parallel if there are enough number of free threads.
-
2. Re: True parallel execution in fork
blublinsky Dec 7, 2008 10:52 AM (in response to blublinsky)They kinda do, but start throwing Hibernate exceptions, telling that Hibernate does not want to share context. If I put small enough timeout, they are always picked up by the same thread, if the delay is large enough, threads are different, but exceptions are thrown.
Also, this mechanism does not synchronize back to the invoker thread. They continue execution on the Executor thread and I haven't found mechanism (short of custom monitor) to synchronize process invoker on the completion of the brocess