Threading and cores

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-05-25T19:53:58Z Indexed on 2010/05/25 20:01 UTC
Read the original article Hit count: 168

Filed under:
|
|

If I have X cores on my machine and I start X threads. Let's assume for the sake of argument that each thread is completely separated in terms of the memory, hdd, etc it uses. Is the OS going to know to send each thread to a core or do more time slicing on one core for multiple threads. What the question boils down to, is if I have X cores and my program must do independent calculations, should I start X threads, will they each get piped to a core, or is the presumption that because I have X cores I can start X threads completely wrong? I'm thinking it is. This is with C# --

© Stack Overflow or respective owner

Related posts about .NET

Related posts about multithreading