|
-
November 25th, 2010, 09:17 AM
#2
Re: multiple writers and single read FIFO queue performance
"Faster locks" is not the way to go. Instead, think of how you can reduce lock contention.
For example, reader-writer contention could be reduced by having the reader deque the entire contents of the Q, instead of one element at a time.
Another example: writer-writer contention could be removed completely by having each writer threads use a thread-local Q. Then the reader thread would iterate over all writer Q's, consuming the entire Q at a time.
gg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|