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

Concurrent priority queues

5 views
Skip to first unread message

Ramine

unread,
Mar 9, 2015, 5:13:45 PM3/9/15
to
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 Conccurent 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/conccurent-fifo-queue-4



Thank you,
Amine Moulay Ramdane.




Ramine

unread,
Mar 9, 2015, 5:20:36 PM3/9/15
to

Hello,

I have changed the link , here it is:


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


Thank you,
Amine Moulay Ramdane.


0 new messages