Hi Folks, I was wondering if it is possible to Call System.LoadLibrary on a separate thread for faster boot time. I have an app which has a lot of native code and hence takes a lot of time to boot because of System.LoadLibrary.I saw there is synchrozied(this) inside Runtime.java so we ca not load multiple s in parallel. but is it feasible to load so on a separate thread while ui thread is busy creating the ui? In fact I did give it a try by putting my so load to a separate thread. But what I observed was my ui/main thread wasn't doing anything meanwhile, if i remove this second thread then my ui thread is busy creating the rest of the activities and bunch of other stuff. Total so load time is ~400ms for me and I saw no logs from ui thread meanwhile. Is this expected? What is the way to parallelize this? I know that scheduling in Android is an RR one. So what is the time slice? I am sure 400ms seems to be too much for a time slice.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/3ea784ff-a7ba-43af-a836-25b53cdfd282%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

