poll

Alexios Chouchoulas alexios at vennea.demon.co.uk
Fri May 2 03:20:51 EEST 1997


On Fri, 2 May 1997, Giannis Tsakiris wrote:

> H' stin teliki an uparxei kapoia klisi opos i select() alla na dinei
> akrivia milisecond.

  H poll() den yparxei sto Linux ap'oti fainetai -- einai SunOS/Solaris
specific?

  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 */
};

  Ara mporeis na oriseis kathysterhseis se akribeia 1e-6 sec. Fantazomai oti
afto psaxneis... Den kserw poso standard/POSIX einai afto, alla thymamai oti
sto SunOS/Solaris eixa dei ena mikro programmataki pou sou dinei
kathysterhseis me akribeia microsecond kai afto xrhsimopoiouse thn select().
Ara ypopsiazomai oti afth h symperifora ths select() einai standard.

  Tespa, efxaristw pou aneferes to thema, giati afto mou xreiazotan kai
alliws tha ksexnaga teleiws na to koitaksw. :-)


Alexios Chouchoulas          '88    ,88'   ,88'     alexios at vennea.demon.co.uk
The Unpronouncable One      ,o88oooo88ooooo88oo,              axc at dcs.ed.ac.uk

--
====================================================================
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