作者:到几百元_309 | 来源:互联网 | 2023-10-16 14:42
Threadtowaitinfinitelyinaloopuntilaflagstatechange,thencallfunction.线程在循环中无限期等待,直到标志状
Thread to wait infinitely in a loop until a flag state change, then call function.
线程在循环中无限期等待,直到标志状态改变,然后调用函数。
pseudo code illustration:
伪代码图:
while (true)
{
while (!flag)
{
sleep(1);
}
clean_upfunction();
}
Currently:
- Using the multithreaded versions of the C run-time libraries only
仅使用C运行时库的多线程版本
No:
Question:
3 个解决方案