The future of concurrent programming
Sean Kelly
sean at f4.ca
Tue May 29 11:22:16 PDT 2007
Jeff Nowakowski wrote:
> freeagle wrote:
>> Why do people think there is a need for another language/paradigm to
>> solve concurrent problem? OSes deal with parallelism for decades,
>> without special purpose languages. Just plain C, C++. Just check Task
>> manager in windows and you'll notice there's about 100+ threads running.
>
> Why limit yourself to hundreds of threads when you can have thousands?
Because context switching is expensive. Running thousands of threads on
a system with only a few CPUs may use more time simply switching between
threads than it does executing the thread code.
Sean
More information about the Digitalmars-d
mailing list