Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #2219
| From | aminer <aminer@toto.net> |
|---|---|
| Newsgroups | comp.programming.threads, comp.programming |
| Subject | More information... |
| Date | 2014-04-22 19:26 -0700 |
| Organization | albasani.net |
| Message-ID | <lj6tqs$crc$1@news.albasani.net> (permalink) |
Cross-posted to 2 groups.
Hello, You have to know that a TicketSpinlock with a proportional backoff has a problem , if you use 4 threads on 4 cores the Ticketspinlock will do very well its job, but if you use more threads than the number of cores the TicketSpinlock will not scale, this problem do not happen with a simple Spinlock with a backoff , a simple Spinlock with a backoff will scale beautifully even if the number of threads is greater than the number of cores, that's why i have used a simple Spinlock with a backoff inside my SemaMonitor and used it inside this fast concurrent FIFO queue that is giving a throughput of 6.4 millions transactions per second even if i am using my SemaMonitor with it, just test it yourself and you will notice that it's very fast, and the pushed and the poped items will still be done in a FIFO order, so i think that this fast concurrent FIFO queue is great. You can download this fast concurrent FIFO queue 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
More information... aminer <aminer@toto.net> - 2014-04-22 19:26 -0700 Re: More information... aminer <aminer@toto.net> - 2014-04-22 19:31 -0700
csiph-web