MySQL Forums
Forum List  »  Connector/C (libmysql)

Re: Multitrheaded application and lock issues
Posted by: Jonathan Short
Date: April 29, 2005 06:37AM

I was wondering if it is a problem with the way I am creating the connection or the query class. I would expect the query to try to get a lock and then wait for the lock to become available. The problem is that I am getting the lock failed error within 1-2 mSecs there is not a delay long enough to allow the lock to clear when multiple threads are running. It works fine when run in a single thread. Trying to allow the database to do its job and not have to write manual mutex schemes.

thanks for any help you can provide

Options: ReplyQuote

Written By
Re: Multitrheaded application and lock issues
April 29, 2005 06:37AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.