title: Run FMDB processes on the same background thread?
body: <p>I am having problems using fmdb to read and write data into the same database.</p>
  
  <p>There are instances in my app where 1 class would write data into the database on the background thread while another class would read data from the same database on the main thread, both read and write processes deal with fairly large data, like a few hundred NSDictionary.</p>
  
  <p>I've heard that fmdb is not "thread-safe", which will crash my app when I try to read and write in the above scenario. I've also heard suggestions to run the 2 fmdb processes on the same thread so that the app does not crash.</p>
  
  <p>I've tried running them both in background threads (using NSInvocationOperation) but it crashes, I realised that they are actually running on separate background threads which caused the conflict.</p>
  
  <p>So the question is, how can I make all the fmdb processes run on the same background thread so that they do not crash my app?</p>
  
  <p>Or are there any alternatives handling my SQL data?</p>
  
  <p>*Sorry if I didn't explain it clearly, willing to clarify.</p>
  
  <p>Thanks for reading!</p>