How to synchronize an operation among instances of same app?

Put your problem here if it does not fit any of the other categories.

How to synchronize an operation among instances of same app?

Postby henryci » Mon Apr 27, 2009 6:32 am

I'm creating a library which could be used in apps with any sort of LaunchMode. At one point I do some file I/O and I'd like to synchronize this. Is there any object I can access to synchronize() on, or is it faster to use FileLocks?

Thanks,

-- Henry
henryci
Freshman
Freshman
 
Posts: 4
Joined: Sat Mar 14, 2009 8:01 pm

Top

Postby henryci » Mon Apr 27, 2009 6:38 am

Or is it the case that on Android two instances of the same app occur within the same process and doing
synchronized(LibraryClass.class)

is sufficient?

-- Henry
henryci
Freshman
Freshman
 
Posts: 4
Joined: Sat Mar 14, 2009 8:01 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 22 guests