内核负责将进程转移到睡眠状态、等待套接字做好写入的准备、读取TCP状态代码,等等。
The kernel takes care of moving the process to sleeping state, waiting for the socket to be ready for writing, reading the TCP status code, and so on.
要等待某个事件,则可以使用 semop()函数,并将 sem_op 的值设置为-1,这样就可以阻塞调用进程,直到它变为有信号状态为止。
To wait on an event, semop() function is used with sem_op value as -1 thus blocking the calling process until it is signaled.
这一次的操作是同步进行的,并且服务器进程在客户端向其发出调用之前一直处于等待状态的。
This time the operation is synchronous, and the server process waits for the go ahead before the call returns to the client.
他们认为一个消息队列上的操作过程中进入睡眠状态(即队列已满,该进程正在等待开口)时使用。
They are used when an operation on a message queue deems the process go into a sleep state (i. e. queue is full and the process is waiting for an opening).
处于等待状态的一个进程,该进程在一个环形缓冲区或信号灯处等待,直到另一个进程发出释放。
A process in the wait state. A process waits on a ring buffer or semaphore, unable to change state and resume execution until the ring buffer or.
实现父子进程的同步,当父进程试图从一空管道中读取数据时,便进入等待状态,直到子进程将数据写入管道返回后,才将其唤醒。
Son process to achieve the synchronization, when the parent tried to read an empty pipe, they enter the wait state until the child process to write data pipeline to return only after its wake.
实现父子进程的同步,当父进程试图从一空管道中读取数据时,便进入等待状态,直到子进程将数据写入管道返回后,才将其唤醒。
Son process to achieve the synchronization, when the parent tried to read an empty pipe, they enter the wait state until the child process to write data pipeline to return only after its wake.
应用推荐