# Confusion in fork join ... disable fork

**URL:** <https://verificationacademy.com/forums/t/confusion-in-fork-join-disable-fork/28662>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog\
**Created:** [June 26, 2013, 6:12pm UTC](https://verificationacademy.com/forums/t/confusion-in-fork-join-disable-fork/28662 "2013-06-26T18:12:25Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [August 13, 2014, 7:16pm UTC](https://verificationacademy.com/forums/t/confusion-in-fork-join-disable-fork/28662/15 "2014-08-13T19:16:48Z")

</div>

_In reply to [sandy1664](https://verificationacademy.com/forums/t/confusion-in-fork-join-disable-fork/28662/14):_

You need to show how you reset the timer flag. If the timer\_flag was set to 0 and back to 1 in zero delay, there is no guarantee that the second forever loop would see timer\_flag==0 and disable the label

```auto
...
timer_flag = 0;
timer_flag <= 1; // this make sure it is 0 for one delta cycle.
...

```

---

_[View the full topic](https://verificationacademy.com/forums/t/confusion-in-fork-join-disable-fork/28662)._
