Because of the single thread model described above, it's vital to the responsiveness of your application's UI that you do not block the UI thread.
根据对以上单线程模式的描述,要想保证程序界面的响应能力,关键是不能阻塞UI线程。
The go runtime environment provides support for goroutines, which are allocated a single thread, and does not support parallel execution yet, which may be provided later.
go运行时环境提供了对goroutines的支持,会为它分配单独的线程,但现在还不支持并行执行,该功能会在以后提供。
When using a custom thread pool such as a ThreadPoolExecutor, it may not be desirable to run work within a single J2EE context.
在使用自定义线程池(如ThreadPoolExecutor)时,可能不需要在单个J2EE 上下文中运行工作。
Unfortunately, it violates the single-threaded model for the UI: the Android UI toolkit is not thread-safe and must always be manipulated on the UI thread.
但不幸的是,上面的代码违背了UI线程的单线程模式:Android UItoolkit不是线程安全的,所以对UI的操作都应该在主ui线程中进行。
Regardless of whether or not you use AsyncTask, always remember these two rules about the single thread model.
无论您是否使用asynctask,都要记住单线程模型的两个规则。
Several threads can be executing in a single application domain at any given time and a particular thread is not confined to a single application domain.
在任意给定时间,在单个应用程序域中可以执行几个线程,而且特定线程并不局限在单个应用程序域内。
If you're running on a single thread, the thread will not be able to allow other work to progress unless it explicitly yields.
如果你在一个单线程运行,线程不会除非它明确的收益能够允许其他工作进展。
Having a single thread for this purpose would likely create a bit of a performance bottleneck though, which I'm not too keen on.
有一个单一的线程为这个目的可能会产生一点性能瓶颈,我不太热衷。
And neither were any of the other doors, And not a single stick of furniture, thread of carpet or speck of dust did we see in any of them.
没有一件家具,没有一根毯子线,也没有任何地方能看到灰尘。
Please do not submit duplicate tickets and keep conversation in single thread to avoid delays and unexpected problems while we working on the reported issue.
请不要重复提交单一票和保持对话,以避免延误线程和意想不到的问题的同时,我们对报告的问题的工作。
The most probable cause is that a single-threaded apartment (STA) thread is not pumping messages.
原因很可能是单线程单元 (STA)线程不发送消息。
The most probable cause is that a single-threaded apartment (STA) thread is not pumping messages.
原因很可能是单线程单元 (STA)线程不发送消息。
应用推荐