This method will always be executed on the main UI thread, so it is ideal for modifying the UI.
这个方法总是在主ui线程上被执行,因此对于修改UI这是一个很好的选择。
In a typical WebSphere Application server V6.x server, there are four main types of thread pools to be considered.
在一个典型的WebSphereApplicationServerv 6 . x服务器中,需要考虑四个主要线程池类型。
In order to distinguish worker threads from the UI thread, the main entry point for the sample application sets the Name property of the CurrentThread object to "UIThread."
为了区别工作者线程和UI线程,在例子程序的主入口点设置CurrentThread对象的名字属性为“UIThread ”。
Usually, the main use of a semaphore is to synchronize a thread?s action with other threads.
通常,信号的主要用途是同步某个线程与其他线程的动作。
Because the main thread is solely responsible for multiplexing between all clients, we cannot afford to allow it to block.
因为主线程单独负责所有客户机间的多路复用,因此我们不能让它阻塞。
The inner conflict of psyche is the main thread to know the meaning of this poem.
人格的内在冲突是了解这首诗的主要线索。
Industrial scientific research units are now managing the costs by taking the contracts as the main thread of management.
目前科研单位都以合同为主要管理线索,进行成本管理。
Thus, addStock will execute on a background thread, not on the main UI thread.
如此,addStock将在一个背景线程上执行,而不是在主UI 线程上。
The spawned thread does not have access to the same resources as the main UI thread.
衍生线程不能访问主ui线程访问的资源。
Since the thread scheduler really amounts to instructions to "do a, then do B, then do c, etc." it was not difficult to create an entirely parallel case in a main function.
因为线程调度程序真的等同于“执行a,接着执行b,然后执行c,等等”的指令,所以要在主函数中创建一个完全并行的情况也不困难。
This blocks the main thread but executes the code on another thread.
这阻塞了主线程但是在另一个线程上执行代码。
As such, the main thread is also sometimes called the UI thread.
因此,主线程有时也被叫做UI线程。
However, immediately after the second create call returns, the main thread can't assume which thread (a or b) will actually start running first.
然而,就在第二个create调用返回后,主线程无法假定是哪一个线程(a或b)会首先开始运行。
You need to do some thread safety work and make sure that UI modifying code gets sent to the main thread.
你需要做一些线程安全工作,确保UI修改代码被发送到主线程。
Without the communications between main thread and worker thread, CPU would be locked for a long time.
若没有主线程与辅助线程的通信,CPU将被阻塞很长一段时间。
Boolean that specifies whether the current thread blocks until after the specified selector is performed on the receiver on the main thread.
一个布尔值,指定是否阻塞当前线程直到指定选择器在主线程中执行完毕。
When an SPU thread gets created, the library will create a new thread that manages the SPU context asynchronous to the main thread.
在创建一个SPU线程时,这个库就创建一个新线程,它负责管理与主线程异步的spu上下文。
Any long running operation that operates on the main thread will cause an application to freeze up.
任何在主线程上运行的这类操作都会导致应用程序冻结。
That data is also available to the main thread by accessing the data property of the message it receives.
主线程也可以通过访问它接收到的消息的data属性来访问该数据。
The only problem with this function is that when it periodically executes, it executes on the main thread and thus blocks any interactions from the user during that time.
此函数的惟一缺陷是:它在主线程上执行,因此,在此期间,它会阻塞与用户的任何交互。
When you finish processing the data in the Worker script, you invoke the postMessage function to send data back to the main thread.
当您处理完Worker脚本中的数据时,调用postMessage函数将数据返回主线程。
Because the server runs on a separate thread, main exits once it is up and running.
由于服务器是在单独的线程上运行的,因此只要启动并运行,main就退出。
After the second pthread_create call, both the main thread and thread "b" can assume that thread "a" exists (or has stopped).
第二个pthread_create调用后,主线程和线程b都可以假定线程a存在(或已停止)。
Main thread: Call pthread_create .
主线程:调用pthread_create 。
When an application is launched, the system creates a thread called "main" for the application.
当一个应用程序运行时,Android系统自动的为该应用程序创建一个叫做“Main”的主线程。
When an application is launched, the system creates a thread of execution for the application, called "main."
应用程序启动时,系统会为它创建一个名为“main”的主线程。
The main method's logic is moved to a "main" RT thread that has the 8th RT priority.
main方法的逻辑被移到了一个具有第8RT优先级的“main”RT线程中。
This step is done to avoid blocking the main UI thread.
这一步是为了避免阻塞主ui线程。
This priority is higher than the priority given to either of the two other RT threads that the main RT thread creates.
这个优先级比主RT线程创建的两个其他 RT线程的优先级都要高。
Do not use the main application thread to make a remote call, as this would cause the application to become unresponsive while you wait on the remote server.
不要使用主应用程序线程发出远程调用,因为这将使应用程序在等待远程服务器响应时失去响应性。
应用推荐