There is more than one process in my application, and in each process I need to access the same SQLite database (of course, this means more than 2 hells), so I was worried not only about the safety of SQLite threads, but also the security process.
One solution for this case is to use a content provider . But from android sdk, he warns that his methods can be called from multiple threads and therefore must be thread safe . If the content provider alone does not necessarily mean thread safety, how can I assume that it is safe in the process?
The article also explains that, by default, SQLiteDatabase synchronizes, ensuring that neither of the two threads ever touches it at the same time. What if in the case of multiple processes? Can two processes change the same table at the same time? Will it be a wreck? I don't get any response after a google search ...
Several processes behave in the same way as several threads, i.e. their transactions are safe from interfering with each other.
Source: https://habr.com/ru/post/1202209/More articles:"Bitwise not" in Python not considering 2 additions - pythonThe overriding method with the selector '***' has an incompatible type '****' parse - objective-cHas C ++ 11 implemented a case-insensitive string comparison algorithm? - c ++How to provide QTextFrame or QTextBlock background image in QTextEdit? - qtHow is streaming directory reading in node.js? - javascriptBitmap scaling scaling for Android on canvas - androidFlask-RESTful custom routes except GET, PUT, POST, DELETE - pythonHow to use private action method in .net mvc? - asp.net-mvcWhy can't the static and non-static method use the same signature? - polymorphismUnsubscribe at end of period - phpAll Articles