Subject Re: [ib-support] Gaaa...More deadlocks!
Author John Bellardo
Dan,

On Friday, November 15, 2002, at 04:04 PM, nitaligavino wrote:

> Okay, this is another posting to "Gaaa...need help with database
> deadlock!"
>
> I have found that I can produce deadlocks in the API with out using
> tpb's. That is the exact same deadlock in the my previous posting
> but under the following conditions:
>
> I have a test app that creates 100 threads, in a loop. Each thread,
> once started, calls isc_attach_database(...). That's it. I can get
> exactly 48 threads connected before the API deadlocks and the app
> stop responding. At this point none of the isc_attach_database()
> calls return.
>
> Any ideas??

A shot in the dark here. isc_attach_database might not be thread-safe.
What happens if you serialize all 100 calls to isc_attach_database()
and then let the threads work in parallel?

-John