Synchronization at the Right Level

I get a lot of questions about why the new generic collection interfaces (IList<T> for example) do not support synchronization. There are several reasons for it. One, probably the main, is that in practice synchronizing on the level of a single data structure is rarely useful. Rico explains this in a series of posts on locking. In particular see the post on putting your synchronization at the correct level.

Published 05 May 06 11:24 by kcwalina

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Code is poetry said on September 26, 2006 6:47 PM:
On utilise tous les jours les interfaces IEnumerable, ICollection, IList quand on d&#233;veloppe en .Net,...
# Code is poetry said on October 23, 2006 6:52 AM:

On utilise tous les jours les interfaces IEnumerable, ICollection, IList quand on développe en .Net,

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required
Page view tracker