Windows 7 Task Manager screenshot

Mon, April 27, 2009, 10:59 PM under Windows
Previously I linked to a screenshot of 96 virtual processors and now I have access to a machine that tops that!

Count them:

Nothing else to share here, just a geek showing off ;-)

Nice collection of .NET 4 links

Fri, April 24, 2009, 05:46 PM under dotNET
Just came across (and thought I'd share) these resources for .NET 4 and C# 4 features on Bogdan's blog post.

CLR 4 ThreadPool Enhancements

Thu, April 23, 2009, 05:22 PM under dotNET
Eric Eilebrecht (dev on CLR) is kicking off a blog post series on improvements to the CLR 4 ThreadPool. If you've used the .NET ThreadPool, you must read his first installment.

Best source code comments

Wed, April 22, 2009, 05:18 PM under Random
Literally laughed out loud when this was forwarded to me and they are way too funny not to share – from stackoverflow:
What is the best comment in source code you have ever encountered?

Measuring performance under Visual Studio

Mon, April 6, 2009, 07:58 PM under dotNET
When I created my Visual Studio C# demos for showing off Tasks versus Threads, I of course created the project in Release mode, but there were 2 additional things that I had to do.

One had little impact, but is important to remember: set the power plan on Windows to "High Performance". Otherwise CPU usage can be throttled by the OS, which is not what you want when you are demonstrating parallelism and 100% CPU usage ;-)

The other had a profound impact and had me puzzled for a bit: use Ctrl+F5 instead of F5. The difference in the time the threads scenario took was humongous. That is because the naïve threads demo creates around 1023 threads and it turns out creating threads under the debugger (F5 case, even in release mode) is measurably slower than not. I should have known that, but I didn't, so sharing it here in case you didn't either: when measuring perf, always use Ctrl+F5 in release mode.

For a lot more on the performance difference between running under the debugger and not, I recommend Joc's blog post: Why is my app so much slower under the debugger.