G
Guest
Hi,
I am considering using a Generic List to hold user defined class entries.
Since this List will be accessed by multiple threads I need it to be
threadsafe. It appears there is no easy way to do this as there is no
synchronised method for the list.
I suppose I could lock the List whenever I access it but I am concerned this
will affect performance as the list will be accessed frequently.
Can anyone suggest how i can accomplish this syncronisation?
Thanks
Macca
I am considering using a Generic List to hold user defined class entries.
Since this List will be accessed by multiple threads I need it to be
threadsafe. It appears there is no easy way to do this as there is no
synchronised method for the list.
I suppose I could lock the List whenever I access it but I am concerned this
will affect performance as the list will be accessed frequently.
Can anyone suggest how i can accomplish this syncronisation?
Thanks
Macca