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


Groups > comp.programming.threads > #2195

Another solution to my concurrent FIFO queue...

From aminer <aminer@toto.net>
Newsgroups comp.programming.threads, comp.programming
Subject Another solution to my concurrent FIFO queue...
Date 2014-04-19 21:13 -0700
Organization albasani.net
Message-ID <liv707$84e$1@news.albasani.net> (permalink)

Cross-posted to 2 groups.

Show all headers | View raw


Hello,

As i told you before in my previous post called "Please read again"
i have discovered a serious problem with the Ticketspinlock and
also with the array based locks and also with the queue locks.. so you 
have to be very carefull about this serious problem that look like
lock convoy , i have just tested it and it has showed up on
my computer in less than 2 minutes, but i have found a solution
to my concurrent FIFO queue , i have used this time a Spinlock
wht a backoff inside my SemaCondvar and used my SemaCondvar with my 
concurrent FIFO queue and  my concurrent FIFO queue has given more than 
2x throughput at exactly 7.4 millions of transactions per second with
my 2.4 GHz Quadcore even with my semacondvar and even with blocking wait 
if there is no item in the queue and it's still FIFO fair on the push() 
side.

I will soon upgrade my concurrent FIFO queue and i am sure
that you will be happy.


Thank you,
Amine Moulay Ramdane.



Back to comp.programming.threads | Previous | Next | Find similar | Unroll thread


Thread

Another solution to my concurrent FIFO queue... aminer <aminer@toto.net> - 2014-04-19 21:13 -0700

csiph-web