LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-22-2011, 11:01 AM   #1
PinoyAko
LQ Newbie
 
Registered: May 2011
Posts: 28

Rep: Reputation: 0
Select() vs WSAWaitForMultipleEvents


Is WSAWaitForMultipleEvents better than select() if you are programming a software that will run in windows?
 
Old 05-22-2011, 06:34 PM   #2
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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.
 
Old 05-22-2011, 08:18 PM   #3
PinoyAko
LQ Newbie
 
Registered: May 2011
Posts: 28

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by dwhitney67 View Post
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.
 
Old 05-23-2011, 05:27 AM   #4
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
regarding select ashok.m Linux - Networking 2 08-10-2010 06:40 AM
select in vi adnanm Linux - Newbie 5 06-02-2007 05:36 AM
select() Kroenecker Programming 1 03-12-2006 01:01 AM
select jhon Programming 5 11-01-2005 09:46 PM
Select() did not select my socket thvo Programming 1 05-08-2005 12:20 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration