How to using Denver2 on TX2 platform??

We plan to use TX2 Mode 0 and keep Denver (2 cores) and ARM (4 cores) running.

In this case, from programming perspective, how can we make a specific thread run on Denver (2 cores) and the rest of threads runn on ARM (4 cores)?
Do you have any programming guide and demo code for this?

You may look for CPU affinity:

man sched_setaffinity
man taskset