.net - Do threads by default run on more than one core? -


in multi-core processors, , windows application runs many threads. threads by default run on more 1 core ? mean every thread might run on individual core.

edit:

if application runs many threads, these threads run on 1 process.

without parallel programming..

is process able devide , run on many core ?

does application benifit of multi-core processing ?


(your question unclear. hope i've answered asking, if can clarify question help.)

it's os thread scheduled. there advantages keeping thread on same core if possible, in terms of cache coherency etc — forcing stay on same core overly restrictive.

in short: yes, thread can run on different cores. not @ same time, of course - it's 1 thread of execution — execute on core c0 @ time t0, , on core c1 @ time t1.

edit: talk application running many threads, "without parallel programming" — that's contradiction in terms. if you're using many threads, are using parallel programming, , default threads can run on multiple cores. if you're using one thread, won't benefit having multiple cores — other fact other processes can use other cores, of course.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -