# QUEUES

**URL:** <https://verificationacademy.com/forums/t/queues/31070>\
**Category:** SystemVerilog\
**Tags:** System-Verilog, SystemVerilog, queue, fifo\
**Created:** [September 27, 2015, 6:59am UTC](https://verificationacademy.com/forums/t/queues/31070 "2015-09-27T06:59:33Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![bdreku](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/bdreku/32/4520_2.png) [@bdreku](https://verificationacademy.com/forums/u/bdreku)\
**Post date:** [September 28, 2015, 6:20am UTC](https://verificationacademy.com/forums/t/queues/31070/5 "2015-09-28T06:20:31Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/queues/31070/4):_

Yes, I am agreed with Dave. A mailbox is a better option for a synchronization than queue.  
But, still if you want to use a common queue in two different clock cycles, then you can use size() method of queue to provide synchronization at popping clock.  
e.g.,  
if(queue.size() \> 0) queue.pop\_back();

---

_[View the full topic](https://verificationacademy.com/forums/t/queues/31070)._
