How to choose the cores that each application can use