In my application, background sqlite thread is running... in background thread it fetching data from web service and insert or update data into database. if user insert or delete data from foreground,sometimes i am getting crash it display "sqlite dblocked". but it does not return sqlite busy error.
And i tested thread safe mode
NSLog(@" sqlite3_threadsafe() = %d", sqlite3_threadsafe());
it display threadsafe is 2.
I want to check if any other db is writing data, if db is writing data.. i want to write data after previous write task is finished.
how to handle these situation..