<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Multi threaded queue access</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34651/multi-threaded-queue-access</link><description>SDK14.2 
 A little background on this question. 
 I am creating a library where I need to add items to a queue and then process those items from the queue. I would like to know what SDK library would be better for this operation: nrf_queue or nrf_atfifo</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 May 2018 14:26:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34651/multi-threaded-queue-access" /><item><title>RE: Multi threaded queue access</title><link>https://devzone.nordicsemi.com/thread/133046?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 14:26:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a8e1219-d9a3-4032-9d1b-ce679f83aef7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Superpak,&lt;/p&gt;
&lt;p&gt;I think your question is if nrf_queue or nrf_fifo library is best suited for you?&lt;/p&gt;
&lt;p&gt;nrf_fifo is designed to work with bytes of data data where as &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Flib_queue.html&amp;amp;cp=4_0_0_3_34"&gt;queues &lt;/a&gt;implementation is more of object oriented concepts where you can push and pop pre defined objects. Also the queues are documented to be more interrupt safe and i am quite positive that nrf_fifo has not been tested to be interrupt safe.&lt;/p&gt;
&lt;p&gt;I would have used queues if it were me to choose.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>