<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Same Resource, Same Lock or else locking won't give you the protection you need</title><link>http://blogs.msdn.com/ricom/archive/2006/03/22/558584.aspx</link><description>I sometimes see funny locking patterns because there is a mental assumption that the lock keyword (via Monitor features of the runtime) automatically guards the contents of the locked region. This isn't the case. All that is guaranteed is that only one</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Same Resource, Same Lock or else locking won't give you the protection you need</title><link>http://blogs.msdn.com/ricom/archive/2006/03/22/558584.aspx#558650</link><pubDate>Thu, 23 Mar 2006 07:50:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:558650</guid><dc:creator>Dean Harding</dc:creator><description>Your T3 isn't going to compile because you can't access a non-static member from a static method.&lt;br&gt;&lt;br&gt;And your T5 makes too much use of the 'static' keyword as well... DoSomething wouldn't have access to non-static myLock (though DoSomethingElse would have access to static myOtherLock)&lt;br&gt;&lt;br&gt;But yeah, your point is still valid :-)</description></item><item><title>re: Same Resource, Same Lock or else locking won't give you the protection you need</title><link>http://blogs.msdn.com/ricom/archive/2006/03/22/558584.aspx#558751</link><pubDate>Thu, 23 Mar 2006 11:41:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:558751</guid><dc:creator>ricom</dc:creator><description>Yes, in fact none of the methods should be static... that's what I get for cutting and pasting too much. &amp;nbsp;I'll go ahead and change them all.</description></item><item><title>re: Same Resource, Same Lock or else locking won't give you the protection you need</title><link>http://blogs.msdn.com/ricom/archive/2006/03/22/558584.aspx#560452</link><pubDate>Sat, 25 Mar 2006 02:42:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:560452</guid><dc:creator>Norman Diamond</dc:creator><description>&amp;gt; that's what I get for cutting and pasting&lt;br&gt;&amp;gt; too much&lt;br&gt;&lt;br&gt;But you did cutting and pasting in order to improve your performance in editing this blog. &amp;nbsp;Remember, if the results don't have to be correct, you can do it incredibly quickly &amp;nbsp;^u^</description></item><item><title>re: Same Resource, Same Lock or else locking won't give you the protection you need</title><link>http://blogs.msdn.com/ricom/archive/2006/03/22/558584.aspx#560521</link><pubDate>Sat, 25 Mar 2006 04:02:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:560521</guid><dc:creator>ricom</dc:creator><description>LOL, thanks :)</description></item><item><title>Locking -- Isolation -- Unit of Work -- Performance -- Solution</title><link>http://blogs.msdn.com/ricom/archive/2006/03/22/558584.aspx#584804</link><pubDate>Thu, 27 Apr 2006 09:12:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:584804</guid><dc:creator>Rico Mariani's Performance Tidbits</dc:creator><description>A few days ago I posted a concurrency problem for commentary and I got a very nice set of responses...</description></item><item><title>Lock-uri in .NET (exemple C#) - de la Rico Mariani &amp;laquo; .. ??i s?? nu uit s?? aleg un titlu. Ce trebuia s?? nu uit?!</title><link>http://blogs.msdn.com/ricom/archive/2006/03/22/558584.aspx#4359461</link><pubDate>Mon, 13 Aug 2007 03:54:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4359461</guid><dc:creator>Lock-uri in .NET (exemple C#) - de la Rico Mariani « .. ??i s?? nu uit s?? aleg un titlu. Ce trebuia s?? nu uit?!</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://andreir.wordpress.com/2007/08/13/lock-uri-in-net-exemple-c-de-la-rico-mariani/"&gt;http://andreir.wordpress.com/2007/08/13/lock-uri-in-net-exemple-c-de-la-rico-mariani/&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>