[ 
https://issues.apache.org/jira/browse/MNG-7615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17645502#comment-17645502
 ] 

ASF GitHub Bot commented on MNG-7615:
-------------------------------------

gnodet commented on PR #893:
URL: https://github.com/apache/maven/pull/893#issuecomment-1344854328

   So the PR works with 1 one thread here, but may deadlock irrespective on the 
number of threads.
   The deadlock happen in the following scenario : 3 projects P1, P2, P3, P3 
depends on P2, P2 depends on P1.  The three projects are submitted to the FJ 
pool, which is able to steal work, so that jobs may be executed without any 
particular order.
   So P2 is being executed, which requires P1. P1 is being joined by the FJ, 
but it decides to execute P3. P3 is being executed in the same thread and then 
waits for P2 being finished which can't happen.




> Multithreaded model builder
> ---------------------------
>
>                 Key: MNG-7615
>                 URL: https://issues.apache.org/jira/browse/MNG-7615
>             Project: Maven
>          Issue Type: Task
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>            Priority: Major
>
> Parsing all reactor models can be very lengthy, so use a map/reduce algorithm 
> to make the computation in parallel.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to