Friday, July 17, 2009

Number of threads in Windows (7)

Hi there...
I was always asking myself "how many threads can Windos can create inside one application?". I guess the answer is "depends on hardware".

Today I found a sample application for Managed Stack Explorer that only creates/removes
threads. When I saw it, I immediately remembered my old question and I started to create threads. >:)

After a while - at thread number 440 - the operating system started to work very slow and at 780 I killed the application because my CPU was at 100% for a while now. :)
As a proof, you can see the attached picture.

What's your number? :)

No comments: