Re: [perf-discuss] can anybody explain the difference between select() and port_getn()

2008-03-13 Thread Sophie Hu
Thanks all. Now I understand. This message posted from opensolaris.org ___ perf-discuss mailing list perf-discuss@opensolaris.org

Re: [perf-discuss] can anybody explain the difference between select() and port_getn()

2008-03-13 Thread prakash sangappa
Sophie Hu wrote: > It seems that all of you are expert at port and select(). Let me ask another > question: Actually I found sth. strange when I use port_get(). I am not sure > if it is a bug of port_getn() or if it is due to my code. just FYI in case > you used to have the same problem or you a

Re: [perf-discuss] can anybody explain the difference between select() and port_getn()

2008-03-13 Thread Bill Sommerfeld
On Wed, 2008-03-12 at 23:28 -0700, Sophie Hu wrote: > after I return from port_getn(), if I reassoociate the sock using > port_associate() immediately after i return from port_getn(), then > next time the event which is available last time will be available > again. That's expected -- if you re-a