Hi all,

    I developed sample application with below logic:

   1. in main(), got the valide gdbconn (type sqlite3*) after sqlite3_open
and sqlite3_prepare_v2.

   2. wal mode.

   3. created 4 threads and passed gdbconn as a argument to threads.

   4. Three are reader_threads. each reader thread executed different
queries. It's given correct results.

   5. Fourth thread is writer_thread. ||y updating the with same database
by using gdbconn. This is also working fine.


   I have used same gdbconn for all the threads. In my sample application,
it working perfectly in wal mode.

   Is it correct approach?


   If yes, will tbb improves the performance for reader_threads?


  Thanks in advance.

Regards,
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to