2014年10月16日

【并发编程】Binder运行机制的流程图

摘要: Binder工作在Linux层面,属于一个驱动,只是这个驱动不需要硬件,或者说其操作的硬件是基于一小段内存。从线程的角度来讲,Binder驱动代码运行在内核态,客户端程序调用Binder是通过系统调用完成的。参考资料http://blog.csdn.net/manoel/article/detai... 阅读全文

posted @ 2014-10-16 13:35 毛小娃 阅读(184) 评论(0) 推荐(0) 编辑

【移动开发】binder阻塞/非阻塞与单向/双向的问题

摘要: The client thread calling transact is blocked by default until onTransact has finishedexecuting on the remote thread. Transaction data consists of an... 阅读全文

posted @ 2014-10-16 13:29 毛小娃 阅读(452) 评论(0) 推荐(0) 编辑

【移动开发】AIDL中callback的实现

摘要: AIDL实现就可以在客户端中调用服务端的方法,并传递数据到服务端,也可以服务端传递数据过来;但是如果要从服务端去调用客户端的方法,那么就需要注册callback! 抄自和源码:http://zxl-ong.iteye.com/blog/736888 前面的文件讲到用AIDL来实现进程间的通信,但... 阅读全文

posted @ 2014-10-16 11:45 毛小娃 阅读(568) 评论(0) 推荐(0) 编辑

【并发编程】AIDL关键字

摘要: onewayOneway interfacesIn early betas, the Android IPC was strictly synchronous. This means that service invocations had to wait for the return value... 阅读全文

posted @ 2014-10-16 11:44 毛小娃 阅读(162) 评论(0) 推荐(0) 编辑

导航