[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.programming

Concurrent Priority Queues

Ramine

3/9/2015 12:15:00 PM


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/prior...

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-fi...



Thank you,
Amine Moulay Ramdane.




1 Answer

Ramine

3/9/2015 12:23:00 PM

0



Hello,

I have changed the link , here it is:


https://sites.google.com/site/aminer68/concurrent-fi...


Thank you,
Amine Moulay Ramdane.


On 3/9/2015 5:14 AM, Ramine wrote:
>
> 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/prior...
>
> 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-fi...
>
>
>
> Thank you,
> Amine Moulay Ramdane.
>
>
>
>