Friday, January 29, 2010

[android-developers] Re: The concurrency control of ContentProvider whose android:multiprocess is set true

On 1月28日, 下午9時38分, "Mark Murphy" <mmur...@commonsware.com> wrote:
> >     Does this mean that multiple instances of the same ContentProvider
> > will be running on different processes with different VM instance?
> > if the answer is yes, how do I control the mutual exclusion of
> > ContentProvider instances running on different VM instances in
> > different process space?  especially when the ContentProvider
> > instances accessing the same SQLite DB file?
>
> SQLite has built-in multi-process concurrency control -- it's part of the
> product.
>

But... another problem is since the multiple ContentProvider
instances are running in different process space, how do they access
the DB file that was created in different process space or user ID?

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate