If you have long operations to perform, you should make sure to do them in extra threads (background or worker threads).
如果有耗时的操作,你应该把这些操作放在另外的线程中进行处理(后台线程或者工作线程)。
Providing a comfortable glove for surgeons to manoeuvre miniscule robots over a patient's body during long operations could save lives.
在漫长的手术过程中,外科医生戴上舒适的手套就可以操纵微型机器人为病人手术,从而拯救他们的生命。
Specifically, if everything is happening in the UI thread, performing long operations such as network access or database queries will block the whole UI.
如果UI线程需要处理每一件事情,那些耗时很长的操作——诸如访问网络或查询数据库等——将会阻塞整个UI(线程)。
Since everything happens on a single thread performing long operations, like network access or database queries, on this thread will block the whole user interface.
一旦所有的事件都在一个线程中进行耗时的操作,比如说在这个线程上进行网络连接,数据库访问,会阻塞程序的界面响应。
Specifically, if everything is happening in a single thread, performing long operations such as network access or database queries on the UI thread will block the whole user interface.
特别是,如果把所有的事件都放在主线程中来处理,需要长时间来处理的事件比如网络访问或者数据库查询,会阻塞整个UI。
Parallel rails had long been used in mining operations to move bigger loads, but horses were still the primary source of power.
在采矿作业中,平行铁轨早已被用来运送大件的货物,但马匹仍然是主要的运输工具。
What are some examples of such long running operations?
那么长时间运行的操作有哪些例子呢?
You might see examples of prime factorizations of large integers, or sorting huge lists of complex data structures, and those are certainly long running operations.
您可能见到过大整数质因数分解,或是对复杂数据结构的庞大列表进行分类,这些都是长时间运行的操作。
The new policy also recognizes that for a long time now only a minority of "adjustment" lending operations have been preceded by a crisis to which adjustment is necessary.
新的政策还认识到,在此之前很长一段时间内,只有在少数的“调整”贷款业务之前出现过必须予以调整的危机。
This really brings me to the more general use case for multiple threads: long running operations.
这也让我想起了多线程的一个更常用的用例:长时间运行的操作。
This is especially helpful for long SQL statements that include JOIN operations or complex WHERE clauses that might wrap over several lines.
对于包含JOIN操作或复杂的where子句的sql长语句(可能包含几行语句),这一点特别有用。
Supporting real-world enterprise business processes inherently involves asynchronous operations, as the processes are long in duration.
支持实际的企业业务流程本质上要涉及到异步操作,因为这些流程持续的时间比较长。
Gaza officials put the Palestinian death toll from the week-long Israeli operations at around 500.
加沙地带官员说,以色列一个星期来的军事行动造成大约500名巴勒斯坦人丧生。
When you are planning the project, don't forget to consider long-term issues such as operations, support, and continued improvements to the warehouse.
当您计划该项目时,不要忘记考虑长期的问题,例如对仓库的操作、支持和不断的改进。
Until the deficiency is resolved, the Open SCA component must use a pair of one-way interfaces to communicate with long running request-response operations.
在解决该不足之前,OpenSCA组件必须使用一对单向接口来与长时间运行的请求-响应操作进行通信。
The move would boost Ford's and Mazda's combined annual production capacity in China - long a comparatively weak link in Ford's global operations - to 600, 000 vehicles from the current 447, 000.
这将使福特和马自达在中国的合计年生产能力从目前的44.7万辆提高到60万辆。 中国业务一直是福特汽车全球业务中相对薄弱的一环。
It's simply the nuts and bolts of how a business plans to generate revenue and profits. It details your long-term strategy and day-to-day operations.
它只是阐述一门生意如何产生收入和利润,只是将你的长期策略和日常运营具体化。
Yes, the load and save operations would take a long time, but they did not have to be performed frequently.
是的,加载和保存操作要花费较长的时间,但是这些操作并不经常执行。
But I'm seeing some small businesses refusing credit to long-term customers and even in some cases trying to become cash-only operations.
但是,我们看到一些小型企业拒绝提供信贷给长期客户甚至于在某些情况下试图只进行现金支付的操作。
A contact task contains concurrent or asynchronous operations is a long-running process, and progress at every step needs to be saved to a database.
包含并发或异步操作的联系任务是一个长期运行的进程,每一步进展都要被保存到数据库。
Break up long-running operations into smaller chunks to meet this goal.
将执行时间长的操作分解成符合要求的小块。
Be careful when using pooled threads for potentially long-lived operations.
在为时间可能很长的操作使用合用的线程时要小心。
Because of performance problems using EJB2 queries, we decided a long time ago to use direct JDBC calls for query operations and EJB2 CMP for create, retrieve, update, and delete (CRUD) operations.
由于使用e JB 2查询存在性能问题,我们很早就决定对于查询操作使用直接JDBC调用,而对于创建、检索、更新和删除(CRUD)操作则使用EJB2CMP。
An obvious gain from an asynchronous, event-driven design is that many operations waiting for external services can be executed in parallel as long as no data dependency exists between them.
事件驱动异步设计的一个明显优点就是,如果大量等待外部服务的操作之间没有数据依赖关系,则可以并行执行这些操作。
The BBC's operations in the Middle East have long been a delicate issue.
长期以来,BBC在中东地区的报道工作一直是个敏感问题。
AIG went bust during the financial crisis because of long-standing mismanagement of a derivatives business; but its Asian operations are a remarkable collection of assets.
在金融危机中,美国国际集团因长期对衍生产品交易管理不当而遭受了巨大损失,但其亚洲业务却积累了庞大的资产组合。
AIG went bust during the financial crisis because of long-standing mismanagement of a derivatives business; but its Asian operations are a remarkable collection of assets.
在金融危机中,美国国际集团因长期对衍生产品交易管理不当而遭受了巨大损失,但其亚洲业务却积累了庞大的资产组合。
应用推荐