OSDN Git Service

Change the keep alive time for excess idle threads.
authorRomain Guy <romainguy@google.com>
Tue, 14 Sep 2010 18:30:27 +0000 (11:30 -0700)
committerRomain Guy <romainguy@google.com>
Tue, 14 Sep 2010 18:30:27 +0000 (11:30 -0700)
Change-Id: Ie076544df5ee8df185f0824333fdc62203a565c2

core/java/android/os/AsyncTask.java

index d28148c..5fb1d7c 100644 (file)
@@ -129,7 +129,7 @@ public abstract class AsyncTask<Params, Progress, Result> {
 
     private static final int CORE_POOL_SIZE = 5;
     private static final int MAXIMUM_POOL_SIZE = 128;
-    private static final int KEEP_ALIVE = 10;
+    private static final int KEEP_ALIVE = 1;
 
     private static final BlockingQueue<Runnable> sWorkQueue =
             new LinkedBlockingQueue<Runnable>(10);