in reply to Re^9: OT: Locking and syncing mechanisms available on *nix.
in thread OT: Locking and syncing mechanisms available on *nix.
Thanks. I'll take a look at glibc. Any feel for how widely available it is across *nixes?
If thread-switching performance is really critical, and pthreads are too slow,
You've got the wrong end of the stick. It isn't the pthreads or threads that are too slow, it is threads::shared.
Vis. Using Thread::Queue (which uses threads::shared and its cond vars and mutexes), the best throughput I've achieved between two threads is about 50,000 scalars/second.
My current implementation is achieving (on Windows using event objects) 500,000 scalars/second reliably, and I've seen close to twice that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: OT: Locking and syncing mechanisms available on *nix.
by educated_foo (Vicar) on Mar 27, 2011 at 21:29 UTC | |
by BrowserUk (Patriarch) on Mar 27, 2011 at 21:40 UTC |