CN110389935A - A kind of method, equipment and computer storage medium starting small routine - Google Patents
A kind of method, equipment and computer storage medium starting small routine Download PDFInfo
- Publication number
- CN110389935A CN110389935A CN201910676162.XA CN201910676162A CN110389935A CN 110389935 A CN110389935 A CN 110389935A CN 201910676162 A CN201910676162 A CN 201910676162A CN 110389935 A CN110389935 A CN 110389935A
- Authority
- CN
- China
- Prior art keywords
- host
- small routine
- application
- file packet
- terminal device
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/174—Redundancy elimination performed by the file system
- G06F16/1748—De-duplication implemented within the file system, e.g. based on file segments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/176—Support for shared access to files; File sharing support
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of method, equipment and computer storage mediums for starting small routine, wherein method include: terminal device host's application get the event of triggering small routine starting after, confirm in the terminal device there is the file packet of the small routine with the presence or absence of host's application memory;If it is, the file packet using the small routine starts the small routine;Otherwise, it is also readable that the storage location of the file packet of the small routine other host's applications are arranged in the file packet that the small routine is downloaded and stored from server end.The file packet of the small routine of each host's Application share downloading carries out the starting of small routine in same terminal device in the present invention, solves the problems, such as small routine repeated downloads to realize, economizes on resources.
Description
[technical field]
The present invention relates to computer application technology, in particular to a kind of method, equipment and calculating for starting small routine
Machine storage medium.
[background technique]
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein
Description is not regarded as the prior art because being included in this section.
Small routine (Mini Program) is that one kind does not need the i.e. workable application of installation, runs on host's application and mentions
For in the environment of.It is more and more widely used due to can be used at any time without install unloading.Current each host answers
When used in starting small routine, it is required to that the file packet of small routine is locally-downloaded in host's application respectively, this necessarily will cause resource
Waste.
[summary of the invention]
In view of this, the present invention provides a kind of method, equipment and computer storage medium for starting small routine, to save
Resource.
Specific technical solution is as follows:
On the one hand, the present invention provides a kind of methods for starting small routine, by host's application execution of terminal device, the party
Method includes:
Get the event of triggering small routine starting;
Confirm the file packet for having the small routine in the terminal device with the presence or absence of host's application memory;
If it is, the file packet using the small routine starts the small routine;
Otherwise, it is downloaded from server end and stores the file packet of the small routine to start the small routine, described in setting
Other host's applications of the storage location of the file packet of small routine are also readable.
A preferred embodiment according to the present invention, confirm in the terminal device with the presence or absence of host's application memory have it is described
The file packet of small routine, comprising: confirm that each host for belonging to same host alliance with this host application in the terminal device answers
With whether each host's application for judging to determine is stored with the file packet of the small routine;
It is also readable that the storage location of the file packet of the small routine other host's applications are set, comprising: the little Cheng is set
The storage location of the file packet of sequence is for belonging to each host of same host alliance with this host application using readable;
Wherein, each host applies and uses identical small routine standard in same host alliance.
A preferred embodiment according to the present invention, this method further include:
The information applied from the synchronous each host for belonging to same host alliance with this host application of server end, and determine institute
State host's application message of the installed host alliance of terminal device.
A preferred embodiment according to the present invention, confirm in the terminal device with the presence or absence of host's application memory have it is described
The file packet of small routine, comprising:
Judge the file packet and the small routine that there are the small routine in the terminal device with the presence or absence of host's application memory
File packet meet this host application release requirement.
A preferred embodiment according to the present invention, the packet downloaded from server end and store the small routine it
Afterwards, this method further include:
The situation of the file packet of this host application memory small routine is reported into server end, so as to the terminal device
Other hosts apply to be obtained from server end.
A preferred embodiment according to the present invention, this method further include:
After host's application starting, the file of each host's application memory small routine in the terminal device is obtained from server end
The situation of packet, and it is stored in the private data library of this host application;
The private data library is inquired to execute in the confirmation terminal device and have with the presence or absence of host's application memory
The step of file packet of the small routine.
A preferred embodiment according to the present invention, the packet downloaded from server end and store the small routine it
Afterwards, this method further include:
The shared number situation of the file packet of small routine described in this host application memory being synchronized in the terminal device
According to library, obtained so that other hosts of the terminal device apply from the shared data bank.
A preferred embodiment according to the present invention, the storage location of the file packet of the small routine are the private of this host application
Have under catalogue.
A preferred embodiment according to the present invention, confirm in the terminal device with the presence or absence of host's application memory have it is described
The file packet of small routine, comprising:
First confirm the file packet that whether there is the small routine under the privately owned catalogue of this host application;
If it does not, judging that the terminal device has the text of the small routine with the presence or absence of other host's application memories again
Part packet, if it is, being read under the privately owned catalogue that other hosts for the file packet for being stored with the small routine apply described small
The file packet of program.
A preferred embodiment according to the present invention, confirm in the terminal device with the presence or absence of host's application memory have it is described
The file packet of small routine, comprising: judge whether the shared memory space of the terminal device is stored with the file of the small routine
Packet;
The file packet downloaded from server end and store the small routine, comprising: downloaded from server end described small
The file packet of program and the shared memory space for being stored in the terminal device.
Second aspect, the present invention provides a kind of methods for starting small routine, are held by host using corresponding server end
Row, this method comprises:
Receive the situation of the file packet for host's application memory small routine that corresponding host's application reports;And from its
The server end of his host's application synchronizes the situation of the file packet of other host's application memory small routines;
The situation of the file packet of host's application memory small routine each in same terminal device is integrated;
The file of each host's application memory small routine in terminal device where the host applies is synchronized to corresponding host's application
The situation of packet, so that corresponding host's application starting small routine uses.
A preferred embodiment according to the present invention, this method further include:
The information applied to the synchronous each host for belonging to same host alliance with corresponding host application of corresponding host's application,
In, each host, which applies, in same host alliance uses identical small routine standard.
A preferred embodiment according to the present invention, the text to host's application memory small routine each in same terminal device
The situation of part packet carries out integration
The situation of the file packet for host's application memory small routine that book server end is stored with from other hosts apply
The situation that server end synchronizes the file packet of each host's application memory small routine come carries out the merging for same terminal device
And duplicate removal.
The third aspect, the present invention provides a kind of equipment, the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes as above any method.
Fourth aspect, the present invention provides a kind of storage mediums comprising computer executable instructions, and the computer can
It executes instruction when being executed by computer processor for executing as above any method.
As can be seen from the above technical solutions, in the present invention in same terminal device the downloading of each host's Application share it is small
The file packet of program carries out the starting of small routine, solves the problems, such as small routine repeated downloads to realize, economizes on resources.
[Detailed description of the invention]
Fig. 1 be the present embodiments relate to system architecture schematic diagram;
Fig. 2 is main method flow chart provided in an embodiment of the present invention;
Fig. 3 is that the host that the embodiment of the present invention one provides applies 1 method flow diagram executed;
Fig. 4 is the flow chart that server end executes in the embodiment of the present invention one;
Fig. 5 is that host provided by Embodiment 2 of the present invention applies 1 method flow diagram executed;
Fig. 6 is that the host that the embodiment of the present invention three provides applies 1 method flow diagram executed;
Fig. 7 shows the block diagram for being suitable for the exemplary computer system for being used to realize embodiment of the present invention.
[specific embodiment]
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments
The present invention is described in detail.
In order to facilitate the understanding of the present invention, system architecture according to the present invention and main concept are retouched first
It states.As shown in fig. 1, which mainly includes that host applies with host using corresponding server end.
Small routine relies on host's application to run on the terminal device, and the environment where small routine operation is that host's application provides
's.Wherein terminal device can include but is not limited to such as: intelligent mobile terminal, smart home device, the network equipment, wearable
Formula equipment, intelligent medical equipment, PC (personal computer) etc..Wherein Intelligent mobile equipment may include such as mobile phone, plate electricity
Brain, laptop, PDA (personal digital assistant), internet automobile etc..Smart home device may include that intelligent appliance is set
It is standby, smart television, intelligent sound box etc..The network equipment may include interchanger, wireless aps, server etc..It is wearable
Formula equipment may include that such as smartwatch, intelligent glasses, Intelligent bracelet, virtual reality device, augmented reality equipment, mixing are existing
Real equipment (equipment that can support virtual reality and augmented reality) etc..
It may be applied comprising multiple hosts on same terminal device, to be using 2 using 1 and host comprising host in Fig. 1
Example.Multiple small routines may also be run in one host's application, and different hosts application may run different small routines, it can also
Identical small routine can be run.As shown in fig. 1, host applies and runs small routine a and small routine b in 1, and host applies to be transported in 2
Row small routine b and small routine c.
There are corresponding server ends for each host's application, and as shown in fig. 1, host applies 1 corresponding server end 1,
Host applies 2 corresponding server ends 2.Each host application can corresponding server end interact, in the present invention
In embodiment, data interaction can also be carried out between different server ends.
Each server end can be single server, be also possible to the server farm that multiple servers are constituted.It should manage
It solves, terminal device, host's application in Fig. 1, small routine, the number of server end are only schematical.According to realize needs,
It can have any number of terminal device, host's application, small routine, server end.
Core of the invention thought is, the file packet of the small routine of each host's Application share downloading in same terminal device
The starting of small routine is carried out, small routine repeated downloads is solved the problems, such as to realize, economizes on resources.Fig. 2 is that the present invention is implemented
The main method flow chart that example provides, by host's application execution of terminal device, executive device can be positioned at terminal this method
The functional units such as the plug-in unit of equipment host application or Software Development Kit (Software Development Kit, SDK).Such as
Shown in Fig. 2, this method is mainly comprised the steps that
In 201, the event of triggering small routine starting is obtained.
The present invention is not limited to trigger the event type of small routine starting in host applies, such as it can be user in place
Small routine icon is clicked in main application to trigger small routine starting, is also possible to user and is clicked certain link triggering in host's application
Corresponding small routine starting, etc..
In 202, confirm the file packet for having the small routine in terminal device with the presence or absence of host's application memory, if so,
Execute 203;Otherwise, 204 are executed.
Since small routine is not necessarily to installation, the file packet of small routine involved in the embodiment of the present invention in host's application
Not installation kit, but include small routine file required for starting small routine and operation small routine, it may include such as: source
File, compressed code, resource file etc..
In 203, starts the small routine using the file packet of the small routine, terminate process.
If having there is host's application memory to have the file packet of the small routine in terminal device, repeated downloads are not necessarily to,
Directly start small routine using the file packet of stored small routine.
In 204, is downloaded from server end and store the file packet of the small routine to start the small routine, which is set
Other hosts of the storage location of the file packet of sequence are using readable.
If being needed under server end in terminal device there is no the file packet that host's application memory has the small routine
It carries, and stores the file packet of the small routine.In order to which the file packet of the small routine of downloading can also be used by other hosts application,
Other than this host is using the storage location of the readable small routine packet, the storage location is also readable to other host's applications.
In embodiments of the present invention using the file packet of the small routine of host's Application share storage in same terminal device
Mode, wherein sharing mode can be used but is not limited to following several:
First way: the small routine file packet of downloading is stored under the privately owned catalogue of this host application by host's application,
It is also readable to other host's applications that the privately owned catalogue is set.Meanwhile host's application will store in the situation of file packet of small routine
Report to corresponding server end, the server end of each host's application will do it the situation of the file packet of host's application memory small routine
It is synchronous, so that other hosts application can get each host's application memory in same terminal device from corresponding server end
The situation of the file packet of small routine.
That is, host applies the privately owned mesh that small routine file packet is stored in this host application in first way
Under record, the situation of each host's application memory small routine file packet is synchronous in server end and obtains from server end.
The second way: the small routine file packet of downloading is stored under the privately owned catalogue of this host application by host's application,
It is also readable to other host's applications that the privately owned catalogue is set.Meanwhile host's application will store the situation note of the file packet of small routine
Record the shared data bank in terminal device.Each host's application can know depositing for small routine file packet from shared data bank
Storage situation.
The third mode: the shared storage that the small routine file packet of downloading is stored in terminal device by host's application is empty
Between, each host applies the starting for sharing memory space reading small routine file packet from this to carry out small routine in terminal device.
Above-mentioned three kinds of modes are described in detail respectively below in conjunction with specific embodiment.In addition, it is necessary to explanation,
One kind is it is desired that all hosts application is all made of identical small routine standard.But often in a practical situation, some places
Main application is using identical small routine standard, but other hosts application then uses other small routine standards.It so can be with
Host's application using identical small routine standard is known as a host alliance.It is answered for each host for belonging to same host alliance
By the way of sharing small routine file packet provided by the embodiment of the present invention.Which host's application to belong to same host about
Alliance then can be in the unified configuration of server end, and then each host applies obtains from server end.In the following embodiments
It is described in the way of each host's Application share small routine file packet of same host alliance.In addition, joining for host
For all hosts application of alliance, the file packet of all small routines is all made of unified naming mechanism, will pass through small routine
File packet name can know its corresponding small routine.
Embodiment one,
Fig. 3 is the method flow diagram that provides of the embodiment of the present invention one, in the present embodiment to the first above-mentioned implementation into
Row description.Assuming that user is intended in host using starting small routine c in 1, as shown in figure 3, the method executed using 1 by host can be with
Including following procedure:
In 301, when host is using 1 starting, the information of host alliance is synchronized from server end and is stored in host using 1
Local database.
Host on startup, can send the synchronization request of host alliance, corresponding server using 1 to corresponding server end
The information for holding each host for returning to host alliance using 1 to the host to apply, such as packet name.Then host can determine using 1
Host's application message of the installed host alliance of this terminal device.
When host using 1 starting when, can to place terminal device, locally mounted application program is scanned, then into
One step utilizes the information for the host alliance being synchronized to from server end, it will be able to determine the installed host of this terminal device
The information that these hosts apply can be stored in the database that this host applies with tabular form by host's application message of alliance
In.
For example, it is assumed that the information for the host alliance that server end issues includes: that host applies 1, host using 2, place
Main application 3, host apply 4 ....Host has found that this installing terminal equipment has host using 1 after scanning this terminal device using 1
2 are applied with host, then host can be stored in host using 1 using 2 information using 1 and host using 1 by host
In the database on ground.
In 302, after host is using 1 starting, each place in same host alliance is synchronized in this terminal device from server end
The situation of main application memory small routine file packet, and host is stored in using in 1 local database.
I.e. host applies 1 after actuation, and host's application of host alliance in this terminal device can be obtained from server end
It is all stored with which small routine file packet, such as includes packet name, version number etc..
Example in connecting, it is assumed that host obtains host in this terminal device from server end using 1 and applies 1 to be stored with small routine
A and small routine b, host are stored with small routine b and small routine c using 2, then these information are stored in host using 1 local
In database.
In 303, after getting host using the event of small routine c starting in 1, judge that host applies 1 privately owned catalogue
Under whether be stored with the file packet of small routine c, if so, executing 304;Otherwise 305 are executed.
In 304, start small routine c using the file packet of the small routine c stored under 1 privately owned catalogue using host, terminate
This Booting sequence.
In 305, inquiry host using 1 local database, determine same host alliance other hosts application whether
It is stored with the file packet of small routine c, if so, executing 306;Otherwise, 307 are executed.
In this step, on the one hand determine whether other hosts application of same host alliance is stored with the text of small routine c
Part packet, on the other hand determines whether the file packet of the small routine c of storage meets the release requirement that host applies 1, and two aspects are full
In the case where foot, 306 are executed, otherwise executes 307.If usual host is less than or equal to other hosts using the version of 1 demand
The version of the small routine c of application memory, then it is assumed that meet release requirement.
In 306, host using 1 from other hosts apply privately owned catalogue under read small routine c file packet, and to
Start small routine c in host is using 1, terminates this Booting sequence.
If host answers using 1 from host such as through inquiry host using the file packet for being stored with small routine c in 2
Start small routine c with the file packet of small routine c is read under 2 privately owned catalogue.
In 307, host downloads the file packet of small routine c using 1 from corresponding server end, is stored in host using 1
Privately owned catalogue under, and the permission that the privately owned catalogue is arranged is each host of host alliance using readable.
As a preferred embodiment, the safety in order to guarantee content under privately owned catalogue, can be only arranged privately owned
The permission of catalogue is each host of host alliance using readable not writeable.
In 308, host starts small routine c, and the file packet that will store small routine c using the file packet of downloading using 1
Situation report to server end.
In the present embodiment, process as shown in Figure 4 can be executed for server end, comprising:
In 401, the situation of the file packet for host's application memory small routine that corresponding host's application reports is received.
When host's application reports the situation of the file packet of storage small routine, it can be applied with carried terminal device identification, host
The information such as mark, small routine mark, small routine version number.After these information of received server-side, in server end local data
Library carries out corresponding maintenance.
For example, maintenance " Terminal Equipment Identifier-host's application identities-small routine mark-small routine version number " this relationship
?.
In 402, the file packet of other host's application memory small routines is synchronized from the server end that other hosts apply
Situation.
Above-mentioned 401 and 402 might not execute in the order described above, and synchronizing in step 402 can be periodically,
It can be and triggered based on event.
The server end of each host's application can open mutually the interface for synchronizing, server for host alliance
The situation of the file packet of each host's application memory small routine stored in local data base can be synchronized in host alliance by end
Other server ends.
In 403, the situation of the file packet of host's application memory small routine each in same terminal device is integrated.
Server end local data base storage situation with from other server ends it is synchronous come situation be such as " terminal
The form of device identification-host's application identities-small routine mark-small routine version number ", can be by same terminal device mark
Information under knowing merges and duplicate removal processing, to obtain each host's application memory small routine under same Terminal Equipment Identifier
The situation of file packet.
In 404, each host's application memory little Cheng in terminal device where the host applies is synchronized to corresponding host's application
The situation of the file packet of sequence, so that corresponding host's application starting small routine uses.
The Terminal Equipment Identifier of host's application can be obtained in such as Fig. 3 under the situation of step 302, and be issued to it
The situation of the file packet of each host's application memory small routine under the Terminal Equipment Identifier.
Embodiment two,
Fig. 5 is method flow diagram provided by Embodiment 2 of the present invention, in the present embodiment to above-mentioned second of implementation into
Row description.Assuming that user is intended in host using starting small routine c in 1, as shown in figure 5, the method executed using 1 by host can be with
Including following procedure:
In 501, the event that host applies small routine c starting in 1 is obtained.
In 502, host is judged using the file packet for whether being stored with small routine c under 1 privately owned catalogue, if so, holding
Row 503;Otherwise 504 are executed.
In 503, starts small routine c using the file packet of the small routine c stored under 1 privately owned catalogue using host, terminate
This Booting sequence.
In 504, the shared data bank of terminal device is inquired, determines whether other hosts application of same host alliance deposits
The file packet of small routine c is contained, if so, executing 505;Otherwise, 506 are executed.
In embodiments of the present invention, a shared data bank can be set in terminal device, and the shared data bank is to host
All open access limits of host's application in alliance.Safeguarding in shared data bank has in this terminal device under the host alliance
The situation of the file packet of each host's application memory small routine, for example including packet name and version number.
In this step, whether same other hosts application on the one hand determining same host alliance is stored with small routine c
File packet, on the other hand determine storage small routine c file packet whether meet host apply 1 release requirement, two aspect
In the case where being all satisfied, 505 are executed, otherwise executes 506.If usual host is less than or equal to other using the version of 1 demand
The version of the small routine c of host's application memory, then it is assumed that meet release requirement.
In 505, host using 1 from other hosts apply privately owned catalogue under read small routine c file packet, and to
Start small routine c in host is using 1, terminates this Booting sequence.
If host answers using 1 from host such as through inquiry host using the file packet for being stored with small routine c in 2
Start small routine c with the file packet of small routine c is read under 2 privately owned catalogue.
In 506, host downloads the file packet of small routine c using 1 from corresponding server end, is stored in host using 1
Privately owned catalogue under, and the permission that the privately owned catalogue is arranged is each host of host alliance using readable.
As a preferred embodiment, the safety in order to guarantee content under privately owned catalogue, can be only arranged privately owned
The permission of catalogue is each host of host alliance using readable not writeable.
In 507, host starts small routine c, and the file packet that will store small routine c using the file packet of downloading using 1
Situation record to shared data bank.
Embodiment three,
Fig. 6 is the method flow diagram that provides of the embodiment of the present invention three, in the present embodiment to the third above-mentioned implementation into
Row description.Assuming that user is intended to start small routine c in host is using 1, as shown in fig. 6, this method may include following procedure:
In 601, host obtains the event that small routine c starts using 1.
In 602, host judges whether the shared memory space of terminal device is stored with the file packet of small routine c using 1,
If so, executing 603;Otherwise 604 are executed.
In the present embodiment, shared memory space is set in terminal device, and the shared memory space is in host alliance
Each open access limit of host's application.The file packet of the small routine of downloading is stored in this and is total to by host's application in host alliance
Memory space is enjoyed to share within the scope of host alliance.
In this step, same on the one hand to determine whether shared memory space is stored with the file packet of small routine c, another party
Face determines whether the file packet of the small routine c of storage meets the release requirement that host applies 1, in the case that two aspects are all satisfied,
603 are executed, otherwise executes 604.If usual host is using the version of 1 demand less than or equal to stored small routine c's
Version, then it is assumed that meet release requirement.
In 603, host reads the file packet of small routine c using 1 from shared memory space, starts small routine c, terminates this
Booting sequence.
In 604, host downloads the file packet of small routine c using 1 from corresponding server end, is stored in terminal device
Shared memory space.
It is for host using 1 because version needs to download the file packet of the more highest version of small routine c, then empty for shared storage
Between in the already existing file packet compared with lowest version can retain, can also delete.
The present invention is not limited thereto for the form of above-mentioned shared memory space, such as can use SDCard, can also adopt
With the shared memory space of other forms.
In 605, host starts small routine c using the file packet of downloading using 1.
Fig. 7 shows the block diagram for being suitable for the exemplary computer system 012 for being used to realize embodiment of the present invention.Fig. 7 is aobvious
The computer system 012 shown is only an example, should not function to the embodiment of the present invention and use scope bring any limit
System.
As shown in fig. 7, computer system 012 is showed in the form of universal computing device.The component of computer system 012 can
To include but is not limited to: one or more processor or processing unit 016, system storage 028 connect not homologous ray group
The bus 018 of part (including system storage 028 and processing unit 016).
Bus 018 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer system 012 typically comprises a variety of computer system readable media.These media can be it is any can
The usable medium accessed by computer system 012, including volatile and non-volatile media, moveable and immovable Jie
Matter.
System storage 028 may include the computer system readable media of form of volatile memory, such as deposit at random
Access to memory (RAM) 030 and/or cache memory 032.Computer system 012 may further include it is other it is removable/
Immovable, volatile/non-volatile computer system storage medium.Only as an example, storage system 034 can be used for reading
Write immovable, non-volatile magnetic media (Fig. 7 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 7,
The disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided, and non-easy to moving
The CD drive that the property lost CD (such as CD-ROM, DVD-ROM or other optical mediums) is read and write.In these cases, each
Driver can be connected by one or more data media interfaces with bus 018.Memory 028 may include at least one
Program product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform this
Invent the function of each embodiment.
Program/utility 040 with one group of (at least one) program module 042, can store in such as memory
In 028, such program module 042 includes --- but being not limited to --- operating system, one or more application program, other
It may include the realization of network environment in program module and program data, each of these examples or certain combination.Journey
Sequence module 042 usually executes function and/or method in embodiment described in the invention.
Computer system 012 can also be with one or more external equipments 014 (such as keyboard, sensing equipment, display
024 etc.) it communicates, in the present invention, computer system 012 is communicated with external radar equipment, can also be with one or more
Enable a user to the equipment interacted with the computer system 012 communication, and/or with enable the computer system 012 and one
Or a number of other any equipment (such as network interface card, modem etc.) communications for calculating equipment and being communicated.This communication can
To be carried out by input/output (I/O) interface 022.Also, computer system 012 can also pass through network adapter 020 and one
A or multiple networks (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.Such as figure
Shown, network adapter 020 is communicated by bus 018 with other modules of computer system 012.Although should be understood that in Fig. 7
It is not shown, other hardware and/or software module can be used in conjunction with computer system 012, including but not limited to: microcode is set
Standby driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system
System etc..
Processing unit 016 by the program that is stored in system storage 028 of operation, thereby executing various function application with
And data processing, such as realize method flow provided by the embodiment of the present invention.
Above-mentioned computer program can be set in computer storage medium, i.e., the computer storage medium is encoded with
Computer program, the program by one or more computers when being executed, so that one or more computers execute in the present invention
State method flow shown in embodiment and/or device operation.For example, it is real to execute the present invention by said one or multiple processors
Apply method flow provided by example.
With time, the development of technology, medium meaning is more and more extensive, and the route of transmission of computer program is no longer limited by
Tangible medium, can also be directly from network downloading etc..It can be using any combination of one or more computer-readable media.
Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer-readable storage medium
Matter for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or
Any above combination of person.The more specific example (non exhaustive list) of computer readable storage medium includes: with one
Or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM),
Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light
Memory device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer readable storage medium can
With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
Person is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.In
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or
Wide area network (WAN) is connected to subscriber computer, or, it may be connected to outer computer (such as provided using Internet service
Quotient is connected by internet).
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (15)
1. a kind of method for starting small routine, by host's application execution of terminal device, which is characterized in that this method comprises:
Get the event of triggering small routine starting;
Confirm the file packet for having the small routine in the terminal device with the presence or absence of host's application memory;
If it is, the file packet using the small routine starts the small routine;
Otherwise, it is downloaded from server end and stores the file packet of the small routine to start the small routine, the little Cheng is set
Other host's applications of the storage location of the file packet of sequence are also readable.
2. being deposited the method according to claim 1, wherein confirming in the terminal device with the presence or absence of host's application
Contain the file packet of the small routine, comprising: confirm in the terminal device and belong to same host alliance with this host application
Each host's application, judges whether each host's application determined is stored with the file packet of the small routine;
It is also readable that the storage location of the file packet of the small routine other host's applications are set, comprising: the small routine is set
The storage location of file packet is for belonging to each host of same host alliance with this host application using readable;
Wherein, each host applies and uses identical small routine standard in same host alliance.
3. according to the method described in claim 2, it is characterized in that, this method further include:
The information applied from the synchronous each host for belonging to same host alliance with this host application of server end, and determine the end
Host's application message of the installed host alliance of end equipment.
4. being deposited the method according to claim 1, wherein confirming in the terminal device with the presence or absence of host's application
Contain the file packet of the small routine, comprising:
Judge there is the file packet of the small routine and the text of the small routine with the presence or absence of host's application memory in the terminal device
Part packet meets the release requirement of this host application.
5. the method according to claim 1, wherein being downloaded from server end described and storing the small routine
Packet after, this method further include:
The situation of the file packet of this host application memory small routine is reported into server end, so as to other of the terminal device
Host applies to be obtained from server end.
6. according to the method described in claim 5, it is characterized in that, this method further include:
After host's application starting, the file packet of each host's application memory small routine in the terminal device is obtained from server end
Situation, and it is stored in the private data library of this host application;
Inquire the private data library with execute in the confirmation terminal device with the presence or absence of host's application memory have it is described
The step of file packet of small routine.
7. the method according to claim 1, wherein being downloaded from server end described and storing the small routine
Packet after, this method further include:
The situation of the file packet of small routine described in this host application memory is synchronized to the shared data bank in the terminal device,
It is obtained so that other hosts of the terminal device apply from the shared data bank.
8. the method according to claim 5 or 7, which is characterized in that the storage location of the file packet of the small routine is this
Under the privately owned catalogue of host's application.
9. according to the method described in claim 8, being deposited it is characterized in that, confirming in the terminal device with the presence or absence of host's application
Contain the file packet of the small routine, comprising:
First confirm the file packet that whether there is the small routine under the privately owned catalogue of this host application;
If it does not, judging that the terminal device has the file of the small routine with the presence or absence of other host's application memories again
Packet, if it is, reading the little Cheng under the privately owned catalogue that other hosts for the file packet for being stored with the small routine apply
The file packet of sequence.
10. being applied the method according to claim 1, wherein confirming in the terminal device with the presence or absence of host
It is stored with the file packet of the small routine, comprising: it is described small to judge whether the shared memory space of the terminal device is stored with
The file packet of program;
The file packet downloaded from server end and store the small routine, comprising: download the small routine from server end
File packet and be stored in the shared memory space of the terminal device.
11. a kind of method for starting small routine is executed by host using corresponding server end, which is characterized in that this method packet
It includes:
Receive the situation of the file packet for host's application memory small routine that corresponding host's application reports;And from other places
The server end of main application synchronizes the situation of the file packet of other host's application memory small routines;
The situation of the file packet of host's application memory small routine each in same terminal device is integrated;
The file packet of each host's application memory small routine in terminal device where the host applies is synchronized to corresponding host's application
Situation, so that corresponding host's application starting small routine uses.
12. according to the method for claim 11, which is characterized in that this method further include:
The information applied to the synchronous each host for belonging to same host alliance with corresponding host application of corresponding host's application, wherein
Each host, which applies, in same host alliance uses identical small routine standard.
13. according to the method for claim 11, which is characterized in that described to host's application memory each in same terminal device
The situation of the file packet of small routine carries out integration
The situation of the file packet for host's application memory small routine that book server end is stored and the service applied from other hosts
The situation that device end synchronizes the file packet of each host's application memory small routine come carries out the merging for same terminal device and goes
Weight.
14. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now method as described in any in claim 1-13.
15. a kind of storage medium comprising computer executable instructions, the computer executable instructions are by computer disposal
For executing the method as described in any in claim 1-13 when device executes.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910676162.XA CN110389935B (en) | 2019-07-25 | 2019-07-25 | Method, equipment and computer storage medium for starting small program |
PCT/CN2020/104097 WO2021013242A1 (en) | 2019-07-25 | 2020-07-24 | Method for starting mini program, device and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910676162.XA CN110389935B (en) | 2019-07-25 | 2019-07-25 | Method, equipment and computer storage medium for starting small program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110389935A true CN110389935A (en) | 2019-10-29 |
CN110389935B CN110389935B (en) | 2021-04-16 |
Family
ID=68287376
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910676162.XA Active CN110389935B (en) | 2019-07-25 | 2019-07-25 | Method, equipment and computer storage medium for starting small program |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110389935B (en) |
WO (1) | WO2021013242A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110908738A (en) * | 2019-11-29 | 2020-03-24 | 百度在线网络技术(北京)有限公司 | Method and device for running small program |
CN111767069A (en) * | 2020-06-30 | 2020-10-13 | 北京百度网讯科技有限公司 | Applet processing method, server, device and storage medium |
WO2021013242A1 (en) * | 2019-07-25 | 2021-01-28 | 上海连尚网络科技有限公司 | Method for starting mini program, device and computer storage medium |
CN113220367A (en) * | 2021-05-12 | 2021-08-06 | 北京百度网讯科技有限公司 | Applet running method and device, electronic equipment and storage medium |
WO2021197140A1 (en) * | 2020-04-03 | 2021-10-07 | 支付宝(杭州)信息技术有限公司 | Generation of applet file package |
WO2021223544A1 (en) * | 2020-05-08 | 2021-11-11 | 腾讯科技(深圳)有限公司 | Application starting method and related device |
CN115443460A (en) * | 2020-04-10 | 2022-12-06 | 苹果公司 | Registered applications for electronic devices |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595220A (en) * | 2018-04-25 | 2018-09-28 | 上海掌门科技有限公司 | Processing method, equipment and the computer readable storage medium of application component |
CN109710333A (en) * | 2018-12-28 | 2019-05-03 | 上海掌门科技有限公司 | Processing method, equipment and the computer readable storage medium of boarding application |
CN109933442A (en) * | 2019-03-04 | 2019-06-25 | 上海连尚网络科技有限公司 | The means of communication, equipment and computer storage medium between small routine platform |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7484095B2 (en) * | 2003-01-16 | 2009-01-27 | Sun Microsystems, Inc. | System for communicating program data between a first device and a second device |
CN101729671A (en) * | 2009-12-31 | 2010-06-09 | 宇龙计算机通信科技(深圳)有限公司 | Method for managing backup file, terminal thereof and system thereof |
CN104868939A (en) * | 2015-06-04 | 2015-08-26 | 广东欧珀移动通信有限公司 | Bluetooth-based synchronized method and device between terminals |
CN110389935B (en) * | 2019-07-25 | 2021-04-16 | 上海连尚网络科技有限公司 | Method, equipment and computer storage medium for starting small program |
-
2019
- 2019-07-25 CN CN201910676162.XA patent/CN110389935B/en active Active
-
2020
- 2020-07-24 WO PCT/CN2020/104097 patent/WO2021013242A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595220A (en) * | 2018-04-25 | 2018-09-28 | 上海掌门科技有限公司 | Processing method, equipment and the computer readable storage medium of application component |
CN109710333A (en) * | 2018-12-28 | 2019-05-03 | 上海掌门科技有限公司 | Processing method, equipment and the computer readable storage medium of boarding application |
CN109933442A (en) * | 2019-03-04 | 2019-06-25 | 上海连尚网络科技有限公司 | The means of communication, equipment and computer storage medium between small routine platform |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021013242A1 (en) * | 2019-07-25 | 2021-01-28 | 上海连尚网络科技有限公司 | Method for starting mini program, device and computer storage medium |
CN110908738A (en) * | 2019-11-29 | 2020-03-24 | 百度在线网络技术(北京)有限公司 | Method and device for running small program |
US11550599B2 (en) | 2019-11-29 | 2023-01-10 | Baidu Online Network Technology (Beijing) Co., Ltd. | Method and apparatus for running applet |
WO2021197140A1 (en) * | 2020-04-03 | 2021-10-07 | 支付宝(杭州)信息技术有限公司 | Generation of applet file package |
CN115443460A (en) * | 2020-04-10 | 2022-12-06 | 苹果公司 | Registered applications for electronic devices |
WO2021223544A1 (en) * | 2020-05-08 | 2021-11-11 | 腾讯科技(深圳)有限公司 | Application starting method and related device |
US11941411B2 (en) | 2020-05-08 | 2024-03-26 | Tencent Technology (Shenzhen) Company Limited | Application starting method and related device |
CN111767069A (en) * | 2020-06-30 | 2020-10-13 | 北京百度网讯科技有限公司 | Applet processing method, server, device and storage medium |
CN111767069B (en) * | 2020-06-30 | 2024-03-15 | 北京百度网讯科技有限公司 | Applet processing method, server, device and storage medium |
CN113220367A (en) * | 2021-05-12 | 2021-08-06 | 北京百度网讯科技有限公司 | Applet running method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2021013242A1 (en) | 2021-01-28 |
CN110389935B (en) | 2021-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110389935A (en) | A kind of method, equipment and computer storage medium starting small routine | |
CN110389936A (en) | A kind of method, equipment and computer storage medium starting small routine | |
CN110377369A (en) | A kind of method, equipment and computer storage medium running small routine | |
US20220214932A1 (en) | Methods, devices and computer storage media for inter-mini program platform communication | |
CN110113407A (en) | Small routine state synchronization method, equipment and computer storage medium | |
CN101304360A (en) | System and method for virtualization of user digital terminal | |
KR20130012929A (en) | Method and system for efficient download of data package | |
CN112398936B (en) | Kubernetes-based multi-network card container implementation method and system | |
CN110505162A (en) | Method for message transmission, device and electronic equipment | |
CN112202744B (en) | Multi-system data communication method and device | |
CN112835632B (en) | Method and equipment for calling end capability and computer storage medium | |
RU2431235C2 (en) | Method of identifying devices in working environments of mobile communication and desktop computers | |
CN114385091A (en) | Method and device for realizing network disk drive character, network disk and storage medium | |
CN105453126A (en) | Application sharing service method and apparatus applied thereto | |
CN102375894A (en) | Method for managing different types of file systems | |
CN107682573B (en) | High-concurrency outbound method, system, equipment and storage medium | |
JP2022069420A (en) | Computer implementation method, computer system, and computer program product (managing failures in edge computing environments) | |
CN108111374B (en) | Method, apparatus, equipment and the computer storage medium of synchronizer list | |
CN104717249B (en) | Method, proxy server and the system of remote operation application issue | |
US8826026B2 (en) | Systems and methods for tracking electronic files in computer networks using electronic signatures | |
CN110798358B (en) | Distributed service identification method and device, computer readable medium and electronic equipment | |
CN109981778B (en) | Method, device, equipment and storage medium for realizing service of content distribution network | |
CN111045928A (en) | Interface data testing method, device, terminal and storage medium | |
CN110377328A (en) | A kind of data capture method, device, equipment and storage medium | |
CN116155978A (en) | Multi-registry adaptation method, device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |