The mechanism of binder in graphic analysis

Source: Internet
Author: User
Tags mremote

General statement:

Binder is an IPC mechanism provided by Android system, the Android system can basically be regarded as binder-based C/s architecture, Binder is also a C/s form, it belongs to drive but drive a piece of memory rather than equipment, framework such as :


1. Service-side interface

A biinder server is actually a binder class object that, once created, initiates a hidden thread that accepts a message sent by the binder driver and executes the Ontransact () method of the Binder object after receiving the message, as

2. Binder Driver

Mainly involved in the Mremote object.

3. Client interface

To access a remote service, you must obtain a mremote reference to the remote service in the Binder object, and then you can call its Transact () method (the method is overloaded)


Finally, a picture is used to summarize the binder process:



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

The mechanism of binder in graphic analysis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.