Multi core (multi thread vs multi processus) imx6dl

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Multi core (multi thread vs multi processus) imx6dl

1,194 次查看
delauratfrançoi
Contributor II

Hello ,

My name is François I work with IMX6DL. I want to use the multi core.  I found several solutions:

     - Use the multi core with  the multi processus ( with the function shed_setaffinity)

     - Use the multi core with the multi thread (  with the function pthread_setaffinity_np)

What is the best solution?

PS : I saw also that we can use the libcpuset

Thanks for All Help.

Best regards

François.

标签 (3)
1 回复

1,061 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Hello Delaurat,

Very good question, as usually happens with the engineering questions,  I think it depends on the end application, what are you trying to accomplish. I think this article can help

Thinking Parallel » Blog Archive More information on pthread_setaffinity_np and sched_setaffinity - ...