|
||||||||
|
|
#1
|
|
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 |
|
#2
|
|||
|
|||
|
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? |
![]() |
| Tags |
| behaviour, select |
| Thread Tools | |
| Display Modes | |
|
|