CN115269048A - Concurrency control method of application program, electronic device and readable storage medium - Google Patents

Concurrency control method of application program, electronic device and readable storage medium Download PDF

Info

Publication number
CN115269048A
CN115269048A CN202210914945.9A CN202210914945A CN115269048A CN 115269048 A CN115269048 A CN 115269048A CN 202210914945 A CN202210914945 A CN 202210914945A CN 115269048 A CN115269048 A CN 115269048A
Authority
CN
China
Prior art keywords
application program
operating system
running
application
target
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.)
Pending
Application number
CN202210914945.9A
Other languages
Chinese (zh)
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202210914945.9A priority Critical patent/CN115269048A/en
Publication of CN115269048A publication Critical patent/CN115269048A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a concurrency control method of an application program, an electronic device and a readable storage medium, wherein the concurrency control method of the application program comprises the following steps: acquiring a target application program to be started and operated through a coprocessor, and determining an operating system supporting the operation of the target application program; when the operating system supporting the running of the target application program is a first operating system, detecting whether the currently running application program of the first operating system can run simultaneously with the target application program; if the running can be carried out simultaneously, controlling the main processor to start and run the target application program; and if the first operating system and the second operating system cannot run simultaneously, controlling the main processor to start running the target application program after stopping the application program currently run by the first operating system. The application can flexibly and accurately coordinate and process concurrent application programs, and greatly improves the running performance of intelligent wearable equipment.

Description

Concurrency control method of application program, electronic device and readable storage medium
Technical Field
The application relates to the technical field of intelligent wearable devices, in particular to a concurrency control method of an application program, an electronic device and a readable storage medium.
Background
VR (Virtual Reality) devices or AR (Augmented Reality) devices are Virtual Reality and Augmented Reality products that are currently rapidly developing and widespread. In the market, a lot of intelligent wearable devices such as AR/VR glasses or AR/VR helmets often have higher and higher requirements on aspects such as system computing power, power consumption and performance, the architecture design of the intelligent wearable devices is more and more refined and complex, and in order to give consideration to support and expansion of AR/VR product functions and good endurance performance, a dual-operation system (for short, dual-system) based on Android and RTOS (Real-time operating system) is also more and more applied.
However, due to the functional characteristics of the AR/VR system, different application programs are often correspondingly triggered by the intelligent wearable device in different functional application scenarios, and the functional requirements of the current application scenario are met according to the application programs correspondingly triggered, but when the concurrent application programs are dispatched and distributed by the dual systems of the intelligent wearable device, functions and performances of the software system cannot be considered, so that conflicts exist between the application programs of different categories when the application programs run simultaneously, thereby affecting the implementation of the functional application scenarios in the AR/VR system, and reducing the endurance performance of the intelligent wearable device, that is, the intelligent wearable device cannot flexibly coordinate the concurrent application programs, and the operating performance of the intelligent wearable device is seriously reduced.
Disclosure of Invention
The application mainly aims to provide an application concurrency control method, an electronic device and a readable storage medium, and aims to solve the technical problem of how to better coordinate concurrent applications by an intelligent wearable device.
In order to achieve the above object, the present application provides a concurrency control method for an application program, where the concurrency control method for the application program is applied to an intelligent wearable device, where the intelligent wearable device includes a main processor running a first operating system and a coprocessor running a second operating system, and the concurrency control method for the application program includes:
acquiring a target application program to be started and operated by the coprocessor, and determining an operating system supporting the operation of the target application program;
when an operating system supporting the running of the target application program is the first operating system, detecting whether the currently running application program of the first operating system can run simultaneously with the target application program;
if the target application program can be operated simultaneously, controlling the main processor to start operating the target application program;
and if the first operating system and the second operating system cannot run simultaneously, controlling the main processor to start running the target application program after stopping the application program currently running by the first operating system.
Optionally, the step of obtaining, by the coprocessor, a target application to be started and run includes:
receiving an application triggering instruction through the coprocessor, and determining an application program triggered correspondingly by the application triggering instruction;
and taking the correspondingly triggered application program as a target application program to be started and operated.
Optionally, the step of receiving, by the coprocessor, an application trigger instruction includes:
monitoring voice information of a user through the coprocessor, and identifying whether key voice words exist in the voice information;
and if the key voice words exist, inquiring an application program mapped by the key voice words from a preset mapping table, and generating an application triggering instruction for triggering the mapped application program.
Optionally, if the first operating system and the second operating system cannot be run simultaneously, after stopping the currently running application program of the first operating system, the step of controlling the main processor to start running the target application program includes:
if the first operating system and the second operating system cannot run simultaneously, determining a current task priority corresponding to an application program currently running by the first operating system and a target task priority corresponding to a target application program from a preset application program priority mapping table;
and if the current task priority is less than the target task priority, controlling the main processor to start running the target application program after stopping the application program currently running by the first operating system.
Optionally, after the step of determining, from a preset application priority mapping table, a current task priority corresponding to an application currently running by the first operating system and a target task priority corresponding to the target application, the method further includes:
and if the current task priority is greater than or equal to the target task priority, outputting prompt information that the application program currently running by the first operating system cannot run simultaneously with the target application program.
Optionally, the step of determining an operating system supporting the running of the target application includes:
polling and detecting application programs stored in a local application layer corresponding to the main processor and application programs stored in a local application layer corresponding to the coprocessor respectively;
determining the application layer position stored corresponding to the target application program according to each polled application program;
if the application layer is a local application layer corresponding to the main processor, determining that an operating system supporting the running of the target application program is the first operating system;
and if the application layer is a local application layer corresponding to the coprocessor, determining that the operating system supporting the running of the target application program is the second operating system.
Optionally, after the step of determining that the operating system supporting the running of the target application program is executed, the method further includes:
when the operating system supporting the running of the target application program is the second operating system, detecting whether the currently running application program of the second operating system can run simultaneously with the target application program;
if the target application program can be operated simultaneously, controlling the coprocessor to start operating the target application program;
and if the target application program cannot be simultaneously operated, controlling the coprocessor to start operating the target application program after stopping the currently operated application program of the second operating system.
Optionally, the step of detecting whether the application currently running by the first operating system can run simultaneously with the target application includes:
detecting, by the coprocessor, an operating state of the main processor;
if the running state of the main processor is in a dormant state, awakening the main processor through the coprocessor to switch the running state of the main processor to an awakening state, and controlling the main processor in the awakening state to start running the target application program;
if the running state of the main processor is in the awakening state, acquiring application running information of the main processor through the coprocessor, determining an application program currently running by the first operating system according to the application running information, and executing: and detecting whether the application program currently operated by the first operating system can be operated simultaneously with the target application program.
The present application further provides an electronic device, which is an entity device, the electronic device including: the application program concurrency control method comprises a memory, a processor and a program of the application program concurrency control method stored on the memory and capable of running on the processor, wherein the program of the application program concurrency control method can realize the steps of the application program concurrency control method when being executed by the processor.
The present application also provides a readable storage medium, which is a computer readable storage medium, having a program for implementing a concurrency control method for an application program stored thereon, where the program for implementing the concurrency control method for an application program is executed by a processor to implement the steps of the concurrency control method for an application program as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method for concurrent control of application programs as described above.
According to the method, the intelligent wearable device is set to be a dual processor, the dual processor comprises a main processor for running a first operating system and a coprocessor for running a second operating system, the target application program to be started and run is obtained through the coprocessor, the operating system for supporting the running of the target application program is determined, the target application program can be conveniently run on the correct operating system subsequently, and the flexibility and the accuracy of the coordination processing of the dual system of the intelligent wearable device on the concurrent application program are improved. For example, when two types of application programs run simultaneously, sometimes there are situations of excessively high running load or running power consumption, which results in excessively low running response speed of the processor, and even a problem of halt/downtime occurs, so that the current functional application scene in the AR/VR system cannot be realized, or even if the processor can support two types of application programs to run simultaneously, the running load or running power consumption of the two types of application programs is excessively high, so that the cruising performance of the intelligent wearable device is seriously reduced. For example, when two types of application programs run simultaneously, there may be a case where conflicting use exists for at least one component or hardware module (such as a speaker, a camera, a graphics card, a microphone, and the like) in the smart wearable device (in an example, two types of application programs, namely, AR navigation and AR shopping, may need to use a camera and/or a graphics card in the smart wearable device at the same time, that is, there is a case where components are used in a conflicting manner, which results in that two functional application scenarios, namely, AR navigation and AR shopping, cannot be realized at the same time). The application can flexibly control (switch or directly start) the application program to be started and run on an operating system according to the attributes of the running load or the running power consumption of different application programs under the application scenes with different functions of AR/VR, so that the expansion of the function ecology aspect of the software system and the optimization of the endurance aspect are realized, the technical effect that the concurrent application programs can be well coordinated is achieved, the intelligent wearable device finds a balance point between the application ecology, the function expansion and the power consumption endurance, the running power consumption of the intelligent wearable device can be reduced as much as possible, the endurance performance is improved, the good running of the different application programs under the application scenes with different AR/VR can be supported, the support and expansion of the functions of the AR/VR product and the good endurance performance are realized, and the technical problem that how the intelligent wearable device can better coordinate the concurrent application programs is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
Fig. 1 is a schematic flowchart of a first embodiment of a concurrency control method for an application program according to the present application;
FIG. 2 is a flowchart illustrating a second embodiment of a concurrency control method for application programs according to the present application;
fig. 3 is a flowchart illustrating a third embodiment of a concurrency control method for application programs according to the present application;
fig. 4 is a schematic structural diagram of a frame of an intelligent wearable device in an embodiment of the present application;
fig. 5 is a schematic device structure diagram of a hardware operating environment related to a concurrency control apparatus for an application program in an embodiment of the present application.
The implementation of the objectives, functional features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It should be apparent that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
In this embodiment, the smart wearable device of the present application may be, for example, a Mixed Reality (Mixed Reality) -MR device, an Augmented Reality (Augmented Reality) -AR device, a Virtual Reality- (Virtual Reality) -VR device, an Extended Reality (Extended Reality) -XR device, or some combination thereof.
With the development of computers, electronic information technologies and artificial intelligence technologies, intelligent wearable devices are getting more and more attention and application in different industries such as industry, security, education and the like. Meanwhile, the intelligent wearable device products often have higher and higher requirements on the aspects of system computing power, power consumption, performance and the like, and the architecture design of the software system is also more and more precise and complex, so that the support and the expansion of VR/AR/MR/XR product functions, especially the improvement of endurance performance are considered, and more applications are obtained on the basis of a double-operation system (called a double system for short) of Android (Android) + RTOS (Real-time operating system).
However, when the dual systems of the intelligent wearable device schedule and distribute the concurrent applications, functions and performance of the software system cannot be considered, so that conflicts exist between different types of applications when the applications run simultaneously, implementation of a functional application scenario under the AR/VR system is affected, and power consumption endurance performance of the intelligent wearable device is reduced.
Example one
Based on this, referring to fig. 1, this embodiment provides a concurrency control method for an application program, where the concurrency control method for the application program is applied to an intelligent wearable device, where the intelligent wearable device includes a main processor running a first operating system and a coprocessor running a second operating system, and the concurrency control method for the application program includes:
step S10, a target application program to be started and operated is obtained through the coprocessor, and an operating system supporting the operation of the target application program is determined;
in this embodiment, the target application refers to an application to be started and run by the smart wearable device. The user can input an application triggering instruction corresponding to an application program triggered by the user requirement to the intelligent wearing equipment through a preset triggering input mode, the coprocessor of the intelligent wearing equipment can determine the application program correspondingly triggered by the application triggering instruction according to the application triggering instruction, and the correspondingly triggered application program is a target application program to be started and run. The triggering input mode includes, but is not limited to, a voice input, a physical key press input, or a touch screen touch input.
In this embodiment, the first operating system running on the main processor may be an android system, and the second operating system running on the coprocessor may be a real-time operating system. It will be readily appreciated that since the hardware configuration level of the main processor tends to be higher than that of the co-processor, the operating load or operating power consumption of the application programs run by the first operating system tends to be higher than that of the application programs run by the second operating system. That is, the first operating system can support running applications with higher running loads or running power consumption than the second operating system.
In this embodiment, the intelligent wearable device includes a main processor running a first operating system and a coprocessor running a second operating system, and because different application programs have different running load values or running power consumption values, or different application programs have different requirements for hardware configuration of the processor, the operating systems supporting running the application programs are often different for the different application programs. For example, the application programs include, but are not limited to, AR navigation, AR shopping, photographing, music playing, setting (setting function of parameters such as sound or image), information notification, weather status, voice call, and the like, wherein, considering that the operation load or operation power consumption of the application programs such as AR navigation and AR shopping is higher and the requirement on the hardware configuration of the processor is higher, an operating system supporting the AR navigation and AR shopping application programs may be set to the first operating system, and other application programs with relatively low operation load or operation power consumption (such as music playing, information notification, weather status, voice call, and the like) may be set to the second operating system.
As an example, the step of determining an operating system supporting the running of the target application comprises:
step A10, acquiring application running information of the target application program, and determining the running load and/or hardware configuration requirement of the target application program according to the application running information of the target application program;
step A20, according to the operation load and/or the hardware configuration requirement of the target application program, determining an operating system supporting the operation of the target application program by combining the hardware configuration information of the processor corresponding to each operating system.
In this embodiment, according to the operating load and/or the hardware configuration requirement of the target application program, the operating system supporting the operation of the target application program is determined by combining the hardware configuration information of the processor corresponding to each operating system, so that the application operation information of the target application program can be highly matched with the performance of the processor, and further a balance point can be found between the application ecology, the function expansion and the power endurance of the dual system of the intelligent wearable device.
As another example, the step of determining an operating system supporting the running of the target application includes:
and B10, inquiring and obtaining the operating system associated with the target application program from a prestored application program mapping library through the coprocessor, and taking the associated operating system as an operating system supporting the operation of the target application program.
The application mapping library stores a first operating system, an application program associated with the first operating system, a second operating system and an application program associated with the second operating system. It should be noted that the operation power consumption or the operation load of the application program associated with the first operating system in the application program mapping library is higher than the operation power consumption or the operation load of the application program associated with the second operating system. It will be appreciated by those skilled in the art that if the applications installed in the main processor are AR navigation and AR shopping, the first operating system on behalf of the main processor supports running AR navigation and AR shopping. And if the application programs installed in the coprocessor are information notification, weather state and voice call, the second operating system representing the coprocessor supports running the information notification, the weather state and the voice call. That is, the target application should be installed in the processor corresponding to a certain operating system, and the operating system can support running the target application. When the application program installed in the main processor or the coprocessor is changed, for example, a new application program is installed in the main processor or the coprocessor, or an installed application program is uninstalled, the application program mapping library should be updated to match the application program actually installed in the main processor or the coprocessor, so as to ensure the correctness of the association relationship between each operating system and the application program.
If the local application layer corresponding to the main processor stores the application program: and AR navigation and AR shopping are carried out, and the first operating system of the main processor supports the running of the AR navigation and the AR shopping. If the application program is stored in the local application layer corresponding to the coprocessor: and information notification, weather state and voice call are carried out, and the second operating system of the coprocessor supports the operation of the information notification, the weather state and the voice call. Therefore, the application program that the operating system supports to run may be determined based on the application program actually installed in the local application layer of the processor corresponding to the operating system, and based on this, an example is also provided below in this embodiment.
As yet another example, the step of determining an operating system supporting the running of the target application includes:
step C10, polling and detecting the application program stored in the local application layer corresponding to the main processor and the application program stored in the local application layer corresponding to the coprocessor respectively;
step C20, determining the application layer position stored corresponding to the target application program according to the polled application programs;
step C30, if the application layer is the local application layer corresponding to the main processor, determining that the operating system supporting the running of the target application program is the first operating system;
and step C40, if the application layer is the local application layer corresponding to the coprocessor, determining that the operating system supporting the running of the target application program is the second operating system.
In this embodiment, it is easily understood that the operation load of the application program stored in the local application layer corresponding to the main processor is often greater than the operation load of the application program stored in the local application layer corresponding to the coprocessor. The application programs stored in the local application layer corresponding to the main processor may include VR shopping, VR navigation, VR house-watching, VR exhibition, and the like. The application programs stored in the local application layer corresponding to the coprocessor can comprise cameras, galleries, calendars, WLANs, conferences, music, settings, information notification, weather states, voice calls and the like. It should be noted that the types of the application programs stored in the local application layer corresponding to the main processor or the coprocessor are only exemplary, and the application is not limited thereto.
Due to the application program actually installed in the local application layer corresponding to the processor or the coprocessor, the application program is matched with the application program which is supported and operated by the operating system of the processor or the coprocessor. Therefore, in this embodiment, the application program stored in the local application layer corresponding to the main processor and the application program stored in the local application layer corresponding to the coprocessor are respectively detected by polling, and according to each polled application program, the position of the application layer stored corresponding to the target application program is determined, if the application layer is set as the local application layer corresponding to the main processor, the operating system supporting the operation of the target application program is determined to be the first operating system, and if the application layer is set as the local application layer corresponding to the coprocessor, the operating system supporting the operation of the target application program is determined to be the second operating system, so that the operating system supporting the operation of the target application program is accurately determined, the target application program is conveniently operated on the correct operating system in the following process, and the flexibility and accuracy of the dual systems of the intelligent wearable device in coordinating the concurrent application programs are improved.
After the step S10, executing a step S20, when the operating system supporting to run the target application is the first operating system, detecting whether the application currently run by the first operating system can run simultaneously with the target application;
step S30, if the target application program can be operated simultaneously, controlling the main processor to start operating the target application program;
and step S40, if the first operating system and the second operating system cannot be operated simultaneously, controlling the main processor to start operating the target application program after stopping the currently operated application program of the first operating system.
In this embodiment, the intelligent wearable device is configured as a dual processor, which includes a main processor for running a first operating system and a coprocessor for running a second operating system, wherein the target application program to be started and run is first obtained by the coprocessor, and the operating system for supporting the running of the target application program is determined, so that the target application program is subsequently run on a correct operating system, and the flexibility and accuracy of coordinating the concurrent application program by the dual system of the intelligent wearable device are improved. For example, when two kinds of application programs run simultaneously, sometimes there is a situation that the running load or running power consumption is too high, so that the running response speed of the processor is too slow, or even a crash/downtime problem occurs, and further the current functional application scene under the AR/VR system cannot be realized, or even if the processor can support two kinds of application programs to run simultaneously, the running load or running power consumption of the two kinds of application programs is too high, so that the cruising performance of the intelligent wearable device is seriously reduced. For example, when two types of application programs run simultaneously, there may be a case where conflicting use exists for at least one component or hardware module (such as a speaker, a camera, a video card, a microphone, and the like) in the smart wearable device (in an example, two types of application programs, namely, AR navigation and AR shopping, may need to use a camera and/or a video card in the smart wearable device at the same time, that is, there is a case where the components are used in a conflicting manner, which results in that it is impossible to implement two application scenarios, AR navigation and AR shopping at the same time). That is, the embodiment can match the processor running corresponding to the attribute according to the running load or running power consumption attributes of different application programs in different functional application scenarios of AR/VR, and flexibly control (switch or directly start) the application program to be started and run on the operating system by considering the functions and performance of the software system, thereby realizing the extension of the functional ecology aspect of the software system and the optimization of the endurance aspect, and achieving the technical effect of better coordinating the concurrent application programs, so that the intelligent wearable device finds a balance point between the application ecology, the functional extension and the power endurance, i.e., the running power consumption of the intelligent wearable device can be reduced as much as possible, the endurance performance can be improved, and simultaneously, the good running of different application programs corresponding to different application programs in different AR/VR application scenarios can be supported, the support and extension of the AR/VR product functions and the good endurance performance can be realized, and the technical problem of how to better coordinate the concurrent application programs by the intelligent wearable device can be overcome.
In one possible implementation, after the step of determining that the operating system supporting the running of the target application program is executed, the method further includes:
step D10, when the operating system supporting the running of the target application program is the second operating system, detecting whether the currently running application program of the second operating system can run simultaneously with the target application program;
step D20, if the target application program can be operated simultaneously, controlling the coprocessor to start operating the target application program;
and D30, if the two operation systems can not be operated simultaneously, controlling the coprocessor to start operating the target application program after stopping the application program currently operated by the second operating system.
In this embodiment, after the operating system supporting the running of the target application program is determined, when the operating system supporting the running of the target application program is determined to be the second operating system, whether the currently running application program of the second operating system can run simultaneously with the target application program is detected, if the currently running application program of the second operating system can run simultaneously, the coprocessor is controlled to start the running of the target application program, and if the currently running application program of the second operating system cannot run simultaneously, the main processor is controlled to start the running of the target application program, so that the situation that the application programs of different types run simultaneously in the second operating system, conflict exists, the implementation of a functional application scene under an AR/VR system is affected, the power consumption endurance performance of the intelligent wearable device is reduced, the intelligent wearable device of this embodiment can better coordinate concurrent application programs, and the running performance of the intelligent wearable device is improved. This embodiment can be as far as possible reduce intelligent wearing equipment's operation consumption promptly, when improving duration, can also support the good operation that different AR/VR application scenes correspond different application as far as possible, realizes giving consideration to support and the extension of AR/VR product function to and good duration, and then overcomes intelligent wearing equipment and how to carry out coordination's technical problem to concurrent application better.
In a possible implementation manner, referring to fig. 2, the step of obtaining, by the coprocessor, a target application to be started and run includes:
step S11, receiving an application triggering instruction through the coprocessor, and determining an application program triggered by the application triggering instruction;
and S12, taking the corresponding triggered application program as a target application program to be started and operated.
In this embodiment, a user may input an application trigger instruction corresponding to an application program that is triggered according to a user requirement to the intelligent wearable device through a preset trigger input mode, and a coprocessor of the intelligent wearable device may determine, according to the application trigger instruction, the application program that is triggered corresponding to the application trigger instruction, where the application program that is triggered corresponding to the application trigger instruction is a target application program to be started and run. The triggering input mode includes, but is not limited to, voice input, physical key pressing input, or touch screen touch input.
In the embodiment, the coprocessor receives the application trigger instruction, determines the application program correspondingly triggered by the application trigger instruction, and uses the application program correspondingly triggered as the target application program to be started and operated, so that the target application program to be started and operated at present can be accurately determined through the coprocessor, the detection and analysis of the application trigger instruction are not required to be performed through the main processor, the operation load of the main processor is reduced, and the stable and smooth operation of the application program which is operated on the main processor, has high load and is strongly related to an AR/VR function application scene is not influenced.
As an example, the step of receiving an application triggering instruction by the coprocessor comprises:
and receiving an application triggering instruction generated by the operation of a preset key through the coprocessor.
The preset key operation may be generated by pressing a physical key or by touching a virtual key on the touch screen, and may be a single-click operation, a double-click operation, or a long-press operation (for example, pressing for 3 seconds).
As another example, the step of receiving an application triggering instruction by the coprocessor previously comprises:
step E10, monitoring the voice information of the user through the coprocessor, and identifying whether key voice words exist in the voice information;
and E20, if the key voice word exists, inquiring an application program mapped by the key voice word from a preset mapping table, and generating an application triggering instruction for triggering the mapped application program.
In this embodiment, it is easily understood that each application program and the key speech words corresponding to each application program one to one are stored in the preset mapping table. For example, when an application is shopping for an AR, its mapped key phonetic word may be "shopping". When an application navigates to the AR, the key phonetic word it maps may be "navigate". When the application is a voice call, the key voice word it maps may be "call". When the application is in a weather state, the key phonetic word mapped by the application can be 'weather' or the like. It should be noted that, the mapping example of the application and the key speech word shown above is used to help understanding of the present embodiment, and does not limit the "application" and the "key speech word" in the present embodiment, and simple transformations in more forms based on the technical idea of the present embodiment should be within the scope of the present application.
In the embodiment, the voice information of a user is monitored through the coprocessor, whether key voice words exist in the voice information is identified, if the key voice words exist, the application program mapped by the key voice words is inquired from the preset mapping table, and the application trigger instruction for triggering the mapped application program is generated, so that the voice awakening and application management functions of the AR dual system can be better exerted, the AR functional characteristics and the use scene can be combined, the application programs on different systems can be better operated, common concurrent scenes can be considered, the functions and the performance of a software system can be considered, the user experience is improved, and the competitiveness of the intelligent wearable device is improved. The embodiment gives consideration to the expansion of the function/ecology aspect of the AR software system and the optimization of the power consumption duration aspect, improves the convenience of the intelligent wearable device in the aspects of the human-computer interaction mode and the concurrency control of the application programs, optimizes the mutual cooperation among different functional scenes, and further improves the flexibility of the coordination processing of the dual systems of the intelligent wearable device on the concurrent application programs.
In a possible implementation manner, the step of detecting whether the application currently running by the first operating system can run simultaneously with the target application includes:
step F10, detecting the running state of the main processor through the coprocessor;
in this embodiment, the operation states include a sleep state and an awake state, wherein the sleep state refers to a power saving mode state entered by the processor due to no application running in an idle state. The wake state refers to an operating mode state in which the processor currently has applications running, as opposed to a sleep state.
Step F20, if the running state of the main processor is in a dormant state, awakening the main processor through the coprocessor to switch the running state of the main processor to an awakening state, and controlling the main processor in the awakening state to start running the target application program;
step F30, if the running state of the main processor is in the wake-up state, obtaining the application running information of the main processor through the coprocessor, determining the currently running application program of the first operating system according to the application running information, and executing: and detecting whether the application program currently operated by the first operating system can be operated simultaneously with the target application program.
In this embodiment, the application running information includes information of an application program currently running by the first operating system, and specifically, the coprocessor may communicate with the main processor in an inter-core communication manner, the coprocessor sends application running request information of the first operating system to the main processor, and the main processor returns the application running information to the coprocessor in response to the application running request information, so that the coprocessor determines the application program currently running by the first operating system according to the received application running information.
In this embodiment, the running state of the main processor is detected by the coprocessor, if the running state of the main processor is in a dormant state, it is described that no application program of the main processor runs in an idle state currently, at this time, the main processor is awakened by the coprocessor to switch the running state of the main processor to an awakening state, and the main processor in the awakening state is controlled to directly start and run a target application program, if the running state of the main processor is in the awakening state, application running information of the main processor is acquired by the coprocessor, the application program currently running in the first operating system is determined according to the application running information, and the following steps are performed: the method comprises the steps of detecting whether an application program currently running by a first operating system can run simultaneously with a target application program or not, so that monitoring and dormancy awakening management of the application running state of a main processor can be achieved through a coprocessor, logical judgment and analysis whether the application program currently running by the first operating system and the target application program can run simultaneously or not are conducted through the main processor, monitoring and dormancy awakening management does not need to be conducted through the main processor, logical judgment and analysis are conducted, running load of the main processor is reduced, and stable and smooth running of high-load application programs which run on the main processor and are strongly related to AR/VR function application scenes is not influenced.
To help understand the technical idea or working principle of the present application, a specific embodiment is listed:
in this embodiment, please refer to fig. 4, where fig. 4 is a schematic diagram of a frame structure of an intelligent wearable device in an embodiment of the present application, where the intelligent wearable device includes an AP side and a CP side, the AP side is a main processor in this embodiment, and the CP side is a co-processor in this embodiment.
For the AP side, the application programs stored by the local application layer of the AP side may include AR applications (applications developed based on AR engine or strongly related to AR/VR function application scenarios) and regular applications (common system applications not involving AR engine, such as setup, camera). The service module that the service layer of AP side includes has: application installation management, application state management, sleep wake-up management, and inter-core communication management. The application installation management of the AP side is mainly used for installing or uninstalling an application program to the local application layer of the AP side. The application state management of the AP side is mainly used to obtain application running information of the AP side, where the application running information includes information of an application program currently running on the AP side. The sleep awakening management of the AP side is mainly used for directly controlling the running state of the AP side to enter a sleep state or an awakening state, wherein the CP side can communicate with the inter-core communication management module of the AP side through the inter-core communication management module of the CP side, and sends sleep control signals or awakening control signals to the sleep awakening module through the inter-core communication management module of the AP side, so that the CP side indirectly controls the running state of the AP side to enter the sleep state or the awakening state. It is easy to understand that the inter-core communication management module on the CP side and the inter-core communication management module on the AP side are used to implement communication on the AP side and the CP side.
For the CP side, the local application layer of the CP side is not particularly distinguished, and corresponding to the local application in fig. 4, the service module of the service layer includes: application state management, AR scene and concurrency management, voice wakeup management, dormancy wakeup management and inter-core communication management. The application state management of the CP side is mainly used to obtain application carrying information of the CP side, where the application carrying information includes information of an application program currently running on the CP side. The voice awakening management is mainly used for recognizing the voice information of the user and triggering the target application program corresponding to the voice information according to the recognized voice information. The dormancy wakeup management of the CP side is mainly used to directly control the running state of the CP side to enter the dormant state or the wakeup state. The AR scene and concurrency management is a design made by the dual system of the smart wearable device for voice wake-up specific tasks (e.g., AR navigation, AR shopping) in certain VR/AR scenes, and is also one of the cores of the present embodiment. Here, first, a design for classifying AR scenes is performed. Because one of the characteristics of the AR dual system is to find a balance point between application ecology, function expansion and power endurance, different scenarios need to be considered in the operation mode/carrier (whether operating on the AP or CP side) of the application. For example, applications such as AR navigation and AR shopping developed based on the AR engine are run on the AP side, while applications such as simple information notification, weather status, music playback, voice call are run on the CP side. Secondly, when a certain task is awakened by voice, a concurrency influence may be caused, and in order to take into account an already-running task (i.e., an application program currently running by the processor) and a new awakening task (i.e., a newly-triggered target application program to be started and run), the concurrent application program needs to be coordinated and processed according to a concurrency management policy through an AR scene and concurrency management module. Management policy under a typical concurrency scenario: when a user uses AR shopping or AR navigation (running on the AP side), a call needs to be made to a certain person, the user triggers a calling function through voice awakening, the AR application (namely AR shopping or AR navigation) on the AP side continues running, the CP side starts a call application on the CP side through voice awakening by utilizing 'AR scene and concurrency management', and then calling operation is initiated.
Further describing the usage scenario of starting AR shopping while listening to music, the basic implementation flow of this embodiment is as follows:
1. at the CP side, music is being played, the user initiates voice awakening at the moment, and hot words (such as 'XXX, AR shopping') of the user are detected;
2. the CP side inquires scene information and a concurrency strategy of the awakened target application program through 'AR scene and concurrency management';
3. if the AR scene and concurrency management determines that the target application program runs on the AP side according to the scene information and the concurrency strategy, the system state of the AP side is inquired through application state management, and the aim is to wake the AP side to enter a wake-up state when the AP side is in a dormant state (if the AP side runs on the CP side, the AP side does not need to be specially woken up).
4. And the CP side directly acquires the application carrying information of the CP side through application state management according to the inquired scene information and the concurrency strategy, and determines the application program currently running at the CP side, or indirectly acquires the application running information of the AP side and determines the application program currently running at the AP side.
5. Judging whether the currently running application program needs to be suspended or not according to the AR scene and the concurrency management strategy, namely whether the currently running application program can run simultaneously with the target application program or not;
6. if the software system can not run simultaneously, the application switching of the software system is executed, namely the CP side controls the CP side or the AP side to suspend the current application program through an inter-core communication management module and an application state management module, and starts the target application program (whether the CP side or the AP side is run, wherein the CP side can be indirectly controlled when the CP side runs, and the CP side can be directly controlled when the CP side runs).
7. If the target application program can be run simultaneously, the CP side or the AP side is controlled to start the target application program (whether the target application program runs on the AP side or the CP side is determined, wherein the target application program runs on the AP side and can be indirectly controlled, and the target application program runs on the CP side and can be directly controlled) directly through the inter-core communication management module and the application state management module.
It should be noted that the above specific embodiments are only used to help understand the technical concept of the present embodiment, and do not constitute a limitation on the frame structure of the intelligent wearable device of the present application, and simple transformations in more forms based on the technical concept of the present embodiment should be within the scope of the present application.
Example two
Based on the foregoing embodiments of the present application, please refer to fig. 3, and in another embodiment of the present application, the same or similar contents to those of the foregoing embodiments may be referred to the above description, and will not be repeated. On this basis, if the application programs currently running on the first operating system cannot be run simultaneously, after stopping the application program currently running on the first operating system, the step of controlling the main processor to start running the target application program includes:
step S41, if the first operating system and the second operating system cannot be operated simultaneously, determining a current task priority corresponding to an application program currently operated by the first operating system and a target task priority corresponding to a target application program from a preset application program priority mapping table;
in this embodiment, the coprocessor determines the current task priority corresponding to the application currently running by the first operating system and the target task priority corresponding to the target application from the preset application priority mapping table, so that a main processor is not required to participate, the running load of the main processor is further reduced, and the stable and smooth running of the application running on the main processor with high load and strongly related to the AR/VR function application scene is not influenced.
And step S42, if the current task priority is less than the target task priority, after the application program currently running in the first operating system is stopped, controlling the main processor to start running the target application program.
In this embodiment, it may be understood that, in the application priority mapping table, different applications often map different task priorities, and a processor often needs to preferentially meet the task priority higher than the task priority to run. For example, the task priority of the application program strongly related to the AR/VR function application scene, such as the application program for AR navigation, AR shopping, AR house-watching or AR exhibition, is relatively high, while the task priority of the application program weakly related to the AR/VR function application scene, such as the application program for music playing, information notification, weather state, and the like, is relatively low.
If the intelligent wearable device cannot run simultaneously, determining a current task priority corresponding to an application currently running by the first operating system and a target task priority corresponding to a target application from a preset application priority mapping table, and if the current task priority is smaller than the target task priority, controlling the main processor to start running the target application after stopping the application currently running by the first operating system, so as to ensure that the task with higher task priority runs, ensure the realization of functional application scenes under the AR/VR system, and further improve the stability and robustness of each functional application scene under the AR/VR system run by the intelligent wearable device.
In a possible implementation manner, after the step of determining, from a preset application priority mapping table, a current task priority corresponding to an application currently running by the first operating system and a target task priority corresponding to the target application, the method further includes:
and G10, if the priority of the current task is greater than or equal to the priority of the target task, outputting prompt information that the application program currently running by the first operating system cannot run simultaneously with the target application program.
In this embodiment, the presentation form of the prompt message may be an audio prompt message (for example, playing a preset prompt audio), a light source prompt message (for example, a signal light flashing prompt), an image prompt message (for example, a display interface displays preset text prompt content or image prompt content), and the like. The presentation form of the prompt message is not specifically limited in this embodiment.
In the embodiment, if the current task priority is greater than or equal to the target task priority, the prompt information that the application program currently running in the first operating system cannot run simultaneously with the target application program is output, so that the user is prompted that the application program currently running in the first operating system and the target application program can only select one of the application programs to run, the situation that the application programs of the two categories run simultaneously in the first operating system and conflict exists is avoided, the realization of the functional application scene under the AR/VR system is influenced, the cruising performance of the intelligent wearable device is reduced, the use experience of the user on the intelligent wearable device is further improved, and the stability and the robustness of each functional application scene under the AR/VR system running of the intelligent wearable device are further improved.
On this basis, if the current running application program of the second operating system cannot be simultaneously run, the step of controlling the coprocessor to start running the target application program after stopping the current running application program of the second operating system comprises the following steps:
step H10, if the operation cannot be carried out simultaneously, determining the current task priority corresponding to the application program currently operated by the second operating system and the target task priority corresponding to the target application program from a preset application program priority mapping table;
in this embodiment, the coprocessor may determine, from a preset application priority mapping table, a current task priority corresponding to an application currently running by the first operating system and a target task priority corresponding to a target application, so as to reduce a running load of the main processor, thereby not affecting stable and smooth running of a high-load application that is strongly related to an AR/VR function application scenario running on the main processor.
And H20, if the current task priority is less than the target task priority, controlling the coprocessor to start running the target application program after stopping the application program currently running by the second operating system.
In this embodiment, through the step H10 and the step H20, it is ensured that the task with higher task priority is satisfied, and the implementation of the functional application scenario in the AR/VR system is ensured as much as possible, so that the stability and robustness of each functional application scenario in the AR/VR system operated by the intelligent wearable device are improved.
In a possible implementation manner, after the step of determining, from a preset application priority mapping table, a current task priority corresponding to an application currently run by a second operating system and a target task priority corresponding to a target application, the method further includes:
and I10, if the priority of the current task is greater than or equal to the priority of the target task, outputting a prompt message that the application program currently running by the second operating system cannot run simultaneously with the target application program.
In this embodiment, through step I10, the user is prompted that the currently running application program and the target application program can only select one of them to run, so that it is avoided that the application programs of the two categories run simultaneously in the second operating system, which may affect the implementation of the functional application scenario in the AR/VR system, and the cruising performance of the intelligent wearable device is reduced, thereby improving the use experience of the user on the intelligent wearable device, and further improving the stability and robustness of each functional application scenario when the intelligent wearable device runs in the AR/VR system.
EXAMPLE III
The embodiment of the present invention further provides a concurrency control device for an application program, where the concurrency control device for an application program is applied to an intelligent wearable device, the intelligent wearable device includes a main processor running a first operating system and a coprocessor running a second operating system, and the concurrency control device for an application program includes:
the determining module is used for acquiring a target application program to be started and operated through the coprocessor and determining an operating system supporting the operation of the target application program;
the detection module is used for detecting whether the application program currently operated by the first operating system can be operated simultaneously with the target application program when the operating system supporting the operation of the target application program is the first operating system;
the control module is used for controlling the main processor to start and run the target application program if the main processor can run simultaneously; and if the first operating system and the second operating system cannot run simultaneously, controlling the main processor to start running the target application program after stopping the application program currently running by the first operating system.
Optionally, the determining module is further configured to:
receiving an application triggering instruction through the coprocessor, and determining an application program triggered by the application triggering instruction;
and taking the correspondingly triggered application program as a target application program to be started and operated.
Optionally, the determining module is further configured to:
monitoring voice information of a user through the coprocessor, and identifying whether key voice words exist in the voice information;
and if the key voice words exist, inquiring an application program mapped by the key voice words from a preset mapping table, and generating an application triggering instruction for triggering the mapped application program.
Optionally, the control module is further configured to:
if the first operating system cannot run simultaneously, determining a current task priority corresponding to the currently running application program of the first operating system and a target task priority corresponding to the target application program from a preset application program priority mapping table;
and if the current task priority is less than the target task priority, controlling the main processor to start running the target application program after stopping the application program currently running by the first operating system.
Optionally, the control module is further configured to:
and if the current task priority is greater than or equal to the target task priority, outputting prompt information that the application program currently operated by the first operating system cannot be operated simultaneously with the target application program.
Optionally, the determining module is further configured to:
polling and detecting the application programs stored in the local application layer corresponding to the main processor and the application programs stored in the local application layer corresponding to the coprocessor respectively;
determining the application layer position stored corresponding to the target application program according to the polled application programs;
if the application layer is a local application layer corresponding to the main processor, determining that an operating system supporting the running of the target application program is the first operating system;
and if the application layer is a local application layer corresponding to the coprocessor, determining that the operating system supporting the running of the target application program is the second operating system.
Optionally, the detection module is further configured to:
when the operating system supporting the running of the target application program is the second operating system, detecting whether the currently running application program of the second operating system can run simultaneously with the target application program;
the control module is also used for
If the target application program can be run simultaneously, controlling the coprocessor to start running the target application program;
and if the target application program cannot be simultaneously operated, controlling the coprocessor to start operating the target application program after stopping the currently operated application program of the second operating system.
Optionally, the detecting module is further configured to:
detecting, by the coprocessor, an operating state of the main processor;
the control module is further configured to:
if the running state of the main processor is in a dormant state, awakening the main processor through the coprocessor to switch the running state of the main processor to an awakening state, and controlling the main processor in the awakening state to start running the target application program;
if the running state of the main processor is in the awakening state, acquiring application running information of the main processor through the coprocessor, determining an application program currently running by the first operating system according to the application running information, and executing: and detecting whether the application program currently operated by the first operating system can be operated simultaneously with the target application program.
By adopting the concurrency control method for the application programs in the first embodiment or the second embodiment, the concurrency control device for the application programs provided by the embodiment of the invention solves the technical problem of how to better coordinate and process the concurrent application programs by the intelligent wearable equipment. Compared with the prior art, the beneficial effects of the concurrency control device for the application program provided by the embodiment of the invention are the same as the beneficial effects of the concurrency control method for the application program provided by the above embodiment, and other technical features of the concurrency control device for the application program are the same as those disclosed by the method of the previous embodiment, which are not described herein again.
Example four
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the concurrency control method for the application program in the first embodiment.
Referring now to FIG. 5, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the disclosed embodiments may include, but are not limited to, mixed Reality (Mixed Reality) -MR devices, augmented Reality (Augmented Reality) -AR devices, virtual Reality- (Virtual Reality) -VR devices, extended Reality (Extended Reality) -XR devices, or some combination thereof, among other smart wearable devices. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is understood that implementing or having all of the illustrated systems is not a requirement. More or fewer systems may alternatively be implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
By adopting the concurrency control method for the application programs in the first embodiment or the second embodiment, the electronic device provided by the invention solves the technical problem of how to better coordinate and process the concurrent application programs by the intelligent wearable device. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the concurrency control method for an application program provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the method of the previous embodiment, which are not described herein again.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
EXAMPLE five
Embodiments of the present invention provide a computer-readable storage medium, which has computer-readable program instructions stored thereon, where the computer-readable program instructions are used to execute the concurrency control method for an application program in the first embodiment.
The computer readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be separate and not incorporated into the electronic device.
The computer-readable storage medium carries one or more programs which, when executed by an electronic device, cause the electronic device to: acquiring a target application program to be started and operated by the coprocessor, and determining an operating system supporting the operation of the target application program; when an operating system supporting the running of the target application program is the first operating system, detecting whether the currently running application program of the first operating system can run simultaneously with the target application program; if the target application program can be operated simultaneously, controlling the main processor to start operating the target application program; and if the first operating system and the second operating system cannot run simultaneously, controlling the main processor to start running the target application program after stopping the currently running application program of the first operating system.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer readable storage medium provided by the invention stores the computer readable program instructions for executing the concurrency control method of the application program, and solves the technical problem of how to better coordinate and process the concurrent application program by the intelligent wearable device. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present invention are the same as the beneficial effects of the concurrency control method for an application program provided by the first embodiment or the second embodiment, and are not described herein again.
Example six
Embodiments of the present invention further provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the concurrency control method for an application program as described above are implemented.
The computer program product solves the technical problem of how to better coordinate concurrent applications by the intelligent wearable device. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the concurrency control method for an application program provided by the above-mentioned first embodiment or second embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all equivalent structures or equivalent processes, which are directly or indirectly applied to other related technical fields, and which are not limited by the present application, are also included in the scope of the present application.

Claims (10)

1. A concurrency control method of an application program is applied to an intelligent wearable device, the intelligent wearable device comprises a main processor running a first operating system and a coprocessor running a second operating system, and the concurrency control method of the application program comprises the following steps:
acquiring a target application program to be started and operated by the coprocessor, and determining an operating system supporting the operation of the target application program;
when an operating system supporting the running of the target application program is the first operating system, detecting whether the currently running application program of the first operating system can run simultaneously with the target application program;
if the target application program can be operated simultaneously, controlling the main processor to start operating the target application program;
and if the first operating system and the second operating system cannot run simultaneously, controlling the main processor to start running the target application program after stopping the currently running application program of the first operating system.
2. The method for concurrently controlling application programs according to claim 1, wherein the step of obtaining, by the coprocessor, the target application program to be started and run comprises:
receiving an application triggering instruction through the coprocessor, and determining an application program triggered correspondingly by the application triggering instruction;
and taking the correspondingly triggered application program as a target application program to be started and operated.
3. The concurrency control method for application programs according to claim 2, wherein said step of receiving an application trigger instruction by said coprocessor is preceded by:
monitoring voice information of a user through the coprocessor, and identifying whether key voice words exist in the voice information;
and if the key voice words exist, inquiring an application program mapped by the key voice words from a preset mapping table, and generating an application triggering instruction for triggering the mapped application program.
4. The method for concurrently controlling application programs according to claim 1, wherein the step of controlling the main processor to start running the target application program after stopping the application program currently running in the first operating system if the application programs cannot be run simultaneously comprises:
if the first operating system cannot run simultaneously, determining a current task priority corresponding to the currently running application program of the first operating system and a target task priority corresponding to the target application program from a preset application program priority mapping table;
and if the current task priority is smaller than the target task priority, controlling the main processor to start running the target application program after stopping the application program currently run by the first operating system.
5. The method for concurrently controlling applications according to claim 4, wherein the step of determining, from a preset application priority mapping table, a current task priority corresponding to the application currently running by the first operating system and a target task priority corresponding to the target application further comprises:
and if the current task priority is greater than or equal to the target task priority, outputting prompt information that the application program currently running by the first operating system cannot run simultaneously with the target application program.
6. The concurrency control method for applications according to claim 1, wherein the step of determining an operating system supporting the running of the target application comprises:
polling and detecting the application programs stored in the local application layer corresponding to the main processor and the application programs stored in the local application layer corresponding to the coprocessor respectively;
determining the application layer position stored corresponding to the target application program according to the polled application programs;
if the application layer is a local application layer corresponding to the main processor, determining that an operating system supporting the running of the target application program is the first operating system;
and if the application layer is a local application layer corresponding to the coprocessor, determining that the operating system supporting the running of the target application program is the second operating system.
7. The method for controlling concurrency of application programs according to claim 1, wherein said step of determining an operating system supporting the execution of said target application program further comprises:
when the operating system supporting the running of the target application program is the second operating system, detecting whether the application program currently running by the second operating system can run simultaneously with the target application program;
if the target application program can be run simultaneously, controlling the coprocessor to start running the target application program;
if the first operating system and the second operating system cannot run simultaneously, controlling the coprocessor to start running the target application program after stopping the application program currently running by the second operating system.
8. The method for concurrently controlling application programs according to claim 1, wherein the step of detecting whether the application program currently running on the first operating system can run simultaneously with the target application program comprises:
detecting, by the coprocessor, an operating state of the main processor;
if the running state of the main processor is in a dormant state, awakening the main processor through the coprocessor to switch the running state of the main processor to an awakening state, and controlling the main processor in the awakening state to start running the target application program;
if the running state of the main processor is in the awakening state, acquiring application running information of the main processor through the coprocessor, determining an application program currently running by the first operating system according to the application running information, and executing: and detecting whether the application program currently operated by the first operating system can be operated simultaneously with the target application program.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the concurrency control method for application programs according to any one of claims 1 to 8.
10. A readable storage medium, characterized in that the readable storage medium is a computer-readable storage medium having stored thereon a program for implementing a concurrency control method for an application program, the program for implementing a concurrency control method for an application program being executed by a processor to implement the steps of the concurrency control method for an application program according to any one of claims 1 to 8.
CN202210914945.9A 2022-08-01 2022-08-01 Concurrency control method of application program, electronic device and readable storage medium Pending CN115269048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210914945.9A CN115269048A (en) 2022-08-01 2022-08-01 Concurrency control method of application program, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210914945.9A CN115269048A (en) 2022-08-01 2022-08-01 Concurrency control method of application program, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN115269048A true CN115269048A (en) 2022-11-01

Family

ID=83746268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210914945.9A Pending CN115269048A (en) 2022-08-01 2022-08-01 Concurrency control method of application program, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115269048A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115576679A (en) * 2022-12-09 2023-01-06 北京小米移动软件有限公司 Sensor control method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115576679A (en) * 2022-12-09 2023-01-06 北京小米移动软件有限公司 Sensor control method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107273130B (en) Method, device and terminal for accelerating interface drawing
CN109857486B (en) Method, device, equipment and medium for processing program page data
WO2020108339A1 (en) Page display position jump method and apparatus, terminal device, and storage medium
CN107450838B (en) Response method and device of black screen gesture, storage medium and mobile terminal
WO2021109875A1 (en) Method and apparatus for implementing game application, storage medium, and electronic device
CN111625214A (en) Audio control method, device, equipment and storage medium
CN107479700B (en) Black screen gesture control method and device, storage medium and mobile terminal
CN113094135B (en) Page display control method, device, equipment and storage medium
WO2019019818A1 (en) Method and apparatus for accelerating black screen gesture processing, storage medium, and mobile terminal
CN112764563A (en) Multi-screen control method, device and system, electronic equipment and storage medium
WO2019047226A1 (en) Touch operation response method and device
CN115269048A (en) Concurrency control method of application program, electronic device and readable storage medium
WO2019127082A1 (en) Display screen control method and apparatus, and intelligent terminal
CN110045958B (en) Texture data generation method, device, storage medium and equipment
CN103986961A (en) Method and device for achieving picture in picture based on QNX vehicle-mounted system
CN114327087A (en) Input event processing method and device, electronic equipment and storage medium
WO2021052488A1 (en) Information processing method and electronic device
CN111930509A (en) Data processing method and device for intelligent glasses, storage medium and electronic equipment
CN110134463B (en) Data processing method, device, equipment and machine readable medium
CN109064527B (en) Method and device for realizing dynamic configuration animation, storage medium and android terminal
CN115562736A (en) Display processing method, display processing device, electronic device, and medium
WO2021115257A1 (en) Application switching method and apparatus, storage medium and electronic device
US10901520B1 (en) Content capture experiences driven by multi-modal user inputs
CN114860368A (en) Control method and device of display equipment, electronic equipment and readable storage medium
CN107015874B (en) Data transmission control method, device and terminal

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