Process vs Threads

前端 未结 6 489
余生分开走
余生分开走 2021-01-31 18:21

How to decide whether to use threads or create separate process altogether in your application to achieve parallelism.

6条回答
  •  情书的邮戳
    2021-01-31 19:03

    Generally you should use processes when the individual execution streams don't need to share global data and you would like to have each protected from the other.

提交回复
热议问题