I think they are used in different ways...

port_getn() gets events from a port, while select() gets events from
one file or more file descriptors.

Rayson



On 3/10/08, Sophie Hu <[EMAIL PROTECTED]> wrote:
> I know port_getn is more efficient that select() because when some event 
> happens on the port, port_getn simply return it; while by using select(), 
> when some event happens, select() tries to get the socket of this event, and 
> then tries to find which bit is related to the socket, then mask that bit, 
> and then return, is it correct? Can anybody explain more? thx
>
>
> This message posted from opensolaris.org
> _______________________________________________
> perf-discuss mailing list
> perf-discuss@opensolaris.org
>
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to