May 2006 - Posts

Using ReaderWriterLock part 3 (last in this set)
15 May 06 05:32 PM | ricom | 0 Comments   
Well I think it's raining ReaderWriterLocks this month! Jeff Richter has an article on MSDN that goes over a lot of the basics and some stuff that's a lot more than basic. And then there's Vance Morrison's March article on the subject as well. Lots of Read More...
Filed under: ,
Using ReaderWriterLock part 2
12 May 06 12:31 PM | ricom | 5 Comments   
Well the trouble with simple samples like the one I provided in part 1 is that well... they're too simple. Some of the improvements that you can make in them won't work generally. But nonetheless I think there's some interesting discussion possibilities. Read More...
Filed under: ,
Using ReaderWriterLock -- are you getting what you think you're getting?
05 May 06 11:51 AM | ricom | 14 Comments   
Oh boy, more locking problems for the weekend! Here's a more complicated lock that often gets used when it shouldn't and is avoided when it should be used. Like the other articles in this series I'll provide a bit of code and ask for comments, it's more Read More...
Filed under: ,
Putting your synchronization at the correct level -- solution
03 May 06 10:42 AM | ricom | 13 Comments   
Of course when I say "solution", I really mean "my solution" because there's not really just one way to do this. But this is an approach I like and I'll go over why I like it. Recall the code from the original problem : (there was some very interesting Read More...
Filed under: ,
Putting your synchronization at the correct level
01 May 06 11:43 AM | ricom | 33 Comments   
Continuing in what's turned into my series on locking advice, I have a new example for you of a typical problem that happens in class design. As usual I've simplified this almost to the point of being silly to illustrate the problem. Hopefully the crux Read More...
Filed under: ,

Search

This Blog

Syndication

Page view tracker