Add the ability to specify thread scheduling options.