84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
windows的同步对象都是用句柄来表示,所以,WaitForMultObjects可以等待多个句柄signal,并且最多的功能是等待N个句柄里的某一个,并且进行对应的处理。
linux下有select,poll之类的来进行对多个socket或者文件进行监听,但是不能等待多个mutex,而条件变量和mutex的组合的模式又不一样。
简单的问题就是,linux多个线程,每个线程可以同时等待多个对象,并且达到同步的效果吗?
No, consider other options.
The final conclusion is that Linux really cannot implement the system-level function of waiting for multiple objects. Interested students can take a look at this discussion http://www.newsmth.net/bbstcon.php?board=LinuxDev&gid=59182&st...
ps, there are so few people using Linux C here
No, consider other options.
The final conclusion is that Linux really cannot implement the system-level function of waiting for multiple objects.
Interested students can take a look at this discussion http://www.newsmth.net/bbstcon.php?board=LinuxDev&gid=59182&st...
ps, there are so few people using Linux C here