On Sun, May 24, 2009 at 7:17 AM, Mark Murphy <mmur...@commonsware.com>wrote: (...)
> > I'm using a few threads that may attempt concurrent writes on the > > database. There doesn't seem to be any documentation on whether > > SQLDatabase its thread-safe or not, whereas I just assumed a > > ContentProvider would be. > > I would not necessarily assume ContentProvider is single-threaded (there > was some exchange between Ms. Hackborn and Mr. Nelissen on that topic on > one of these lists recently, and I forget their collective conclusion on > the issue). ContentProvider is not singlethreaded, but SQLite database access generally takes an exclusive lock, so a lot of the database work is serialized. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---