NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil];[thread start];
1 + (NSThread *)mainThread;2 - (BOOL)isMainThread;3 + (BOOL)isMainThread;
1 NSThread *current = [NSThread currentThread];
1 + (double)threadPRiority;2 + (BOOL)setThreadPriority:(double)p;3 - (double)threadPriority;4 - (BOOL)setThreadPriority:(double)p;
1 - (void) setName:(NSString *)n;2 - (NSString *)name;
1 [NSThread detachNewThreadSelector:@selector(run) toTarget:self withObject:nil];
1 [self performSelectorInBackground:@selector(run) withObject:nil];
1 - (void)start;
1 + (void)sleepUntilDate:(NSDate *)date;2 + (void)sleepForTimeInterval:(NSTimeInterval)ti;
1 + (void)exit;
1 @property (assign, atomic) int age;2 - (void)setAge:(int)age3 {4 @synchronized(self) {5 _age = age;6 }7 }
1 - (void)performSelectorOnMainThread:(SEL)aSelector withObject:(id)arg waitUntilDone:(BOOL)wait;2 - (void)performSelector:(SEL)aSelector onThread:(NSThread *)thr withObject:(id)arg waitUntilDone:(BOOL)wait;
新闻热点
疑难解答