对不能进入或保持睡眠状态的一个笼统的称谓是失眠——就像患者们知道的——是一个严重的问题。
A catch-all term for the inability to fall or stay asleep, insomnia is — as sufferers know — a very serious problem.
它将处于可终止睡眠状态的调用进程置于 queue 中,直到 condition 等于 true。
h; it puts the calling process to sleep killably in queue until the condition evaluates to true.
将进程置为睡眠状态的普通方法是将进程状态设置为TASK_INTERRUPTIBLE或TASK_UNINTERRUPTIBLE并调用调度程序的schedule函数。
The normal way to put a process to sleep is to set the process's state to either TASK_INTERRUPTIBLE or TASK_UNINTERRUPTIBLE and call the scheduler's function schedule .
应用推荐