Home > Mobile >  The android interview, just have more complex Binder low-level details?
The android interview, just have more complex Binder low-level details?

Time:10-13

Binder is a deep topic, the author also have seen some people write the Binder of related articles, found that few people can introduce it clearly, not thorough code details cannot extricate oneself, is long, is dizzy feeling after the play, so, in this section, the author did not intend to delve into the Binder low-level details, because of Binder is too complex, "Android development art exploration"

CodePudding user response:

Wait for Montana, chatting about
Window on the IPC mechanism by shear plate, pipe and mail slot, etc.;
Linux in the IPC mechanism through a named pipe, Shared memory, semaphores, etc.;
Android is a mobile operating system based on the Linux kernel, it cannot fully inherited the Linux interprocess communication way, on the contrary, it has its own interprocess communication way, the most distinctive way of inter-process communication mechanism is the Binder, by Binder can easily realize the inter-process communication, in addition to the Binder, Android also supports the Socket, through Socket also can realize the communication between any two terminals, of course, the same two processes on the equipment through the Socket communication also can be natural,

CodePudding user response:

Wait for chat, Binder is a class of Android public class Binder implements IBinder {... }

CodePudding user response:

https://www.jianshu.com/p/062a6e4f5cbe

CodePudding user response:

The
reference lead son, reply: 3/f
https://www.jianshu.com/p/062a6e4f5cbe

Thx, described in the article "Binder mechanism is complex, wants to thoroughly understand is difficult, in addition to the need to understand all kinds of knowledge in the operating system, you also need to understand Binder driver layer code implementation," just from the point of view of macro used to illustrate the next, and not from the bottom,
  • Related