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.

Comments

  • Anonymous
    September 26, 2006
    On utilise tous les jours les interfaces IEnumerable, ICollection, IList quand on d&#233;veloppe en .Net,...
  • Anonymous
    October 22, 2006
    On utilise tous les jours les interfaces IEnumerable, ICollection, IList quand on développe en .Net,