> Is there a more efficient approach than this?  And should I put a sleep in
> that loop, or will the scheduler automatically handle everything?  (I'll
> have about 150 threads in this loop simultaneously, each reading from its
> own socket, with each socket delivering about 1 line of input per
> second.)

> By the way, thanks for the excellent package -- I don't think I could have
> 150 threads running without it!  :-)

> Damon

        Why not just have one thread that 'select's on all 150 sockets?

        DS


______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
Development Site                      http://www.ossp.org/pkg/lib/pth/
Distribution Files                          ftp://ftp.gnu.org/gnu/pth/
Distribution Snapshots                 ftp://ftp.ossp.org/pkg/lib/pth/
User Support Mailing List                            [EMAIL PROTECTED]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]

Reply via email to