<div dir="ltr">Hi Andrew,<div><br></div><div>Your suggestion helps and I am going to work on it today. Thank you.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 23, 2020 at 8:14 PM Andrew Butterfield <<a href="mailto:Andrew.Butterfield@cs.tcd.ie">Andrew.Butterfield@cs.tcd.ie</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Richi,<div><br></div><div> a quick answer to 1 below<br><div><br><blockquote type="cite"><div>On 23 Jul 2020, at 15:20, Richi Dubey <<a href="mailto:richidubey@gmail.com" target="_blank">richidubey@gmail.com</a>> wrote:</div><div><div dir="ltr"><div>1)Both the algorithms require the use of a FIFO Queue to support the insert and dequeue operations.</div><div><br></div><div>I believe we can use chains and use the chain_append() and combination of _Chain_Extract and _Chain_First or just _Chain_First and node->next to achieve the FIFO requirements. </div></div></div></blockquote><div><br></div><div><br></div>You might want to look at chain_get() - it removes the first element, so does a FIFO protocol in tandem with chain_append()</div><div><br></div><div>Regards,</div><div> Andrew</div><div><br><blockquote type="cite"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div>
_______________________________________________<br>devel mailing list<br><a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br><a href="http://lists.rtems.org/mailman/listinfo/devel" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></div></blockquote></div><br><div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">--------------------------------------------------------------------<br>Andrew Butterfield Tel: +353-1-896-2517 Fax: +353-1-677-2204<br>Lero@TCD, Head of Software Foundations & Verification Research Group<br>School of Computer Science and Statistics,<br>Room G.39, O'Reilly Institute, Trinity College, University of Dublin<br> <a href="http://www.scss.tcd.ie/Andrew.Butterfield/" target="_blank">http://www.scss.tcd.ie/Andrew.Butterfield/</a><br>--------------------------------------------------------------------</div>
</div>
<br></div></div></blockquote></div>