2 Replies Latest reply on Dec 7, 2008 10:52 AM by blublinsky

    True parallel execution in fork

      Are there plans for supporting true parallel execution in fork?

        • 1. Re: True parallel execution in fork
          kukeltje

          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

            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