next up previous Back to Operating Systems Home Page
Next: Re: Sockets on Solaris Up: 1998 term messages Previous: A4: socket closing

A4 - select(2): what's the point?

A couple of students have asked me whether there is any need 
to use select(2) in a server implemented using the
"one thread per client" threading model. 

Well, let me point you to two cases, both on the client side:
        1) telnet(1) must pay attention both to the socket
           connected to the remote machine and to your keyboard

        2) have a look at the message entitled "Flip flop server for
           assignment 5: a fairytale", for something *much* closer
           to your A4 - it's in the 1995 messages section.

Ciao
Franco


\ Franco Callari