Android注释中主线程、UiThread、WorkerThread、BinderThread之间的差异
正如我在android注释中读到的 我们有四种类型的线Android注释中主线程、UiThread、WorkerThread、BinderThread之间的差异,android,multithreading,binding,annotations,android-support-library,Android,Multithreading,Binding,Annotations,Android Support Library,正如我在android注释中读到的 我们有四种类型的线 @MainThread @UiThread @WorkerThread @BinderThread 区别是什么?区别在于: @MainThread,应用程序启动时运行的第一个线程 @UiThread,从UI工作的主线程运行 @WorkerThread,在程序员定义线程时运行 @BinderThread,用于ContentProvider中的query()/insert()/update()/delete()方法 进程中只有一个主线程。
- @MainThread
- @UiThread
- @WorkerThread
- @BinderThread
- @MainThread,应用程序启动时运行的第一个线程
- @UiThread,从UI工作的主线程运行
- @WorkerThread,在程序员定义线程时运行
- @BinderThread,用于ContentProvider中的query()/insert()/update()/delete()方法