Reputation
Next privilege 200 Rep.
See reduced ads
Badges
7
Newest
 Editor
Impact
~2k people reached

  • 0 posts edited
  • 0 helpful flags
  • 15 votes cast
Aug
27
accepted Does ReaderWriterLockSlim provide thread safety and speed efficiency (compared to a traditional lock) when using a List?
Aug
25
comment Does ReaderWriterLockSlim provide thread safety and speed efficiency (compared to a traditional lock) when using a List?
the copy is necessary as each reader will get the data and edit it in it's own way, and all readers must get the un-edited data
Aug
25
comment Does ReaderWriterLockSlim provide thread safety and speed efficiency (compared to a traditional lock) when using a List?
all the "reader" threads copy the list locally to modify it. Are you suggesting that the writer also does copying to update the list? writes locally and then just locks to update?
Aug
25
comment Does ReaderWriterLockSlim provide thread safety and speed efficiency (compared to a traditional lock) when using a List?
yes but from my experience locks are faster than memory barriers, I'm looking into waits to replace the traditional lock with something faster
Aug
25
comment Does ReaderWriterLockSlim provide thread safety and speed efficiency (compared to a traditional lock) when using a List?
Order is important, so concurrent bag is out of the question. During the write operation I am also performing LinQ on the list. Also instead of using interlocked.exchange, Is it not the same if I write the data to a separate list and lock before updating the thread accessed one?
Aug
25
comment Does ReaderWriterLockSlim provide thread safety and speed efficiency (compared to a traditional lock) when using a List?
edited my question with some clarifications
Aug
25
revised Does ReaderWriterLockSlim provide thread safety and speed efficiency (compared to a traditional lock) when using a List?
added 772 characters in body
Aug
25
awarded  Editor
Aug
25
revised Does ReaderWriterLockSlim provide thread safety and speed efficiency (compared to a traditional lock) when using a List?
added 5 characters in body
Aug
25
asked Does ReaderWriterLockSlim provide thread safety and speed efficiency (compared to a traditional lock) when using a List?
Jul
13
accepted What are the differences regarding speed and functionality between using Actions vs Delegates?
Jul
12
asked What are the differences regarding speed and functionality between using Actions vs Delegates?
Dec
6
comment Efficiency of C# dictionaries
This was very informative. Thank you very much
Dec
6
accepted Efficiency of C# dictionaries
Dec
6
asked Efficiency of C# dictionaries
Nov
27
comment Using action array vs Switch Case
Great Scott!!! you are right :P
Nov
27
accepted Using action array vs Switch Case
Nov
27
asked Using action array vs Switch Case
Nov
11
comment Do we really need auto-vectorization?
and I suppose it only works on vector processors?
Nov
11
accepted Do we really need auto-vectorization?