-
公开(公告)号:US20200257558A1
公开(公告)日:2020-08-13
申请号:US16754563
申请日:2017-10-13
Applicant: Huawei Technologies Co., Ltd.
Inventor: Zhenchao Lin , Chao Ding , Lei Liu , Shun Xu , Bo Liu , Meng Deng , Shoudong Lu , Wei Zhao , Jianhai Lu
Abstract: A processing method and an apparatus, applied to the process of Binder communication, to resolve a problem that a normal communication service of an Android system is affected due to Binder thread exhaustion. The processing method comprises: when a. quantity of application threads in an application process of an application is greater than or equal to a first threshold, determining a quantity of Binder threads, the Binder threads are occupied by the application process, the application process is in each interface in a system server process (S301), wherein one application thread in the application process corresponds to one Binder thread in the system server process; and keeping a quantity of Binder threads not greater than a second threshold, the Binder threads are occupied by the application process, the application process is in at least one interface in the system server process (S302).