title: best way to write data to a sqlite from multiple threads
body: <p>I am creating a monitoring application. I want to read queries from all the servers and store it in a sqlite file. Display it whenever it is required. I am using c++ to write this application - to fetch and store data from multiple servers to a single sqlite database. I am using separate threads to fetch data from multiple servers. If I fetch and write data to sqlite directly then it may lock sqlite file as 100s of threads will be writing at the same time. 
  What is the best way to write data to a sqlite from multiple threads? </p>