Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Regarding behaviour of select() all

Reply
 
Thread Tools Display Modes
  #1  
Old 10-09-2004, 08:02 AM
Default Regarding behaviour of select() all



Can any body tell me the behavoiur of following code snippt,

struct timeval tv;

tv.tv_sec = 0;
tv.tv_usec = 18000;

select( 1, (fd_set *)0, (fd_set *)0, (fd_set *)0, &tv );

So what would be the behaviour of this select() call?? If you think it will hold
the process for 18000 ms, then its not behaving like that.

Any help would be appreciated.


Rajat
Reply With Quote
  #2  
Old 10-09-2004, 09:54 PM
Bryan Batten
Guest
 
Posts: n/a
Default Re: Regarding behaviour of select() all

Rajat wrote:
> Can any body tell me the behavoiur of following code snippt,
>
> struct timeval tv;
>
> tv.tv_sec = 0;
> tv.tv_usec = 18000;
>
> select( 1, (fd_set *)0, (fd_set *)0, (fd_set *)0, &tv );
>
> So what would be the behaviour of this select() call?? If you think it will hold
> the process for 18000 ms, then its not behaving like that.
>
> Any help would be appreciated.


18 (not 18,000) milliseconds?
Reply With Quote
Reply

Tags
behaviour, select

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 02:28 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.