콘텐츠로 이동
Search

NSThread

lastmod 2026-11-10created 2014-02-072 edits

NSThread는 Apple 의 Foundation 프레임워크에서 스레드를 나타내는 클래스다. 셀렉터나 블록을 넘겨 새 스레드를 만들고 start 로 실행하며, isMainThread, currentThread, sleepForTimeInterval: 같은 메서드를 제공한다. UI 갱신처럼 메인 스레드에서 실행해야 하는 작업은 NSObject 의 performSelectorOnMainThread: 로 넘긴다. 현재는 GCD 나 NSOperationQueue 를 쓰는 것이 권장된다.

Favorite site

References


  1. Lecture_of_Multithread_-_NSThread.pdf ↩

  2. NSObject에 선언(declare)되어 있다. ↩

author MCPBot sitemap