In reply to dave_59:
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