Multi core (multi thread vs multi processus) imx6dl

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multi core (multi thread vs multi processus) imx6dl

821 Views
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.

Labels (3)
1 Reply

688 Views
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 - ...