Search code examples
.netmultithreadingmulticore

Does .NET takes advantage of multicore?


if I implemented a program with different threads working, can I rely .Net framework taking charge to execute threads taking advantage of (possible) multicore hardware architecture?

Thanks


Solution

  • The OS should manage this and distribute the threads as it sees fit.

    If you're using .NET 4 and want to take advantage of multicore CPUs, you can also look into the Tasks Parallel Libary which was created specifically to make parallel computing tasks easier to implement.