Hello!
Request for help in this matter:
I want to control the matching of threads and cores on iOS devices with Big.LITTLE architecture). i.e., run the main thread on a BIG core while the application is starting.
I tried to use thread_policy_set/get for this. This solution works on simulators, but definitely doesn't work on iPhone (the return code is KERN_NOT_SUPPORTED on several devices).
Code example:
thread_affinity_policy_data_t = { 2 }; thread_policy_set(pthread_mach_thread_np(pthread_self()), THREAD_AFFINITY_POLICY, (thread_policy_t)&policy, 1);
Does anyone know if we can change the binding of the threads to core on iOS?