A blocking operation is currently executing.
目前正在执行一个阻挡性操作。
The ideal number is one per processor, but that implies that none of these threads should execute a blocking operation such as a synchronous read/write or a wait on an event.
理想的情况是,线程数量等于处理器的数量,不过这也要求任何线程都不应该执行诸如同步读写、等待事件通知等阻塞型的操作,以免线程阻塞。
Unlocking the mutex happens immediately, but waiting on the condition mycond is normally a blocking operation, meaning that our thread will go to sleep, consuming no CPU cycles until it is woken up.
对互斥对象解锁会立即发生,但等待条件mycond通常是一个阻塞操作,这意味着线程将睡眠,在它苏醒之前不会消耗CPU周期。
应用推荐