tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <>
Subject Re: Initial test of APR on Solaris
Date Wed, 04 May 2005 07:37:07 GMT
Bill Barker wrote:
> I can get the test to finish if I synchronize around the 'Poll.poll'
> statement in the Poller.  However, doing this sends the perfomance right
> through the floor :(.  I'm guessing it's a problem with doing an add and/or
> remove (most likely remove, since it hangs when test threads are finishing)
> at the same time that it's in the middle of a poll.

Yes, you are correct with that.
Most APR poll implementations are not thread safe.
Think we'll need to add some sort of queue so that Poll.add,
Poll.remove are done in the same thread as Poll.poll.

If you had a faster box this probably would not be observed :).
The problem is that we are syncing .add and .remove, but the
.poll call if not thread safe can cause a problems.

I'll play with that to see how it can be done in the most
efficient way.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message