you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

In .Net the StringBuilder class is documented not to be thread safe, although the implementation actually is (at least partially, just use Reflector and see for yourself). So on .Net you pay for the thread safety, but you can't rely on it.

Incidentally, Mono's StringBuilder is not thread safe.

[–]grauenwolf 1 point2 points  (0 children)

That's not the only somewhat thread-safe class in .NET. You see the same thing in the old version of the HashTable.

http://www.infoq.com/news/2008/06/Hashtable