discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nsrunloop is not using select?


From: Richard Frith-Macdonald
Subject: Re: nsrunloop is not using select?
Date: Tue, 23 Jan 2007 10:33:54 +0000


On 23 Jan 2007, at 07:55, Rogelio Serrano wrote:

whats the best for linux?

I think poll() is better on linux (and probably pretty much all modern platforms), but that's probably an issue to argue on kernel mailing lists.

i just skimmed the sources. so nsonnection is the delegate for nsport.
is that correct?

Yes.  It generally manages ports and handles port messages.

A multithreaded connection is one where the same port is added to the
runloops of multiple threads.  The thread safety issues make it less
efficient than single threaded connections.



wow its a little hard to wrap my little brain around that but i think
i have a use for that.

so is this is different from running a connection in a different thread then.

No, it's the same thing as using a single connection in two threads ... you tell the connection it is being used in more than one thread so it knows to do the locking etc to be thread safe.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]