-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 16/01/13 07:59, Shuki Sasson wrote: > When we run the test we see that two threads are trying hundreds of > time to get through the begin unsuccessfully.
Look at the code for the default busy handler (sqliteDefaultBusyCallback). It keeps retrying with increasing backoff. If you do not like these intervals then write your own busy handler that uses a better algorithm for your use case. These are the default intervals used in milliseconds (providing you have sleep granularity better than seconds which is the case on Windows and with usleep). { 1, 2, 5, 10, 15, 20, 25, 25, 25, 50, 50, 100 } Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAlD4erkACgkQmOOfHg372QQWPwCfZlMikT1DnuiflZDa58pIdnD9 vwYAoKRI+Z5UQWl6NP6rm8K1eyrRxYht =vuw2 -----END PGP SIGNATURE----- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users