线程的优先级

 1     NSThread *t1 = [[NSThread alloc] initWithTarget:self selector:@selector(createThreadOne) object:nil];
 2     t1.name = @"线程A";
 3     //修改优先级
 4     t1.threadPriority = 0;
 5     [t1 start];
 6     
 7     NSThread *t2 = [[NSThread alloc] initWithTarget:self selector:@selector(createThreadTwo) object:nil];
 8     t2.name = @"线程B";
 9     t2.threadPriority = 1;
10     [t2 start];
原文地址:https://www.cnblogs.com/liaods/p/4788903.html