# Controlling fork join\_none threads execution

**URL:** <https://verificationacademy.com/forums/t/controlling-fork-join-none-threads-execution/34265>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, fork-join\_none-multiple-threads\
**Created:** [March 28, 2018, 5:51am UTC](https://verificationacademy.com/forums/t/controlling-fork-join-none-threads-execution/34265 "2018-03-28T05:51:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dhserfer](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/d/a9a28c/32.png) [@dhserfer](https://verificationacademy.com/forums/u/dhserfer)\
**Post date:** [March 28, 2018, 8:20am UTC](https://verificationacademy.com/forums/t/controlling-fork-join-none-threads-execution/34265/2 "2018-03-28T08:20:12Z")

</div>

_In reply to [mseyunni](https://verificationacademy.com/forums/t/controlling-fork-join-none-threads-execution/34265):_  
In my opinion, the definition of the problem is insufficient. What is:

1.) **duration** of the inner loop?  
2.) Do you intend to terminate the inner loops at the end of some duration? Or will they run to completion?  
3.) In your last sentence you stated that you wanted to wait for the first iteration of the outer loop to complete before beginning the next iteration. If that is what you want, why do you need an inner and outer loop at all? Just fork the outer and inner loops off with a **fork/join**.

Ignoring my confusion…I would simply state that if you use **fork/join** instead of **fork/join\_none** on the inner loops, then move the **wait fork** so that it executes after completion of the inner loop, that may be a solution, to a problem I don’t fully understand :)

---

_[View the full topic](https://verificationacademy.com/forums/t/controlling-fork-join-none-threads-execution/34265)._
