# Disabling processes from within a function

**URL:** <https://verificationacademy.com/forums/t/disabling-processes-from-within-a-function/35567>\
**Category:** SystemVerilog\
**Tags:** fork-join\_none, SystemVerilog, disable\
**Created:** [January 4, 2019, 10:11pm UTC](https://verificationacademy.com/forums/t/disabling-processes-from-within-a-function/35567 "2019-01-04T22:11:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![agstod](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/e495f1/32.png) [@agstod](https://verificationacademy.com/forums/u/agstod)\
**Post date:** [January 5, 2019, 8:03pm UTC](https://verificationacademy.com/forums/t/disabling-processes-from-within-a-function/35567/4 "2019-01-05T20:03:04Z")

</div>

I fear the worst…

I copied and pasted Ben’s code just for sanity purposes but my simulator outputs:

# Thread\_1 start

# @ 5.000ns an\_event

# Thread\_2 start

# Ending Thread 1

_Interestingly_ I never see the message **“End Thread\_2 start”** for no matter how long I run the sim… maybe the disable is disabling the wrong thread?

I fear the worst… Questa 10.7a must have a bug. Sigh…

Thank you Ben and Dave for getting back to me.

---

_[View the full topic](https://verificationacademy.com/forums/t/disabling-processes-from-within-a-function/35567)._
