top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

App with multiple threads reboot the Android userspace [CLOSED]

0 votes
39 views

I made an app (Java based, without JNI stuff), to stress our android device. It does some intensive work and /sdcard IO writes (They are 60 threads) all of them are with FOREGROUND priority.

After a couple of minutes appeared crashes in different places (system_server - FinalizerDaemon timeouts) and then the Watchdog rebooted the device with message Watchdog killing system process: null.

I tested it also on Nexus 7 and other android devices in production, the behavior is the SAME. It seems that some apk, can overload the system and to reboot the user-space.

Is this behavior (under high pressure/load from FOREGROUND threads) is by design in android Jelly-Bean and are there any plans for some remedy for this situation.

closed with the note: None
posted Aug 7, 2013 by Naveena Garg

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

+1 vote
 
Best answer

That sounds like a bug. Can you please post a report to https://code.google.com/p/android/issues/list with a (link to a) small snippet of code that triggers the error, and specify which platform version?

answer Aug 7, 2013 by anonymous
Similar Questions
+1 vote

What is best thread priority for intensive disk I/O operations - Foreground or Background?

+1 vote

In Android5.0, an App(apk) can be installed in multiple users. When the App is running in another user, there is a new process of the App. I want to develop a App which is running in multiple users but only one process is created. Some system process, such like "com.android.phone" is running in this way. But I can not find the way to do that.

I have tried as below, but don't work.

  1. use sharedUserId as system, and mark persistent to be true;
  2. sign app as platform signature, put the apk to /system/app or /system/priv-app/;

However, service/recevier/provider can use in manifest.xml to share the same component although.(single user tag must be installed in /system/priv-app/).

0 votes

I heard the term "worker thread" and other types of threads such as "system thread" and "user thread".
For me a thread is nothing but a lite weight process and multi-threaded design is chosen for a software development when there are multiple task in the application/system and those tasks can be executed independently.
I want to know when these different terms are used like worker thread, user thread and system thread ?


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...