DekGenius.com
[ Team LiB ] Previous Section Next Section

NSThread Mac OS X 10.0

NSThread provides functionality to run processes as separate threads of execution. NSThread takes a method selector that will be run in its own thread. Threads share the memory space of their parent processes, unlike processes executed by NSTask instances.

figs/cocn_13109.gif

@interface NSThread : NSObject
 // Convenience Constructors
   + (double)threadPriority;
 // Class Methods
   + (NSThread *)currentThread;
   + (void)detachNewThreadSelector:(SEL)selector toTarget:(id)target withObject:(id)argument;
   + (void)exit;
   + (BOOL)isMultiThreaded;
   + (BOOL)setThreadPriority:(double)priority;
   + (void)sleepUntilDate:(NSDate *)date;
 // Instance Methods
   - (NSMutableDictionary *)threadDictionary;

    [ Team LiB ] Previous Section Next Section