开发者

Pthread: Does starting location makes a difference

开发者 https://www.devze.com 2023-03-25 20:02 出处:网络
A simple question. Does it make any difference if one pthread starts multiple sub开发者_高级运维-pthreads? rather than all of them started from the main ?

A simple question. Does it make any difference if one pthread starts multiple sub开发者_高级运维-pthreads? rather than all of them started from the main ?

I consider only performance at this stage. Thanks.


There is no performance difference.


Either way your creating a thread it wont make a difference. It only matters on the efficiency of the pthreads your using in the code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号