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

<div class="post-metadata">

**Author:** ![Ankit\_Patel](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/ankit_patel/32/1302_2.png) [@Ankit\_Patel](https://verificationacademy.com/forums/u/Ankit_Patel)\
**Post date:** [September 22, 2014, 5:19pm UTC](https://verificationacademy.com/forums/t/queue-and-mailbox/28832/8 "2014-09-22T17:19:04Z")

</div>

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

Mailbox is similar to a queue, which allows only atomic operations. They can be bounded/unbounded. Bounded means it can be configured to fix size. Mailbox size can be configured to fix or unbounded while queue size is unbounded. Get/put task is used to suspend a bounded mailbox. That’s why mailbox is used more for communication between threads. FIFO can be implemented using mailbox. While FIFO or LIFO can be implemented using queue.

---

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