poll
Giannis Tsakiris
orb at cs.teiher.gr
Fri May 2 14:14:47 EEST 1997
> Alla an deis to man page ths select(), tha deis oti pairnei ws timeout ena
> struct timeval *. Afto orizetai sto /usr/include/linux/time.h ws ekshs:
>
> struct timeval {
> int tv_sec; /* seconds */
> int tv_usec; /* microseconds */
> };
>
>
malista! kai giati egw edw kai ena xrono sxedon nomiza oti n
tv_usec antiprosopeve ari8mo ekatostwn tou defteroleptou ???
(apokliontas tin etsi apo metriseis POLY megalis akrivias)
thanx pou mou anoikses ta matia toso kairo den eixa ti leksi MICRO.
wstosw, dokimasa tin akrivia tis select() se ena sparcstation 1+
kai paratirisa oti i akrivia tis einai aparadekti gia times stin
timeval mikroteres twn 10.000 microsecond. Gia na eksigisw afto to
gegonos fantazomai oti i diekpereosi mia klisis select() 8a apetei
to ligotero 10.000 microsec, opote den exei noima na bazoume times
mikroteres apo aftin (se isxirotera mixanimata isws o elaxistos xronos
ti select() na einai mikroteros).
Pantws gia metriseis me akrivia ekatostou defteroleptou opos blepw twra
i select() einai mia POLY kali lisi afou einai kai portable :)
Thanx a lot :)
Yannis Tsakiris
p.s.: Sxetika me tin erwtisi tou Ricudi "ti akrivws 8eleis na kaneis;"
mporw na apantisw "for example, mia klisi opos i sleep() alla me megalieri
akrivia". an afto ginete kai me allo tropo ektos apo ti select() ,kai
kalitera, as apantisei kapoios.
--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argeas.argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================
More information about the Linux-greek-users
mailing list