# 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:** 6

<div class="post-metadata">

**Author:** ![AshishP](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/e9c0ed/32.png) [@AshishP](https://verificationacademy.com/forums/u/AshishP)\
**Post date:** [June 29, 2013, 10:49pm UTC](https://verificationacademy.com/forums/t/confusion-in-fork-join-disable-fork/28662/6 "2013-06-29T22:49:58Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/confusion-in-fork-join-disable-fork/28662/5):_

Hi Dave,  
In the example u mentioned above, thread f1 won’t get killed.  
Here is what IEEE 1800-2009 std, clause “9.6.3 Disable fork statement”, pg 174 says:

“The disable fork statement terminates all descendants of the calling process as well as  
================  
the descendants of the process’s descendants.”

Here is my understanding:  
Since calling process i.e. process which called “disable fork” is “t1”, all threads inside t1 and their descendants will get killed. Since thread f1 is not a descendant thread of t1 it should not get killed. I confirmed the same by simulating it w/ VCS too.

Thanks,  
Ashish

---

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