title: How thread safe is EnableWriteAheadLogging in the context of real usage and SQLite documentation?
body: <p>The android documentation describes "EnableWriteAheadLogging" over here:</p>
  
  <p><a href="http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#enableWriteAheadLogging()" rel="nofollow">http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#enableWriteAheadLogging()</a></p>
  
  <p>"This method enables parallel execution of queries from multiple threads on the same database"</p>
  
  <p>However, according to the SQLite documentation: <a href="https://www.sqlite.org/threadsafe.html" rel="nofollow">https://www.sqlite.org/threadsafe.html</a></p>
  
  <p>there are two kinds of multithreading for SQLite: "Serialized" and "Mulit-thread". Which one is used when using "EnableWriteAheadLogging"?</p>
  
  <p>In addition, if my database needs to be accessed by both my app and a background service, does it help to use EnableWriteAheadLogging? Which actions should I take to make sure this can be done in a thread safe way?</p>