Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の理解では、別のスレッドを作成し、別のスレッドで compute() を実行します。join は再帰的に取得した結果をフェッチします。
fork()電話かどうか知りたいcompute()です。前もって感謝します。
fork()
compute()
メソッドはforkを呼び出しませんcompute。フォークされたタスクを作業キューにプッシュします。実行中のスレッドは、最終的にcompute自分自身を呼び出すか、他のスレッドに通知してそのタスクを盗んで計算を呼び出すかを決定します。
fork
compute