Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I have corrected some typos , please read again...

2 views
Skip to first unread message

Ramine

unread,
Mar 9, 2015, 5:23:51 PM3/9/15
to
I have corrected some typos , please read again...


Hello...


Read this:


"Or, you are able to prevent starvation of low prio elements, that is,
if there is a constant flow of high and normal prio elements, you still
may want to process some low prio elements in between (it's a good idea
for most systems, your OS definitely does this for threads)."

read more here about Priority Queues:

http://www.1024cores.net/home/lock-free-algorithms/queues/priority-queues

I have thought about it and i have come to the conclusion that when you
set an element in the queue to low priority that means that logicaly you
want a higher priority element in the queue to be enqueued before the
low priority element, and i think that if you want to change this logic
just set the low priority element to a higher priority like a normal
priority. That's how i have implemented Concurrent priority FIFO queue 4
, look inside the zip, it's called "PWQueue.pas" and you can download it
from here:


https://sites.google.com/site/aminer68/concurrent-fifo-queue-4



Thank you,
Amine Moulay Ramdane.



0 new messages