Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Melzzzzz Newsgroups: comp.programming.threads,comp.programming,comp.arch Subject: Re: And improved algorithm of a concurrent FIFO queue Date: Wed, 7 May 2014 05:38:53 +0200 Organization: None Lines: 22 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: solani.org 1399433933 847 eJwFwYEBwDAEBMCVfHhiHKH2H6F3VId3mNONyw28eXEhSb9QPRmNPdzpsinF6kFlbYt8Tv0BDUcQww== (7 May 2014 03:38:53 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Wed, 7 May 2014 03:38:53 +0000 (UTC) X-User-ID: eJwFwYEBwDAEBMCVSPxjnCL2H6F3uFS2G0HDYtNZc0T8LZ76FzlKngrYFWPFFLANjTjDzh8NqBCH X-Newsreader: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Cancel-Lock: sha1:EKjmYJxSEjXGFrR+1CpbJSIOK0g= X-NNTP-Posting-Host: eJwFwYEBACAEBMCVKI/G4cv+I3SH7eoMc7hhMGFFubu7cqWnRKdIBiCjVD1rWCBxZh7vex8VIxGQ Xref: csiph.com comp.programming.threads:2310 comp.programming:4381 comp.arch:21554 On Tue, 6 May 2014 18:59:07 -0700 "Chris M. Thomasson" wrote: > > "animer": > > > my new and improved algorithm has now 50% better throughput on the > > pop() side than the following Chris Thomasson concurrent FIFO queue > > that uses the bakery algorithm, and it has the same throughput on > > the push() side than the following Chriss Thomasson concurrent FIFO > > Queue. > > 50% better throughput on the pop side! AFAICT, that is a total > crock of fuc%ing bullshi%! Anyway, what the hell are all of those > nasty Sleep(0)'s littered around your code? I guess that he expects same behavior both on Unices and Windows. This is not the case. He should use sched_yield at least on Linux... -- Click OK to continue...