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.