# \#fork-join\_any

**URL:** https://verificationacademy.com/forums/tag/fork-join-any/5911.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Resume simulation when any 2 threads out of 3 get completed within fork-join\_any](https://verificationacademy.com/forums/t/resume-simulation-when-any-2-threads-out-of-3-get-completed-within-fork-join-any/32572)

<div class="topic-metadata">

**Author:** [@Sagar\_Shah](https://verificationacademy.com/forums/u/Sagar_Shah)\
**Replies:** 9\
**Last updated:** [November 12, 2025, 5:54pm UTC](https://verificationacademy.com/forums/t/resume-simulation-when-any-2-threads-out-of-3-get-completed-within-fork-join-any/32572 "2025-11-12T17:54:15Z")

</div>

There are three parallel threads running in fork-join\_any. I want to come-out from that when any two threads get completed. How to do this?

---

## [Develop 5 threads by using threads concept and make sure if any of 3 threads are completed out of 5 threads then kill other 2 threads](https://verificationacademy.com/forums/t/develop-5-threads-by-using-threads-concept-and-make-sure-if-any-of-3-threads-are-completed-out-of-5-threads-then-kill-other-2-threads/49853)

<div class="topic-metadata">

**Author:** [@Surya\_prakash.Kapireddy](https://verificationacademy.com/forums/u/Surya_prakash.Kapireddy)\
**Replies:** 5\
**Last updated:** [March 18, 2025, 4:54pm UTC](https://verificationacademy.com/forums/t/develop-5-threads-by-using-threads-concept-and-make-sure-if-any-of-3-threads-are-completed-out-of-5-threads-then-kill-other-2-threads/49853 "2025-03-18T16:54:24Z")

</div>

develop 5 threads by using threads concept and make sure if any of 3 threads are completed out of 5 threads then kill other 2 threads.

---

## [How to achieve fork-join\_none and fork join\_any functionality using fork-join](https://verificationacademy.com/forums/t/how-to-achieve-fork-join-none-and-fork-join-any-functionality-using-fork-join/42215)

<div class="topic-metadata">

**Author:** [@MadhavSrikantam](https://verificationacademy.com/forums/u/MadhavSrikantam)\
**Replies:** 6\
**Last updated:** [March 12, 2025, 4:33am UTC](https://verificationacademy.com/forums/t/how-to-achieve-fork-join-none-and-fork-join-any-functionality-using-fork-join/42215 "2025-03-12T04:33:45Z")

</div>

//fork join\_none functionality using fork join module top; initial begin fork begin : b1 #5 $display($time, " from block b1"); end : b1 begin : b2 #10 …

---

## [My 'forever' inside a 'fork' doesn't act as I expect](https://verificationacademy.com/forums/t/my-forever-inside-a-fork-doesnt-act-as-i-expect/34126)

<div class="topic-metadata">

**Author:** [@ntmccork](https://verificationacademy.com/forums/u/ntmccork)\
**Replies:** 1\
**Last updated:** [February 23, 2018, 10:23pm UTC](https://verificationacademy.com/forums/t/my-forever-inside-a-fork-doesnt-act-as-i-expect/34126 "2018-02-23T22:23:45Z")

</div>

So I communicate with the testbench over a socket in DPI-C, waiting on and receiving data is a blocking call. When the socket returns data, C then calls a setter function in SV, and returns from DPI-C thus unblocking SV …

---

## [Forked process behaves differently with/without delay in the process. Without delay simulation is halting otherwise it is smooth (Checker vs Monitor Queue)](https://verificationacademy.com/forums/t/forked-process-behaves-differently-with-without-delay-in-the-process-without-delay-simulation-is-halting-otherwise-it-is-smooth-checker-vs-monitor-queue/33611)

<div class="topic-metadata">

**Author:** [@kb646bits](https://verificationacademy.com/forums/u/kb646bits)\
**Replies:** 3\
**Last updated:** [October 15, 2017, 3:46am UTC](https://verificationacademy.com/forums/t/forked-process-behaves-differently-with-without-delay-in-the-process-without-delay-simulation-is-halting-otherwise-it-is-smooth-checker-vs-monitor-queue/33611 "2017-10-15T03:46:32Z")

</div>

Please help me understand the following behaviour related to fork-join\_any. In my environment I have a fork-join\_any for the processes: fork generator.main(); driver.main(); input\_mon.main(); output\_mon.main(); checker…

---

## [Task which always and forever is executed](https://verificationacademy.com/forums/t/task-which-always-and-forever-is-executed/32890)

<div class="topic-metadata">

**Author:** [@saritr](https://verificationacademy.com/forums/u/saritr)\
**Replies:** 2\
**Last updated:** [February 22, 2017, 10:38am UTC](https://verificationacademy.com/forums/t/task-which-always-and-forever-is-executed/32890 "2017-02-22T10:38:44Z")

</div>

I have the following task in my monitor: virtual task run\_phase(uvm\_phase phase); //wait(vif.cyc\_tic == 1'b1) @(posedge vif.clk) #0 fact\_log2\_samp\_t = vif.fact\_log2\_samp; forever begin fork begin w…

---

## [Disable fork join when one of the tasks complete](https://verificationacademy.com/forums/t/disable-fork-join-when-one-of-the-tasks-complete/32758)

<div class="topic-metadata">

**Author:** [@saritr](https://verificationacademy.com/forums/u/saritr)\
**Replies:** 12\
**Last updated:** [January 24, 2017, 9:41am UTC](https://verificationacademy.com/forums/t/disable-fork-join-when-one-of-the-tasks-complete/32758 "2017-01-24T09:41:18Z")

</div>

I have the following code in the run\_phase of the monitor: virtual task run\_phase (uvm\_phase phase); forever begin fork monitor\_cycle\_count(); forever begin…
