[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

asynkron I/O (poll()?)



Hej!

Når man læser forskellige benchmarks for servere, får jeg den opfattelse at 
asynkron I/O er den "eneste rigtige" måde at lave en server på hvis man 
skal have _mange_ klienter.  Og der skulle poll så være systemkaldet til 
den slags.  Men så er spørgsmålet: hvor finder man information om hvordan 
man implementerer poll i sin server, og om de overhovedet har ret i alle 
tilfælde.  Jeg tænker at lave en server som kræver forbindelser potentielt 
varende flere timer (spil), og hvor klienterne godt kan influere hinandens 
state. Er det så stadig poll der er det rigtige? og hvis det er - hvordan? 
En tråd med der poll()'er alle klienternes sockets en for en med en timeout 
på 0.  Og så en tråd til at sende, evt med en poll på POLLOUT? links eller 
andre henvisninger ville være helt perfekt.  Og sidst men ikke mindst - 
"rigtig" asynkron I/O er blevet smidt på kerne 2.5s wishlist - hvad er det 
helt præcist de mener her?

VH Elias Naur


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *