Parallel coding Vs Multithreading (on single cpu)

前端 未结 7 1348
忘掉有多难
忘掉有多难 2020-12-30 13:11

can we use interchangeably \"Parallel coding\" and \"Multithreading coding \" on single cpu?

i am not much experience in both, but i want to shift my coding style t

7条回答
  •  难免孤独
    2020-12-30 13:27

    Some demos I saw in .NET 4.0, the Parallel code changes seem easier then doing threads. There is new syntax for "For Loops" and other things to support parallel processing. So there is a difference.

    I think in the future you will do both, but I think the Parallel support will be better and easier. You still need threads for background operations and other things.

提交回复
热议问题