CN115599455A - System starting method and device, electronic equipment and storage medium - Google Patents

System starting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115599455A
CN115599455A CN202211280040.7A CN202211280040A CN115599455A CN 115599455 A CN115599455 A CN 115599455A CN 202211280040 A CN202211280040 A CN 202211280040A CN 115599455 A CN115599455 A CN 115599455A
Authority
CN
China
Prior art keywords
timestamp information
cache file
application program
package
program package
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
CN202211280040.7A
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202211280040.7A priority Critical patent/CN115599455A/en
Publication of CN115599455A publication Critical patent/CN115599455A/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/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • 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/4401Bootstrapping
    • G06F9/4403Processor initialisation

Landscapes

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

Abstract

The disclosure provides a system starting method, a system starting device, electronic equipment and a storage medium. The system starting method comprises the following steps: acquiring timestamp information of a system application program package; and updating the timestamp information of the cache file of the application program package according to the timestamp information of the application program package, so that the cache file after the timestamp information is updated is scanned after a trigger instruction of system startup is responded. The method can still utilize the cache file of the application program package to shorten the starting time of the system under the condition that the real-time clock of the system does not work.

Description

System starting method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a system booting method and apparatus, an electronic device, and a storage medium.
Background
With the development of software and hardware, users seek the experience of performance speed more and more, and faster startup time can bring forward experience to the users. The starting process needs to go through a process of scanning all Application Packages (APKs) of the system, and the cache file is stored, so that the next starting process does not need to scan all the APKs again, and the cache file is directly scanned, thereby saving the starting time. However, due to the cost problem, some modules of the system, such as a Real Time Clock (RTC) module, are often castrated in the related art, which may cause an inaccurate timestamp after power-on, so that an expired cache file with an inaccurate timestamp cannot be directly scanned when the system is powered on next Time, and all APKs still need to be scanned again, thereby slowing down the power-on Time.
Disclosure of Invention
In order to solve the existing problems, the present disclosure provides a system booting method, apparatus, electronic device and storage medium.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The disclosure provides a system starting method, a system starting device, electronic equipment and a storage medium.
The present disclosure adopts the following technical solutions.
In some embodiments, the present disclosure provides a system booting method, including:
acquiring timestamp information of a system application program package;
and updating the timestamp information of the cache file of the application program package according to the timestamp information of the application program package, so that the cache file after the timestamp information is updated is scanned after a trigger instruction of responding to system startup.
In some embodiments, the present disclosure provides a system on device comprising:
the acquisition module is used for acquiring the timestamp information of the system application program package;
and the processing module is used for updating the timestamp information of the cache file of the application program package according to the timestamp information of the application program package, so that the cache file after the timestamp information is updated is scanned after a trigger instruction of system startup is responded.
In some embodiments, the present disclosure provides an electronic device comprising: at least one memory and at least one processor;
the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method.
In some embodiments, the present disclosure provides a computer-readable storage medium for storing program code which, when executed by a processor, causes the processor to perform the above-described method.
The system startup method provided by the embodiment of the disclosure updates the timestamp information of the cache file of the application program package by acquiring the timestamp information of the system application program package, so that the cache file after the timestamp information is updated is scanned after a trigger instruction of system startup is responded. The system startup method provided by the embodiment of the disclosure can determine whether to perform a packet scanning action by using the timestamp information of the application program packet as a reference value under the condition that a system real-time clock does not work, so that the embodiment of the disclosure can still shorten the system startup time by using the cache file of the application program packet.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a flowchart of a system boot method according to an embodiment of the present disclosure.
Fig. 2 is a schematic diagram of system boot according to an embodiment of the disclosure.
Fig. 3 is a second schematic diagram illustrating system booting according to the embodiment of the disclosure.
Fig. 4 is a third schematic diagram illustrating system booting according to the embodiment of the disclosure.
Fig. 5 is a fourth schematic diagram illustrating system booting according to an embodiment of the disclosure.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more complete and thorough understanding of the present disclosure. It should be understood that the drawings and the embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that various steps recited in method embodiments of the present disclosure may be performed in parallel and/or in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description. The term "responsive to" and related terms mean that one signal or event is affected to some extent by another signal or event, but not necessarily completely or directly. If an event x occurs "in response" to an event y, x may respond directly or indirectly to y. For example, the occurrence of y may ultimately result in the occurrence of x, but other intermediate events and/or conditions may exist. In other cases, y may not necessarily result in the occurrence of x, and x may occur even though y has not already occurred. Furthermore, the term "responsive to" may also mean "at least partially responsive to".
The term "determining" broadly encompasses a wide variety of actions that can include obtaining, calculating, computing, processing, deriving, investigating, looking up (e.g., looking up in a table, a database or another data structure), ascertaining and the like, and can also include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory) and the like, as well as resolving, selecting, choosing, establishing and the like, and the like. Relevant definitions for other terms will be given in the following description. Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a flowchart of a system booting method according to an embodiment of the disclosure, including the following steps.
Step S01: acquiring timestamp information of a system application program package;
step S02: and updating the timestamp information of the cache file of the application program package according to the timestamp information of the application program package, so that the cache file after the timestamp information is updated is scanned after a trigger instruction of system startup is responded.
In some embodiments, as shown in fig. 2, the native boot process of the system is: the RTC is electrified, if the RTC is started for the first time, all APKs in the system are scanned, and a cache file is generated; if the system is not started for the first time, whether the cache file is overdue or not is judged firstly, whether the overdue cache file is overdue or not is determined based on the generation time of the cache file and the timestamp information displayed by the RTC, when the cache file is not overdue, the cache file can be quickly started by scanning, and when the cache file is overdue, the APK is updated, so that the starting can be completed only after all APKs in the system are scanned again. It can be seen that when the RTC module is cancelled, the cache file is considered to be "expired" each time, and therefore, all APKs in the system need to be scanned every time the RTC module is turned on, as shown in fig. 3. Therefore, how to accurately determine the generation time of the cache file without the RTC becomes an urgent problem to be solved. Related technologies generally enable an RTC module to ensure that a timestamp obtained after kemel is started is accurate, but since a bottom layer driver is provided by a chip platform, a chip user cannot modify bottom layer codes, and thus the scheme cannot be realized in practice.
In order to solve the above problem, the embodiment of the present disclosure still utilizes the cache file of the application package to shorten the system boot time on the premise of not modifying the underlying code. Specifically, as shown in fig. 4, first, time stamp information of the system application package APK, for example, the generation time of the APK file, is acquired. Then, when the computer is not started for the first time, obtaining timestamp information in a cache file of the APK, comparing the timestamp information in the cache file of the APK with timestamp information of the current APK, if the timestamp information in the cache file of the APK is the same as the timestamp information of the current APK, indicating that the APK is not updated, and if the cache file is not overdue, scanning the cache file to realize quick startup; if the time stamp information in the cache file of the APK is different from the time stamp information of the current APK, it indicates that the APK has been updated in the previous period of time, and a new cache file is generated.
The system startup method provided by the embodiment of the disclosure updates the timestamp information of the cache file of the application program package by acquiring the timestamp information of the system application program package, so that the cache file after the timestamp information is updated is scanned after responding to the trigger instruction of system startup. The system startup method provided by the embodiment of the disclosure can determine whether to perform a packet scanning action by using the timestamp information of the application program packet as a reference value under the condition that a system real-time clock does not work, so that the embodiment of the disclosure can still shorten the system startup time by using the cache file of the application program packet.
In some embodiments, the updating the timestamp information of the cache file of the application package according to the timestamp information of the application package includes:
comparing the timestamp information of the cache file with the timestamp information of the application program package;
if the timestamp information of the cache file is the same as the timestamp information of the application program package, the timestamp information of the cache file is not updated, and if the timestamp information of the cache file is different from the timestamp information of the installation package, the timestamp information of the application program package is stored in the file name of the cache file.
In some embodiments, further comprising:
acquiring the operating environment of the system;
and in response to the fact that the working environment meets the preset conditions, scanning the application program package, and updating the timestamp information of the cache file of the application program package, so that the cache file after the timestamp information is updated is scanned after a trigger instruction of system startup is responded.
As shown in fig. 5, the embodiment of the present disclosure further provides a scheme for shortening the system boot time by still using the cache file of the application package. Specifically, after the system is started for the first time, when the time switching is detected, an execution event is triggered, the APK is scanned again when the system is in a networking environment or the utilization rate of a Central Processing Unit (CPU) is lower than a preset threshold, and the timestamp information of the cache file is updated to the current timestamp information of the system, so that when the system is started for the next time, the logic of scanning all APKs in the system is not triggered again, and the fast start can be realized only by scanning the cache file. For example, when it is detected that the timestamp information of the system is updated, the current operating environment of the system is acquired, the APK is scanned again if the system is in a networking environment or the utilization rate of the central processing unit is lower than a preset threshold, and the timestamp information of the system is stored in the file name of the cache file.
In some embodiments, the obtaining a working environment of the system includes:
and when detecting that the timestamp information of the system is updated, acquiring the current working environment of the system.
In some embodiments, the updating the timestamp information of the cache file of the application package includes:
and storing the timestamp information of the system into the file name of the cache file.
In some embodiments, said scanning said application package in response to determining that said job environment satisfies a preset condition comprises:
in response to determining that the system is in a networked environment, scanning the application packages.
In some embodiments, said scanning said application package in response to determining that said job environment satisfies a preset condition further comprises:
scanning the application package in response to determining that a central processor utilization of the system is below a preset threshold.
Therefore, according to the system boot method provided by the embodiment of the disclosure, when the RTC does not operate, the logic for scanning the APK is triggered once by finding a suitable time (low CPU) after the system is booted for the first time, and the cache file is updated, so that the fast boot can still be realized by using the updated cache file.
The embodiment of the present disclosure further provides a system startup device, including:
the acquisition module is used for acquiring the timestamp information of the system application program package;
and the processing module is used for updating the timestamp information of the cache file of the application program package according to the timestamp information of the application program package, so that the cache file with the timestamp information updated is scanned after responding to a trigger instruction of starting the system.
In some embodiments, the processing module is specifically configured to:
comparing the timestamp information of the cache file with the timestamp information of the application program package;
if the timestamp information of the cache file is the same as the timestamp information of the application program package, the timestamp information of the cache file is not updated, and if the timestamp information of the cache file is different from the timestamp information of the installation package, the timestamp information of the application program package is stored in the file name of the cache file.
In some embodiments, the processing module is further specifically configured to:
acquiring the operating environment of the system;
and in response to the fact that the working environment meets the preset condition, scanning the application program package, and updating the timestamp information of the cache file of the application program package, so that the cache file after the timestamp information is updated is scanned after the system is responded to a trigger instruction of starting the system.
In some embodiments, the processing module is further specifically configured to:
and when the update of the timestamp information of the system is detected, acquiring the current working environment of the system.
In some embodiments, the processing module is further specifically configured to:
and storing the timestamp information of the system into the file name of the cache file.
In some embodiments, the processing module is further specifically configured to:
in response to determining that the system is in a networked environment, scanning the application package.
In some embodiments, the processing module is further specifically configured to:
and scanning the application program package in response to determining that the utilization rate of a central processing unit of the system is lower than a preset threshold value.
For the embodiments of the apparatus, since they correspond substantially to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative, wherein the modules described as separate modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The method and apparatus of the present disclosure have been described above based on the embodiments and application examples. In addition, the present disclosure also provides an electronic device and a computer-readable storage medium, which are described below.
Referring now to fig. 6, a schematic diagram of an electronic device (e.g., a terminal device or server) 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in the drawings is only an example and should not bring any limitation to the functions and use range of the embodiments of the present disclosure.
The electronic device 800 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While shown with various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be alternatively 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 by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. 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 disclosure, 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, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable 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.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may be separate and not incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods of the present disclosure as described above.
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 latter scenario, 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 disclosure. 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 units described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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 compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a system booting method, including:
acquiring timestamp information of a system application program package;
and updating the timestamp information of the cache file of the application program package according to the timestamp information of the application program package, so that the cache file after the timestamp information is updated is scanned after a trigger instruction of system startup is responded.
According to one or more embodiments of the present disclosure, there is provided a method for updating timestamp information of a cache file of an application package according to timestamp information of the application package, including:
comparing the timestamp information of the cache file with the timestamp information of the application program package;
if the timestamp information of the cache file is the same as the timestamp information of the application program package, the timestamp information of the cache file is not updated, and if the timestamp information of the cache file is not the same as the timestamp information of the installation package, the timestamp information of the application program package is stored in the filename of the cache file.
In accordance with one or more embodiments of the present disclosure, there is provided a method, further comprising:
acquiring the operating environment of the system;
and in response to the fact that the working environment meets the preset conditions, scanning the application program package, and updating the timestamp information of the cache file of the application program package, so that the cache file after the timestamp information is updated is scanned after a trigger instruction of system startup is responded.
According to one or more embodiments of the present disclosure, there is provided a method of acquiring a working environment of a system, including:
and when detecting that the timestamp information of the system is updated, acquiring the current working environment of the system.
According to one or more embodiments of the present disclosure, there is provided a method for updating timestamp information of a cache file of the application package, including:
and storing the timestamp information of the system into the file name of the cache file.
In accordance with one or more embodiments of the present disclosure, there is provided a method of scanning the application package in response to determining that the job environment satisfies a preset condition, comprising:
in response to determining that the system is in a networked environment, scanning the application packages.
In accordance with one or more embodiments of the present disclosure, there is provided a method, in response to determining that the job environment satisfies a preset condition, scanning the application package, further comprising:
and scanning the application program package in response to determining that the utilization rate of a central processing unit of the system is lower than a preset threshold value.
According to one or more embodiments of the present disclosure, there is provided a system startup device including:
the acquisition module is used for acquiring the timestamp information of the system application program package;
and the processing module is used for updating the timestamp information of the cache file of the application program package according to the timestamp information of the application program package, so that the cache file with the timestamp information updated is scanned after responding to a trigger instruction of starting the system.
According to one or more embodiments of the present disclosure, there is provided an electronic device including: at least one memory and at least one processor;
wherein the at least one memory is configured to store program code and the at least one processor is configured to call the program code stored in the at least one memory to perform the method of any one of the above.
According to one or more embodiments of the present disclosure, a computer-readable storage medium for storing program code, which, when executed by a processor, causes the processor to perform the above-described method, is provided.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A system boot method, comprising:
acquiring timestamp information of a system application program package;
and updating the timestamp information of the cache file of the application program package according to the timestamp information of the application program package, so that the cache file after the timestamp information is updated is scanned after a trigger instruction of system startup is responded.
2. The method according to claim 1, wherein the updating the timestamp information of the cache file of the application package according to the timestamp information of the application package comprises:
comparing the timestamp information of the cache file with the timestamp information of the application program package;
if the timestamp information of the cache file is the same as the timestamp information of the application program package, the timestamp information of the cache file is not updated, and if the timestamp information of the cache file is different from the timestamp information of the installation package, the timestamp information of the application program package is stored in the file name of the cache file.
3. The method of claim 1, further comprising:
acquiring the operating environment of the system;
and in response to the fact that the working environment meets the preset conditions, scanning the application program package, and updating the timestamp information of the cache file of the application program package, so that the cache file after the timestamp information is updated is scanned after a trigger instruction of system startup is responded.
4. The method of claim 3, wherein obtaining the operating environment of the system comprises:
and when detecting that the timestamp information of the system is updated, acquiring the current working environment of the system.
5. The method of claim 3, wherein the updating the timestamp information of the cache file of the application package comprises:
and storing the timestamp information of the system into the file name of the cache file.
6. The method of claim 3, wherein said scanning the application package in response to determining that the operating environment satisfies a preset condition comprises:
in response to determining that the system is in a networked environment, scanning the application packages.
7. The method of claim 3, wherein said scanning the application package in response to determining that the operating environment satisfies a preset condition, further comprises:
and scanning the application program package in response to determining that the utilization rate of a central processing unit of the system is lower than a preset threshold value.
8. A system startup device, comprising:
the acquisition module is used for acquiring the timestamp information of the system application program package;
and the processing module is used for updating the timestamp information of the cache file of the application program package according to the timestamp information of the application program package, so that the cache file with the timestamp information updated is scanned after responding to a trigger instruction of starting the system.
9. An electronic device, comprising:
at least one memory and at least one processor;
wherein the at least one memory is configured to store program code and the at least one processor is configured to invoke the program code stored in the at least one memory to perform the method of any of claims 1 to 7.
10. A computer readable storage medium for storing program code which, when executed by a computer device, causes the computer device to perform the method of any of claims 1 to 7.
CN202211280040.7A 2022-10-19 2022-10-19 System starting method and device, electronic equipment and storage medium Pending CN115599455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211280040.7A CN115599455A (en) 2022-10-19 2022-10-19 System starting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211280040.7A CN115599455A (en) 2022-10-19 2022-10-19 System starting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115599455A true CN115599455A (en) 2023-01-13

Family

ID=84849517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211280040.7A Pending CN115599455A (en) 2022-10-19 2022-10-19 System starting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115599455A (en)

Similar Documents

Publication Publication Date Title
CN112214408B (en) Dependency conflict detection method, dependency conflict detection device, electronic equipment and computer readable medium
CN110851139B (en) Method and device for checking codes and electronic equipment
CN111274503B (en) Data processing method, device, electronic equipment and computer readable medium
CN111240767A (en) Component and page loading method and device, electronic equipment and storage medium
CN112953791B (en) Network detection method and device, electronic equipment and computer readable storage medium
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN110865846B (en) Application management method, device, terminal, system and storage medium
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111198853B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN110717126A (en) Page browsing method and device, electronic equipment and computer readable storage medium
CN116302271A (en) Page display method and device and electronic equipment
CN115599455A (en) System starting method and device, electronic equipment and storage medium
CN114741686A (en) Method and device for detecting program white list and related equipment
CN114116480A (en) Method, device, medium and equipment for determining application program test coverage rate
CN111382038B (en) Method, device, electronic equipment and storage medium for reporting service data
CN112905090A (en) Spreadsheet processing method, device, terminal and storage medium
CN111949528A (en) Memory leak detection method and device, electronic equipment and storage medium
CN111290812A (en) Application control display method and device, terminal and storage medium
CN111209042B (en) Method, device, medium and electronic equipment for establishing function stack
CN114398233B (en) Load abnormality detection method and device, server and storage medium
CN115827415B (en) System process performance test method, device, equipment and computer medium
CN111367555B (en) Assertion method, assertion device, electronic equipment and computer readable medium
CN111562913B (en) Method, device and equipment for pre-creating view component and computer readable medium
CN118057312A (en) Starting method and device and electronic equipment
CN116737192A (en) Method, device, storage medium and program product for monitoring update of application program

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