LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Select() vs WSAWaitForMultipleEvents (https://www.linuxquestions.org/questions/programming-9/select-vs-wsawaitformultipleevents-882106/)

PinoyAko 05-22-2011 11:01 AM

Select() vs WSAWaitForMultipleEvents
 
Is WSAWaitForMultipleEvents better than select() if you are programming a software that will run in windows?

dwhitney67 05-22-2011 06:34 PM

I for one think that select() is better. It requires less typing, and it is supported by Windows, Linux, Unix, OS-X, and a lot of other OS-es.

PinoyAko 05-22-2011 08:18 PM

Quote:

Originally Posted by dwhitney67 (Post 4364019)
I for one think that select() is better. It requires less typing, and it is supported by Windows, Linux, Unix, OS-X, and a lot of other OS-es.

Thanks for replying. Im just wondering if WSAWaitForMultipleEvents will perform better on windows.

dwhitney67 05-23-2011 05:27 AM

Why don't you develop two (simple) applications: one that uses WSAWaitForMultipleEvents and the other that uses select(). Compare their performance to each other. Of course, you need to ensure that your Windows system is behaving optimally during both runs, and that nothing else is hogging resources while you perform the tests.

Alternatively, you could just go with the POSIX standard function... that is, select()... and move on to better things.


All times are GMT -5. The time now is 06:38 PM.