Add option to change thread scheduling policy