O
O.B.
Does anyone know if the
System.Collections.Concurrent.ConcurrentQueue<T> uses a
System.Collections.Generic.Queue<T> under the hood? The reason I ask
is that I need a thread-safe queue that uses non-contiguous memory.
In the past, I have avoided using Queue<T> because it required
contiguous memory for its internal array of data.
It looks like ConcurrentQueue<T> could save me some lines of code, but
the performance may be drastically impacted if it uses arrays that
require contiguous memory.
-Obie
System.Collections.Concurrent.ConcurrentQueue<T> uses a
System.Collections.Generic.Queue<T> under the hood? The reason I ask
is that I need a thread-safe queue that uses non-contiguous memory.
In the past, I have avoided using Queue<T> because it required
contiguous memory for its internal array of data.
It looks like ConcurrentQueue<T> could save me some lines of code, but
the performance may be drastically impacted if it uses arrays that
require contiguous memory.
-Obie