Tech Tock

Time is of the essence.

ThreadCount

I’m reading Concurrent Programming on Windows since everyone @Lab seems to know more about threading than I do.  Like most of the books I’ve been reading lately, this one weighs in at about 1,000 pages.  I’d recommend it for anyone who knows a bit about the concurrency infrastructure but wants to know it all.  Even so, there were some places where I felt a detail was missing, but 1,000 pages is plenty.

Here’s some interesting things I learned in the first couple hundred pages.

New threads in .Net will allocate 1MB for the stack on creation.

The total processor limit (including logical processors) of 32/64 in windows is mostly because of the CPU affinity mask which is 32 or 64 bits depending on windows version.  This paper (Windows Support for Hyper-Threading Technology) supports that statement for Windows 2003 server.  I can’t find a good reference to support this for Windows Server 2008.

The native (OS) limit for waitable objects (WaitForMultipleObjects) is 64, but .Net supports more.

Advertisements

December 24, 2009 - Posted by | Uncategorized | , , ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: