This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 背景文章:看android内核需要看什么—— | |
| 《Android系统和linux内核的关系详解》 | |
| http://blog.sciencenet.cn/blog-618303-626146.html | |
| <Binder IPC Mechanism> | |
| http://www.angryredplanet.com/~hackbod/openbinder/docs/html/BinderIPCMechanism.html | |
| <Android's Binder> | |
| http://lukejin.wordpress.com/2011/03/13/android%E4%B8%AD%E7%9A%84binder/ | |
| <技术内幕: Android的IPC机制-Binder> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| the following code is quite helpful to penetrate into the secrete of thread pool: | |
| public class BoundedExecutorService { | |
| BlockingQueue<Runnable> blockingQueue = new ArrayBlockingQueue<Runnable>(4); | |
| RejectedExecutionHandler rejectedExecutionHandler = new ThreadPoolExecutor.CallerRunsPolicy(); | |
| private ExecutorService executorService = new ThreadPoolExecutor(2, 2, 0L, TimeUnit.MILLISECONDS, | |
| blockingQueue, rejectedExecutionHandler); | |
| public void execute(Runnable command) { | |
| executorService.submit(command); |
NewerOlder