Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #2222 > unrolled thread

More about waitfree and lockfree...

Started byaminer <aminer@toto.net>
First post2014-04-22 20:20 -0700
Last post2014-04-22 20:20 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.programming.threads


Contents

  More about waitfree and lockfree... aminer <aminer@toto.net> - 2014-04-22 20:20 -0700

#2222 — More about waitfree and lockfree...

Fromaminer <aminer@toto.net>
Date2014-04-22 20:20 -0700
SubjectMore about waitfree and lockfree...
Message-ID<lj70vt$3c3$1@news.albasani.net>
Hello,


Question:

Amine , we are kind of lost, what is this waitfree
concurrent FIFO queue , and lockfree concurrent FIFO queue ?


Answer:

We have to be smart and understand that waitfree and lockfree
algorithms maximize the parallelism, but the lockfree
suffers from starvation and it's less efficient than
other algorithms whith a scenario of high contention and the lockfree
algorithm can not be used in realtime systems when you need
the process to complete any operation in a finite number of steps of 
finite time, the lockfree algorithm can not do that, and what about
waitfree ? as i have said the waitfree algorithm do maximize the 
parallelism and it is also starvation-free and it finishes
an operatoin such us the push() and a pop() of a concurrent FIFO queue
in a finite number of steps , and the waitfree is efficient in a 
scenario with high contention , so i have presented to you a
concurrent FIFO queue that is waitfree, but the number of threads
has to be fixed to calculate the number of steps that the push()
and pop() takes in a realtime time system.


I have also presented to you a faster concurrent FIFO queue
that is not waitfree but as i said before it has more parallelism than 
the two lock algorithm and the items will be pushed and popped in
a FIFO order and it scales well even if the number of threads are 
greater than the number of cores.

You can download all those concurrent FIFO queues from my website:

http://pages.videotron.com/aminer/




Thank you,
Amine Moulay Ramdane.


[toc] | [standalone]


Back to top | Article view | comp.programming.threads


csiph-web