[gambit-list] Problem in thread-sleep! may be a poor implementation of the select system call

Bradley Lucier lucier at math.purdue.edu
Tue Jan 27 21:19:54 EST 2009


On Jan 27, 2009, at 8:36 PM, Marc Feeley wrote:

> I'm curious to know how well other operating systems handle the  
> timeout.  So, if you have access to some unusual operating system,  
> could you try the above program and report back what value is printed?

Does Solaris count as unusual nowadays?

zuse-2% gsc select.scm
zuse-3% gsi select
103

> I also wrote the C program below to test the resolution of select's  
> timeout.  You can try that too.

zuse-5% gcc -o select-test -O2 -Wall -W select-test.c
select-test.c: In function 'sleep_using_select':
select-test.c:45: warning: implicit declaration of function 'memset'
select-test.c:45: warning: incompatible implicit declaration of built- 
in function 'memset'
select-test.c: In function 'main':
select-test.c:62: warning: unused parameter 'argc'
select-test.c:62: warning: unused parameter 'argv'
zuse-8% time ./select-test
0.01u 0.00s 1:40.04 0.0%

zuse-9% uname -a
SunOS zuse.math.purdue.edu 5.9 Generic_118558-06 sun4u sparc SUNW,Sun- 
Fire-280R



More information about the Gambit-list mailing list