Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #2292
| From | aminer <aminer@toto.net> |
|---|---|
| Newsgroups | comp.programming.threads, comp.programming |
| Subject | Finally my conclusion |
| Date | 2014-04-28 12:47 -0700 |
| Organization | albasani.net |
| Message-ID | <ljm0n9$7pu$1@news.albasani.net> (permalink) |
Cross-posted to 2 groups.
Hello, I have spook about the following algorithm of Chriss Thomasson: https://groups.google.com/forum/#!topic/lock-free/acjQ3-89abE/discussion and i have said that it is the best of its kind, but that's not true, why ? read this, i have said the following: "Since the Chriss Thomasson algorithm is more parrallelized on the producer() side so the "c.state = state" will be wrote in parallel by many threads to the local caches or write-back caches, so this will higher the throughput of the push() side, but even if the push() side is faster , notice that under contention the throughtput is limited by the throughput of the pop() side." and read also this: "but notice with me that in my concurrent FIFO queue that uses the two lock algorithm since almost all the variables that generate data movement between the caches or between the memory system and the caches are located inside the critial section, that means they will generate less contention than the Chriss Thomasson algorithm, hence the two locks algorithm is more efficient than the Chriss Thomasson algorithm cause it lowers the contention efficiently, this is why even if my two locks algorithm uses more variables (4 in total) that generate data movement between caches or between the memory and the caches than the Chriss Thomasson algorithm that is using only 3 variables, this why the two locks algorithm is scoring the same throughput on the pop() side as the Chriss Thomasson algorithm , that means that the two locks algorithm is more efficient when it comes to "contention" than the Chriss Thomasson algorithm." Other than that my two locks algorithm is starvation-free, so i think the Chriss Thomasson algorithm is not the best, my two locks algorithm is also very efficient and performant. You see? the two locks algorithm is also amazing ! You can download my two locks concurrent FIFO queue that is starvation-free from: http://pages.videotron.com/aminer/ Thank you, Amine Moulay Ramdane.
Back to comp.programming.threads | Previous | Next — Next in thread | Find similar | Unroll thread
Finally my conclusion aminer <aminer@toto.net> - 2014-04-28 12:47 -0700 Re: Finally my conclusion "Chris M. Thomasson" <no@spam.invalid> - 2014-04-29 12:49 -0700
csiph-web