If you have long operations to perform, you should make sure to do them in extra threads (background or worker threads).
如果有耗时的操作,你应该把这些操作放在另外的线程中进行处理(后台线程或者工作线程)。
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(线程)。
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。
The sheer size of the service is at the heart of many complaints, such as long waiting times, canceled operations and poor nursing care.
VOA: standard.2009.09.24
So I have n operations log n times, n log n there we go, n log n. Took us a long time to get there, but it's a nice algorithm to have.
所以我log,n遍的n次操作,就得到了,虽然花了不少时间得到了这个结论。
Eikenberry and McChrystal stressed the long-term nature of the U.S.commitment to the people of Afghanistan, long after the transition of combat operations from coalition to Afghan forces begins in 2011.
VOA: standard.2009.12.09
应用推荐