Groups | Blog | Home
all groups > dotnet clr > june 2005 >

dotnet clr : CallContext threading problems.


Robert Rolls
6/18/2005 12:00:00 AM
Simple question :- On a web server I sometimes see the error Item has
already been added. Key in dictionary: "MethodName" Key being added:

"MethodName" I'm using CallContext to store information. Is there a
possibility that a two (or more) logical threads are sharing the same
physical thread and hence the same TLS block is being used? Or is
CallContext not using the OS TLS for per thread data? Which would then
suggest that what I'm seeing is .....?

Jon Skeet [C# MVP]
6/19/2005 8:56:47 AM
[quoted text, click to view]

In .NET 1.1 at least, I believe every managed thread has its own
Windows thread.

Are you sure you're not failing to free the block at the end of the
request? Don't forget that the thread will be reused on future
requests.

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
Robert Rolls
6/20/2005 12:00:00 AM
now that is a thought! let me ponder that

Thanks
Robert.

[quoted text, click to view]

AddThis Social Bookmark Button