Type Method

isMultiThreaded

Returns whether the application is multithreaded.

Declaration

+ (BOOL)isMultiThreaded;

Return Value

YES if the application is multithreaded, otherwise NO.

Discussion

An application is considered multithreaded if a thread was ever detached from the main thread using either detachNewThreadSelector:toTarget:withObject: or start. If you detached a thread in your application using a non-Cocoa API, such as the POSIX or Multiprocessing Services APIs, this method could still return NO. The detached thread does not have to be currently running for the application to be considered multithreaded—this method only indicates whether a single thread has been spawned.

See Also

Querying the Environment

currentThread

Returns the thread object representing the current thread of execution.

callStackReturnAddresses

Returns an array containing the call stack return addresses.

callStackSymbols

Returns an array containing the call stack symbols.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software