# Queue and mailbox

**URL:** <https://verificationacademy.com/forums/t/queue-and-mailbox/28832>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog\
**Created:** [September 24, 2013, 1:53am UTC](https://verificationacademy.com/forums/t/queue-and-mailbox/28832 "2013-09-24T01:53:56Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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:** [July 4, 2019, 1:14pm UTC](https://verificationacademy.com/forums/t/queue-and-mailbox/28832/13 "2019-07-04T13:14:34Z")

</div>

_In reply to [AnPham](https://verificationacademy.com/forums/t/queue-and-mailbox/28832/12):_

As an HDL, Verilog was designed as if code could be run in parallel, even though it was implemented in a single threaded program. This allows much more flexibility in optimizations of the code, as well as eventual parallel implementation.

But a semaphore also provides FIFO thread access to shared variables. It also has queues to make sure each thread waiting for access get its access in order.

---

_[View the full topic](https://verificationacademy.com/forums/t/queue-and-mailbox/28832)._
