you could put the calling thread to sleep for a little bit, say three seconds between each check, but then your threaded code wouldn「t be optimally responsive.
在每次检查之间,可以让调用线程短暂地进入睡眠,比如睡眠三秒钟,但是因此线程代码就无法最快作出响应。
when running as a threaded server, multiple threads of execution can be active in the server at the same time, generating the reply to more than one user at once.
当作为一个采用线程的服务器运行时,服务器中可以同时有多个线程都处于活动状态在执行,一次可以为多个用户生成响应信息。
they knew what a thread was, but were never challenged to write an actual threaded application.
他们知道线程是什么,然而从未书写过实际的线程化的应用程序。
here we see the simplest form of a threaded application.
这里看到了线程程序最简单的形式。
based on the new execution annotations the user can define if the call back methods of his network handler should be executed in single threaded mode or multithreaded mode.
基于新的执行注释,用户能清楚地规定其网络处理器中的回调函数应该以单线程的模式执行还是多线程的模式执行。
another use of label values is in an interpreter for threaded code.
另一种是使在线程编程中的解释程序中使用。
let」s see what happens to program schedules when they are created in a single threaded or single-tier vacuum.
让我们来关注一下在单线程或是单层空间创建项目计划安排是发生的事。
those readers can use that extension to display comments to an entry as a threaded discussion.
这些阅读器可以使用该扩展来将条目的评论显示为线程的讨论。
mutexes are necessary tools for threaded programs, but they can't do everything.
互斥对象是线程程序必需的工具,但它们并非万能的。
the functions are cancellation points and might cause a pending signal to get delivered in a threaded environment when the program is not expecting it.
这些函数都是可撤销点,并且可能导致在线程环境中产生一个该程序并不期望的挂起信号。
configuring the threaded mpms is similar, except that you must determine how many threads and processes are to be used.
配置线程化mpm与之类似,不同之处只是必须确定使用多少线程和进程。
in this two part article i will explore these features and attempt to answer the performance question with the aid of a single threaded benchmark.
在这篇由两部分组成的文章里,我将逐一探究这些特性,并尝试在单一线程基準的协助下,回答关于性能的问题。
the ship threaded her way between the hidden rocks.
船从暗礁之间穿过。
threaded programs also run into a few problems that are not normally seen with multiple processes and ipc.
线程程序有时会出现在多进程和ipc程序设计中不常出现的一些问题。
even so, that rate is impressive for a single threaded application given the comparative size of the document being exchanged.
尽管如此,在交换的文档大小适中的情况下,这样的处理速率对于单线程应用程序来说仍然令人吃惊。