In the infinite loop case above, all threads except main are in a waiting state (on a semaphore, or waiting for some event).
在上述死循环的情况下,所有除主线程之外的线程都处于某种等待状态(等待一个信号量,或等待某个事件)。
Instead, the program enters a while loop waiting for new connections.
相反,程序进入一个while循环,等待新的连接。
The main loop enters an indefinite loop, waiting for events and calling callbacks, until someone calls gtk_main_quit() by closing the window.
主循环进入无限循环,等候事件并调用回调,直到有人关闭窗口,调用 gtk_main_quit() 为止。
It then sets an internal flag called suspended to true and enters a loop, waiting to be sent a signal to resume.
然后将叫作suspended的内部标志设置为true,然后进入循环,等候别人发送信号,以继续其操作。
The loop subroutine then loops forever, waiting for a Hypertext Transfer Protocol (HTTP) request and then answering with the data needed.
loop子例程无限循环,等待一个HypertextTransferProtocol (HTTP)请求,然后用所需数据进行回答。
That means that if you commit every single update in a loop, you will waste a lot of time just waiting for acknowledgment.
这就意味着如果我们总是每更新一次数据便提交一次,会因为确认信息而浪费许多时间。
The endless loop typically involves blocking, or waiting, on a semaphore .
死循环中一般包括阻塞或等待一个信号量。
I loop you. Are you waiting for gossip girl?
来找你们是在等绯闻女孩吗?
A process is said to be in an idle state when it is waiting for messages inside of a message loop.
处理序在讯息回圈内等候讯息时,是处于所谓的闲置状态。
A process is said to be in an idle state when it is waiting for messages inside of a message loop.
处理序在讯息回圈内等候讯息时,是处于所谓的闲置状态。
应用推荐