[go: up one dir, main page]

CN107729283B - A method, system and storage medium for controlling CPU expansion based on mobile terminal - Google Patents

A method, system and storage medium for controlling CPU expansion based on mobile terminal Download PDF

Info

Publication number
CN107729283B
CN107729283B CN201710936477.4A CN201710936477A CN107729283B CN 107729283 B CN107729283 B CN 107729283B CN 201710936477 A CN201710936477 A CN 201710936477A CN 107729283 B CN107729283 B CN 107729283B
Authority
CN
China
Prior art keywords
cpu
terminal
passive
active
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710936477.4A
Other languages
Chinese (zh)
Other versions
CN107729283A (en
Inventor
涂斌健
曾健浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jiazhilian Technology Co ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201710936477.4A priority Critical patent/CN107729283B/en
Publication of CN107729283A publication Critical patent/CN107729283A/en
Application granted granted Critical
Publication of CN107729283B publication Critical patent/CN107729283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/161Computing infrastructure, e.g. computer clusters, blade chassis or hardware partitioning
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种基于移动终端控制CPU扩展方法、系统及存储介质,设置为主动终端的第一移动终端与设置为被动终端第二移动终端通过有线或者无线方式进行通信连接;预先将所述主动终端和所述被动终端中的任一核CPU设置作为调度CPU进行指令的调度,所述主动终端发送启动CPU拓展主动驱动组件指令到所述被动终端;当所述被动终端接收并执行所述启动CPU拓展主动驱动组件指令后,完成CPU扩展被动模式,所述主动终端接入所述被动终端扩展的若干个虚拟应用层CPU。本发明通过将闲置的第二移动终端的CPU虚拟若干个应用层接入到使用中的第一移动终端,扩展第一移动终端的CPU内核数,增加第一移动终端的运算能力和处理速度。

Figure 201710936477

The invention discloses a CPU expansion method, system and storage medium based on mobile terminal control. A first mobile terminal set as an active terminal and a second mobile terminal set as a passive terminal are communicated and connected in a wired or wireless manner; Any core CPU in the active terminal and the passive terminal is set as the scheduling CPU to perform instruction scheduling, and the active terminal sends an instruction to start the CPU to expand the active drive component to the passive terminal; when the passive terminal receives and executes the After starting the CPU expansion active drive component instruction, the CPU expansion passive mode is completed, and the active terminal is connected to several virtual application layer CPUs extended by the passive terminal. The invention expands the number of CPU cores of the first mobile terminal and increases the computing power and processing speed of the first mobile terminal by virtualizing several application layers of the CPU of the idle second mobile terminal to the first mobile terminal in use.

Figure 201710936477

Description

Method, system and storage medium for controlling CPU extension based on mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a method, a system and a storage medium for controlling CPU expansion based on a mobile terminal.
Background
The mobile terminal in the prior art only realizes a mode of computer clustering for centralizing multi-computer force to solve a task, and most importantly, the task is logically divided into a plurality of independent subtasks through manual coding and distributed to a cluster for operation.
Nowadays, mobile terminals are invented rapidly, almost many users have 2-3 mobile intelligent terminals, for example, one user may have two smart phones or one smart phone and one tablet computer at the same time, and in many cases, there are redundant idle terminals, for example, two smart phones, general users use one smart phone, and the other smart phone is left unused, so that waste and idle are unfortunately wasted.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The present invention aims to provide a method, a system and a storage medium for controlling CPU expansion based on a mobile terminal, aiming at expanding the number of CPU cores of a first mobile terminal and increasing the computing power and processing speed of the first mobile terminal by accessing a plurality of application layers to the first mobile terminal in use.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a method for controlling CPU extension based on a mobile terminal comprises the following steps:
the first mobile terminal set as an active terminal is in communication connection with the second mobile terminal set as a passive terminal in a wired or wireless mode;
setting any core CPU in the active terminal and the passive terminal as a scheduling CPU in advance to perform instruction scheduling, wherein the active terminal sends an instruction for starting the CPU to expand an active driving component to the passive terminal;
and after the passive terminal receives and executes the instruction for starting the CPU expansion active driving component, finishing the CPU expansion passive mode, and accessing the active terminal into a plurality of virtual application layer CPUs expanded by the passive terminal.
The method for controlling the CPU extension based on the mobile terminal is characterized in that the first mobile terminal and the second mobile terminal have the same CPU architecture and are both 4-core CPUs.
The CPU extension control method based on the mobile terminal is characterized in that the wired mode comprises USB connection, and the wireless mode comprises WLAN connection or Bluetooth connection.
The method for controlling the CPU expansion based on the mobile terminal, wherein the first mobile terminal set as the active terminal and the second mobile terminal set as the passive terminal are in communication connection in a wired or wireless mode, comprises the following steps:
setting a first mobile terminal and a second mobile terminal with the same CPU architecture as an active terminal and a passive terminal respectively in advance; the active terminal is used for expanding a CPU kernel, and the passive terminal is used for providing a virtual CPU kernel;
and the active terminal and the passive terminal are in communication connection in a wired or wireless mode.
The method for controlling the CPU extension based on the mobile terminal comprises the following steps that any core CPU in the active terminal and the passive terminal is set as a scheduling CPU in advance to perform instruction scheduling, and the active terminal sends a CPU extension active driving component starting instruction to the passive terminal:
setting any core CPU of 4-core CPUs in the active terminal as an active scheduling CPU in advance, and setting any core CPU of 4-core CPUs in the passive terminal as a passive scheduling CPU;
the active terminal sends a command for starting a CPU to expand an active driving component to the passive terminal through the active scheduling CPU;
and the passive terminal receives the instruction of starting the CPU to expand the active driving component through the passive scheduling CPU.
The method for controlling the CPU extension based on the mobile terminal is characterized in that after the passive terminal receives and executes the instruction for starting the CPU extension active driving component, the CPU extension passive mode is completed, and the active terminal is accessed into a plurality of virtual application layer CPUs extended by the passive terminal, and the method comprises the following steps:
after the passive terminal receives the instruction of starting the CPU expansion active driving component through the passive scheduling CPU, executing the instruction of starting the CPU expansion active driving component;
the passive terminal reserves a kernel driver-level Linux core component, closes an Android system, completes a CPU extension passive mode and virtualizes 3 application layer CPUs;
and when the passive terminal completes the CPU extension passive mode, the active terminal accesses 3 virtual application layer CPUs extended by the passive terminal to complete the CPU extension active mode and control the active terminal to be switched to 6-core CPUs.
The method for controlling the CPU extension based on the mobile terminal, wherein after the passive terminal receives and executes the instruction for starting the CPU extension active driving component, the CPU extension passive mode is completed, and after the active terminal accesses a plurality of virtual application layer CPUs extended by the passive terminal, the method further comprises the following steps:
when the active terminal needs to recover a normal operation mode, the active terminal sends a disengagement instruction to the passive scheduling CPU of the passive terminal through the active scheduling CPU;
and the passive terminal transfers the codes which are distributed to the virtual application layer CPU to work back to the CPU of the active terminal, so that the separation operation of the active terminal and the passive terminal is completed.
According to the method for controlling the CPU expansion based on the mobile terminal, after the active terminal and the passive terminal finish the separation operation, the active terminal clears the virtual application layer CPU, and in the existing process, the local CPU takes over the position of the virtual application layer CPU to continue to operate the system.
A mobile terminal-based CPU extension control system, wherein the system comprises:
the mobile terminal comprises a first mobile terminal and a second mobile terminal, wherein the first mobile terminal is set as an active terminal;
the second mobile terminal is set as a passive terminal;
the active terminal is used for being in communication connection with the passive terminal in a wired or wireless mode;
the active terminal sends a command for starting a CPU to expand an active driving component to the passive terminal;
the passive terminal receives and executes the instruction for starting the CPU expansion active driving component, and then completes the CPU expansion passive mode;
and the active terminal is accessed to a plurality of virtual application layer CPUs extended by the passive terminal.
A storage medium, wherein the storage medium stores a mobile terminal control based CPU extension program, which is executed by a processor to implement the mobile terminal control based CPU extension method.
The invention provides a method, a system and a storage medium for controlling CPU expansion based on a mobile terminal, wherein a first mobile terminal set as an active terminal is in communication connection with a second mobile terminal set as a passive terminal in a wired or wireless mode; setting any core CPU in the active terminal and the passive terminal as a scheduling CPU in advance to perform instruction scheduling, wherein the active terminal sends an instruction for starting the CPU to expand an active driving component to the passive terminal; and after the passive terminal receives and executes the instruction for starting the CPU expansion active driving component, finishing the CPU expansion passive mode, and accessing the active terminal into a plurality of virtual application layer CPUs expanded by the passive terminal. The CPU of the idle second mobile terminal is accessed to the first mobile terminal in use by virtualizing a plurality of application layers, so that the number of CPU kernels of the first mobile terminal is expanded, and the computing capacity and the processing speed of the first mobile terminal are increased.
Drawings
Fig. 1 is a flowchart of a method for controlling CPU expansion based on a mobile terminal according to a first preferred embodiment of the present invention.
FIG. 2 is a functional block diagram of a preferred embodiment of the CPU extension system based on mobile terminal control according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for controlling CPU expansion based on a mobile terminal according to a first preferred embodiment of the present invention. As shown in fig. 1, a method for controlling CPU expansion based on a mobile terminal includes the following steps:
step S100, a first mobile terminal set as an active terminal and a second mobile terminal set as a passive terminal are in communication connection in a wired or wireless mode.
In the embodiment of the present invention, the first mobile terminal and the second mobile terminal have the same CPU architecture, and the present invention is preferably a 4-core CPU (of course, the first mobile terminal and the second mobile terminal may also be 2, 6, or 8 cores); the wired mode comprises USB connection, the wireless mode comprises WLAN connection or Bluetooth connection, and the connection mode can be other effective connection modes.
Specifically, step S100 specifically includes the following steps:
s101, a first mobile terminal and a second mobile terminal with the same CPU architecture are set as an active terminal and a passive terminal respectively in advance; the active terminal is used for expanding a CPU kernel, and the passive terminal is used for providing a virtual CPU kernel;
and S102, the active terminal and the passive terminal are in communication connection in a wired or wireless mode.
Step S200, any core CPU in the active terminal and the passive terminal is set as a scheduling CPU in advance to perform instruction scheduling, and the active terminal sends an instruction for starting the CPU to expand the active driving component to the passive terminal.
In the embodiment of the invention, 1 CPU is stripped as a scheduling unit for an active terminal, and the active scheduling unit is specially responsible for monitoring communication information from a CPU extension drive passive mode in a connection mode opposite terminal and for assembling a cross-terminal instruction set and scheduling a virtual CPU. And (3) stripping 1 CPU as a scheduling unit for the passive terminal, wherein the passive scheduling unit is specially responsible for monitoring communication information from a CPU extension driving active mode in a connection mode opposite terminal and for scheduling the CPU from the active mode to be converted into local.
When the running and processing capacity of the CPU of the active terminal needs to be improved, the number of the CPU kernels of the active terminal needs to be increased, and then the active terminal can send a command for starting the CPU to expand the active driving component to the passive terminal to control the passive terminal to run the virtual CPU.
Specifically, step S200 specifically includes the following steps:
s201, setting any core CPU of 4-core CPUs in the active terminal as an active scheduling CPU in advance, and setting any core CPU of 4-core CPUs in the passive terminal as a passive scheduling CPU;
s202, the active terminal sends a command for starting a CPU to expand an active driving component to the passive terminal through the active scheduling CPU;
s203, the passive terminal receives the instruction of starting the CPU to expand the active driving component through the passive scheduling CPU.
Step S300, after the passive terminal receives and executes the instruction for starting the CPU to expand the active driving component, the CPU expansion passive mode is completed, and the active terminal is accessed to a plurality of virtual application layer CPUs expanded by the passive terminal.
In the embodiment of the invention, the passive terminal executes the instruction for starting the CPU expansion active drive component, reserves a kernel drive level Linux core component, closes an Android system, completes a CPU expansion passive mode, virtualizes 3 application layer CPUs, accesses the 3 virtual application layer CPUs expanded by the passive terminal, completes a CPU expansion active mode, and controls the active terminal to be switched to a 6-core CPU, so that processes running in an application layer of the active terminal can have an arithmetic capability equal to 6 cores, and can be expanded to 8 cores (without a scheduling unit) at most, but the performance may not be as high as that of 6 cores (virtual) in the last step.
That is, specifically, step S300 includes the steps of:
s301, after the passive terminal receives the CPU expansion active driving component starting instruction through the passive scheduling CPU, executing the CPU expansion active driving component starting instruction;
s302, the passive terminal reserves a kernel driver-level Linux core component, closes an Android system, completes a CPU extension passive mode and virtualizes 3 application layer CPUs;
and S303, after the passive terminal completes the CPU extension passive mode, the active terminal accesses 3 virtual application layer CPUs extended by the passive terminal to complete the CPU extension active mode, and controls the active terminal to be switched to a 6-core CPU.
Further, after the passive terminal receives and executes the instruction for starting the CPU to expand the active driving component, the method completes the CPU expansion passive mode, and after the active terminal accesses the plurality of virtual application layer CPUs expanded by the passive terminal, the method further includes: when the active terminal needs to recover a normal operation mode, the active terminal sends a disengagement instruction to the passive scheduling CPU of the passive terminal through the active scheduling CPU; and the passive terminal transfers the codes which are distributed to the virtual application layer CPU to work back to the CPU of the active terminal, so that the separation operation of the active terminal and the passive terminal is completed.
Because a part of tasks on the active terminal may be distributed to the virtual CPU to work, if the user needs to break away according to the actual situation, the user should inform the active terminal first, so that the active terminal initiates the process of breaking away, and the passive terminal transfers the codes distributed to the virtual CPU to the original CPU of the active terminal (i.e. ensuring that no code to be executed is hung on the virtual CPU), and then the codes can be broken away; rather than directly by disconnecting the active and passive terminals.
In addition, after the active terminal and the passive terminal finish the separation operation, the active terminal clears the virtual application layer CPU, and in the existing process, the local CPU takes over the position of the virtual application layer CPU to continue operating the system.
Example two
An embodiment of the present invention further provides a system for controlling CPU expansion based on a mobile terminal, as shown in fig. 2, the system includes:
a first mobile terminal 10, the first mobile terminal 10 being configured as an active terminal;
a second mobile terminal 20, the second mobile terminal 20 being configured as a passive terminal;
the active terminal is used for being in communication connection with the passive terminal in a wired or wireless mode; the active terminal sends a command for starting a CPU to expand an active driving component to the passive terminal; the passive terminal receives and executes the instruction for starting the CPU expansion active driving component, and then completes the CPU expansion passive mode; and the active terminal is accessed to a plurality of virtual application layer CPUs extended by the passive terminal.
EXAMPLE III
A storage medium, wherein the storage medium stores a mobile terminal control based CPU extension program, which is executed by a processor to implement the mobile terminal control based CPU extension method.
In summary, the present invention discloses a method, a system and a storage medium for controlling CPU expansion based on a mobile terminal, wherein a first mobile terminal configured as an active terminal and a second mobile terminal configured as a passive terminal are in communication connection in a wired or wireless manner; setting any core CPU in the active terminal and the passive terminal as a scheduling CPU in advance to perform instruction scheduling, wherein the active terminal sends an instruction for starting the CPU to expand an active driving component to the passive terminal; and after the passive terminal receives and executes the instruction for starting the CPU expansion active driving component, finishing the CPU expansion passive mode, and accessing the active terminal into a plurality of virtual application layer CPUs expanded by the passive terminal. The CPU of the idle second mobile terminal is accessed to the first mobile terminal in use by virtualizing a plurality of application layers, so that the number of CPU kernels of the first mobile terminal is expanded, and the computing capacity and the processing speed of the first mobile terminal are increased.
Of course, it can be understood by those skilled in the art that all or part of the processes in the method of the above embodiments can be implemented by instructing relevant hardware (such as a processor, a controller, etc.) based on the mobile terminal control CPU extension program, where the program can be stored in a computer readable storage medium, and the program can include the processes of the above method embodiments when executed. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (4)

1.一种基于移动终端控制CPU扩展方法,其特征在于,所述基于移动终端控制CPU扩展方法包括:1. a CPU expansion method based on mobile terminal control, is characterized in that, described based on mobile terminal control CPU expansion method comprises: 设置为主动终端的第一移动终端与设置为被动终端第二移动终端通过有线方式或者无线方式进行通信连接;所述主动终端用于扩展CPU内核,所述被动终端用于提供虚拟CPU内核;The first mobile terminal set as the active terminal and the second mobile terminal set as the passive terminal are connected by wired or wireless communication; the active terminal is used to expand the CPU core, and the passive terminal is used to provide a virtual CPU core; 预先将所述主动终端和所述被动终端中的任一核CPU设置作为调度CPU进行指令的调度,所述主动终端发送启动CPU拓展主动驱动组件指令到所述被动终端;Any core CPU in the active terminal and the passive terminal is set as a scheduling CPU to perform instruction scheduling in advance, and the active terminal sends an instruction to start the CPU to expand the active drive assembly to the passive terminal; 当所述被动终端接收并执行所述启动CPU拓展主动驱动组件指令后,完成CPU扩展被动模式,所述主动终端接入所述被动终端扩展的若干个虚拟应用层CPU;After the passive terminal receives and executes the instruction for starting the CPU expansion active drive component, the passive mode of CPU expansion is completed, and the active terminal accesses several virtual application layer CPUs extended by the passive terminal; 所述第一移动终端与所述第二移动终端具有相同的CPU架构,均为4核CPU;The first mobile terminal and the second mobile terminal have the same CPU architecture, and both are 4-core CPUs; 所述预先将所述主动终端和所述被动终端中的任一核CPU设置作为调度CPU进行指令的调度,所述主动终端发送启动CPU拓展主动驱动组件指令到所述被动终端包括以下步骤:The pre-setting of any core CPU in the active terminal and the passive terminal as the scheduling CPU to perform instruction scheduling, and the active terminal sending an instruction to start the CPU to expand the active drive component to the passive terminal includes the following steps: 预先将所述主动终端中的4核CPU的任一核CPU设置主动调度CPU,将所述被动终端中的4核CPU的任一核CPU设置被动调度CPU;Setting any core CPU of the 4-core CPU in the active terminal to the active scheduling CPU in advance, and setting any core CPU of the 4-core CPU in the passive terminal to the passive scheduling CPU; 所述主动终端通过所述主动调度CPU发送启动CPU拓展主动驱动组件指令到所述被动终端;The active terminal sends an instruction to start the CPU to expand the active drive assembly to the passive terminal through the active scheduling CPU; 所述被动终端通过所述被动调度CPU接收所述启动CPU拓展主动驱动组件指令;The passive terminal receives, through the passive scheduling CPU, the starting CPU to expand the active drive component instruction; 所述当所述被动终端接收并执行所述启动CPU拓展主动驱动组件指令后,完成CPU扩展被动模式,所述主动终端接入所述被动终端扩展的若干个虚拟应用层CPU包括以下步骤:After the passive terminal receives and executes the instruction of starting the CPU to expand the active drive component, the CPU expansion passive mode is completed, and the active terminal accesses several virtual application layer CPUs extended by the passive terminal, including the following steps: 当所述被动终端通过所述被动调度CPU接收所述启动CPU拓展主动驱动组件指令后,执行所述启动CPU拓展主动驱动组件指令;After the passive terminal receives the instruction of starting the CPU to expand the active drive assembly through the passive scheduling CPU, executes the instruction of starting the CPU to expand the active drive assembly; 所述被动终端保留内核驱动级Linux核心组件,并关闭Android系统,完成CPU扩展被动模式,虚拟3个虚拟应用层CPU;The passive terminal retains the kernel driver-level Linux core components, and closes the Android system, completes the passive mode of CPU expansion, and virtualizes 3 virtual application layer CPUs; 当所述被动终端完成CPU扩展被动模式后,所述主动终端接入所述被动终端扩展的3个虚拟应用层CPU,完成CPU扩展主动模式,控制所述主动终端切换为6核CPU;After the passive terminal completes the CPU expansion passive mode, the active terminal accesses the three virtual application layer CPUs extended by the passive terminal, completes the CPU expansion active mode, and controls the active terminal to switch to a 6-core CPU; 所述当所述被动终端接收并执行所述启动CPU拓展主动驱动组件指令后,完成CPU扩展被动模式,所述主动终端接入所述被动终端扩展的若干个虚拟应用层CPU之后还包括:After the passive terminal receives and executes the instruction for starting the CPU to expand the active drive component, the passive mode for CPU expansion is completed, and the active terminal further includes after accessing several virtual application layer CPUs extended by the passive terminal: 当所述主动终端需要恢复正常运行模式时,所述主动终端通过所述主动调度CPU发送脱离指令到所述被动终端的所述被动调度CPU;When the active terminal needs to restore the normal operation mode, the active terminal sends an escape instruction to the passive scheduling CPU of the passive terminal through the active scheduling CPU; 所述被动终端将已经分配到虚拟应用层CPU工作的代码转移回所述主动终端的CPU,完成主动终端和被动终端的脱离操作;The passive terminal transfers the code that has been assigned to the virtual application layer CPU work back to the CPU of the active terminal, and completes the separation operation of the active terminal and the passive terminal; 当主动终端和被动终端完成脱离操作后,所述主动终端清除虚拟应用层CPU,已经存在的进程中,本地CPU接管虚拟应用层CPU的位置,继续运行系统。After the active terminal and the passive terminal complete the separation operation, the active terminal clears the virtual application layer CPU, and in the existing process, the local CPU takes over the position of the virtual application layer CPU and continues to run the system. 2.根据权利要求1所述的基于移动终端控制CPU扩展方法,其特征在于,所述有线方式包括USB连接,所述无线方式包括WLAN连接或者蓝牙连接。2 . The method for controlling CPU expansion based on a mobile terminal according to claim 1 , wherein the wired method includes a USB connection, and the wireless method includes a WLAN connection or a Bluetooth connection. 3 . 3.一种基于移动终端控制CPU扩展系统,其特征在于,所述系统包括:3. a CPU expansion system based on mobile terminal control, is characterized in that, described system comprises: 第一移动终端,所述第一移动终端设置为主动终端;a first mobile terminal, the first mobile terminal is set as an active terminal; 第二移动终端,所述第二移动终端设置为被动终端;a second mobile terminal, the second mobile terminal is set as a passive terminal; 所述主动终端用于扩展CPU内核,所述被动终端用于提供虚拟CPU内核;The active terminal is used to expand the CPU core, and the passive terminal is used to provide a virtual CPU core; 所述主动终端用于与所述被动终端通过有线方式或者无线方式进行通信连接;The active terminal is used to communicate with the passive terminal in a wired or wireless manner; 所述主动终端发送启动CPU拓展主动驱动组件指令到所述被动终端;The active terminal sends an instruction to start the CPU to expand the active drive assembly to the passive terminal; 所述被动终端接收并执行所述启动CPU拓展主动驱动组件指令后,完成CPU扩展被动模式;After the passive terminal receives and executes the instruction of starting the CPU to expand the active drive assembly, completes the passive mode of CPU expansion; 所述主动终端接入所述被动终端扩展的若干个虚拟应用层CPU;The active terminal accesses several virtual application layer CPUs extended by the passive terminal; 所述第一移动终端与所述第二移动终端具有相同的CPU架构,均为4核CPU;The first mobile terminal and the second mobile terminal have the same CPU architecture, and both are 4-core CPUs; 所述主动终端发送启动CPU拓展主动驱动组件指令到所述被动终端包括:The active terminal sending the instruction to start the CPU to expand the active drive assembly to the passive terminal includes: 预先将所述主动终端中的4核CPU的任一核CPU设置主动调度CPU,将所述被动终端中的4核CPU的任一核CPU设置被动调度CPU;Setting any core CPU of the 4-core CPU in the active terminal to the active scheduling CPU in advance, and setting any core CPU of the 4-core CPU in the passive terminal to the passive scheduling CPU; 所述主动终端通过所述主动调度CPU发送启动CPU拓展主动驱动组件指令到所述被动终端;The active terminal sends an instruction to start the CPU to expand the active drive assembly to the passive terminal through the active scheduling CPU; 所述被动终端通过所述被动调度CPU接收所述启动CPU拓展主动驱动组件指令;The passive terminal receives, through the passive scheduling CPU, the starting CPU to expand the active drive component instruction; 所述被动终端接收并执行所述启动CPU拓展主动驱动组件指令后,完成CPU扩展被动模式,所述主动终端接入所述被动终端扩展的若干个虚拟应用层CPU包括:After the passive terminal receives and executes the instruction of starting the CPU expansion active drive component, the passive mode of CPU expansion is completed, and the active terminal accesses several virtual application layer CPUs extended by the passive terminal, including: 当所述被动终端通过所述被动调度CPU接收所述启动CPU拓展主动驱动组件指令后,执行所述启动CPU拓展主动驱动组件指令;After the passive terminal receives the instruction of starting the CPU to expand the active drive assembly through the passive scheduling CPU, executes the instruction of starting the CPU to expand the active drive assembly; 所述被动终端保留内核驱动级Linux核心组件,并关闭Android系统,完成CPU扩展被动模式,虚拟3个虚拟应用层CPU;The passive terminal retains the kernel driver-level Linux core components, and closes the Android system, completes the passive mode of CPU expansion, and virtualizes 3 virtual application layer CPUs; 当所述被动终端完成CPU扩展被动模式后,所述主动终端接入所述被动终端扩展的3个虚拟应用层CPU,完成CPU扩展主动模式,控制所述主动终端切换为6核CPU;After the passive terminal completes the CPU expansion passive mode, the active terminal accesses the three virtual application layer CPUs extended by the passive terminal, completes the CPU expansion active mode, and controls the active terminal to switch to a 6-core CPU; 所述主动终端接入所述被动终端扩展的若干个虚拟应用层CPU之后还包括:After the active terminal accesses several virtual application layer CPUs extended by the passive terminal, the method further includes: 当所述主动终端需要恢复正常运行模式时,所述主动终端通过所述主动调度CPU发送脱离指令到所述被动终端的所述被动调度CPU;When the active terminal needs to restore the normal operation mode, the active terminal sends an escape instruction to the passive scheduling CPU of the passive terminal through the active scheduling CPU; 所述被动终端将已经分配到虚拟应用层CPU工作的代码转移回所述主动终端的CPU,完成主动终端和被动终端的脱离操作;The passive terminal transfers the code that has been assigned to the virtual application layer CPU work back to the CPU of the active terminal, and completes the separation operation of the active terminal and the passive terminal; 当主动终端和被动终端完成脱离操作后,所述主动终端清除虚拟应用层CPU,已经存在的进程中,本地CPU接管虚拟应用层CPU的位置,继续运行系统。After the active terminal and the passive terminal complete the separation operation, the active terminal clears the virtual application layer CPU, and in the existing process, the local CPU takes over the position of the virtual application layer CPU and continues to run the system. 4.一种存储介质,其特征在于,所述存储介质存储有基于移动终端控制CPU扩展程序,所述基于移动终端控制CPU扩展程序被处理器执行时用于实现权利要求1-2任一项所述基于移动终端控制CPU扩展方法。4. A storage medium, wherein the storage medium is stored with a mobile terminal-based control CPU extension program, which is used to implement any one of claims 1-2 when the mobile terminal-based control CPU extension program is executed by a processor The CPU expansion method based on mobile terminal control is described.
CN201710936477.4A 2017-10-10 2017-10-10 A method, system and storage medium for controlling CPU expansion based on mobile terminal Active CN107729283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710936477.4A CN107729283B (en) 2017-10-10 2017-10-10 A method, system and storage medium for controlling CPU expansion based on mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710936477.4A CN107729283B (en) 2017-10-10 2017-10-10 A method, system and storage medium for controlling CPU expansion based on mobile terminal

Publications (2)

Publication Number Publication Date
CN107729283A CN107729283A (en) 2018-02-23
CN107729283B true CN107729283B (en) 2021-07-13

Family

ID=61208750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710936477.4A Active CN107729283B (en) 2017-10-10 2017-10-10 A method, system and storage medium for controlling CPU expansion based on mobile terminal

Country Status (1)

Country Link
CN (1) CN107729283B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809026A (en) * 2015-05-14 2015-07-29 苏州中晟宏芯信息科技有限公司 Method for borrowing CPU computing resources by using remote node
CN106326074A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Processor operation parameter adjusting method and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8648867B2 (en) * 2006-09-25 2014-02-11 Neurala Llc Graphic processor based accelerator system and method
US8775485B1 (en) * 2013-03-15 2014-07-08 Joyent, Inc. Object store management operations within compute-centric object stores

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809026A (en) * 2015-05-14 2015-07-29 苏州中晟宏芯信息科技有限公司 Method for borrowing CPU computing resources by using remote node
CN106326074A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Processor operation parameter adjusting method and mobile terminal

Also Published As

Publication number Publication date
CN107729283A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN109522099B (en) Method and system for improving instantaneity of non-instantaneity operating system
TWI467488B (en) Apparatus, method and program for processing information
US8910169B2 (en) Methods and systems to perform a computer task in a reduced power consumption state
US9052920B2 (en) Electronic devices and methods for switching between dual operating systems
EP2905700B1 (en) Operating system recovery method, apparatus and terminal device
JP2011100431A (en) Device and method for controlling virtual machine
JP2008186175A (en) Operating system activation control method and information processing apparatus
WO2015100878A1 (en) Chip starting method, multi-core processor chip and storage medium
KR20210060213A (en) Method for preloading application and electronic device supporting the same
CN105940375B (en) Dynamic reassignment for multi-OS devices
US10055233B2 (en) Multimedia terminal for vehicle and data processing method thereof
CN107810488A (en) A kind of method of state management of virtual machine, device and intelligent terminal
US8589954B2 (en) Method and program for selective suspension of USB network device
CN103699444B (en) The implementation method of central processing unit hot plug and device
CN110401939B (en) Low-power consumption bluetooth controller link layer device
JP5102528B2 (en) Information processing apparatus and control method
CN107729283B (en) A method, system and storage medium for controlling CPU expansion based on mobile terminal
WO2015090195A1 (en) Method and device for creating example of operating system
US20140245291A1 (en) Sharing devices assigned to virtual machines using runtime exclusion
CN118760482A (en) A multi-core heterogeneous system fast startup method and system
CN114064128A (en) Kernel restarting method
EP3276489B1 (en) Parallel processing system
JPWO2004068356A1 (en) Data communication system, data communication method, and data communication program
JP6870390B2 (en) Resource allocation method, connection management server and connection management program in a system based on a virtual infrastructure
CN118656132B (en) Function driving control method for universal serial bus equipment and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230628

Address after: Room 2103, Room 2103, One Office Building, No. 213, Funing Road, Zumiao Street, Chancheng District, Foshan City, Guangdong Province, 528000

Patentee after: Foshan Runqianyu Intellectual Property Service Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250528

Address after: Room 313, 3rd Floor, Building 31, Ruiqi Jiayuan, Changping District, Beijing 100000

Patentee after: Beijing Jiazhilian Technology Co.,Ltd.

Country or region after: China

Address before: Room 2103, Room 2103, One Office Building, No. 213, Funing Road, Zumiao Street, Chancheng District, Foshan City, Guangdong Province, 528000

Patentee before: Foshan Runqianyu Intellectual Property Service Co.,Ltd.

Country or region before: China