﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>dotnetchris commented on Multi threaded design guidelines for libraries: Part II</title><description>@Harry McIntyre if you can't get rid of all of your usages of locks for that, and instead replace them all with interlocked calls instead. I would run for the hills.</description><link>http://ayende.com/159233/multi-threaded-design-guidelines-for-libraries-part-ii#comment4</link><guid>http://ayende.com/159233/multi-threaded-design-guidelines-for-libraries-part-ii#comment4</guid><pubDate>Mon, 22 Oct 2012 16:15:23 GMT</pubDate></item><item><title>Matthias commented on Multi threaded design guidelines for libraries: Part II</title><description>Instead of "Concurrent Programming on Windows" I would first encourage to read the chapters on "Concurreny" in "Clean Code".
Do not be afraid to follow the usual MS way: Static methods are thread-safe, instance methods are not thread-safe.</description><link>http://ayende.com/159233/multi-threaded-design-guidelines-for-libraries-part-ii#comment2</link><guid>http://ayende.com/159233/multi-threaded-design-guidelines-for-libraries-part-ii#comment2</guid><pubDate>Wed, 17 Oct 2012 12:41:17 GMT</pubDate></item><item><title>Harry McIntyre commented on Multi threaded design guidelines for libraries: Part II</title><description>I'm working on a system based around a shared mutable in-memory datastore (persistence achieved via an eventstore which logs all method calls), as opposed to a DB. 

Do you  have any thoughts on the best way to achieve thread safety on a system like this? I am using a lazy ReaderWriterLockSlim on begin/end request... it makes me feel slightly icky.
</description><link>http://ayende.com/159233/multi-threaded-design-guidelines-for-libraries-part-ii#comment1</link><guid>http://ayende.com/159233/multi-threaded-design-guidelines-for-libraries-part-ii#comment1</guid><pubDate>Wed, 17 Oct 2012 11:14:15 GMT</pubDate></item></channel></rss>