CN109151196B - Method and system for prefetching data in mobile internet based on current position - Google Patents

Method and system for prefetching data in mobile internet based on current position Download PDF

Info

Publication number
CN109151196B
CN109151196B CN201810943812.8A CN201810943812A CN109151196B CN 109151196 B CN109151196 B CN 109151196B CN 201810943812 A CN201810943812 A CN 201810943812A CN 109151196 B CN109151196 B CN 109151196B
Authority
CN
China
Prior art keywords
user application
mobile terminal
target mobile
current
user
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.)
Expired - Fee Related
Application number
CN201810943812.8A
Other languages
Chinese (zh)
Other versions
CN109151196A (en
Inventor
王梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lancet Technology Co Ltd
Original Assignee
Lancet 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 Lancet Technology Co Ltd filed Critical Lancet Technology Co Ltd
Priority to CN201810943812.8A priority Critical patent/CN109151196B/en
Publication of CN109151196A publication Critical patent/CN109151196A/en
Application granted granted Critical
Publication of CN109151196B publication Critical patent/CN109151196B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method and a system for prefetching data in a mobile internet based on a current position, wherein the method comprises the following steps: acquiring running statistical information of each user application in a plurality of user applications in a target mobile terminal; determining the operation probability of each user application at the current position according to the operation statistical information of each user application and the current position of the target mobile terminal; calculating an adjusted operation probability of each user application at the current location based on the adjustment coefficient of each user application and the operation probability at the current location, and sorting the plurality of user applications in descending order of the operation probability based on the adjusted operation probability of each user application at the current location to generate a sorted list; setting a storage level for each pre-fetching user application in at least one pre-fetching user application according to the ordered list; and pre-fetching data files associated with each pre-fetching user application from the second memory according to the storage level of the pre-fetching user application.

Description

Method and system for prefetching data in mobile internet based on current position
Technical Field
The invention relates to the field of internet of things and the field of internet, in particular to a method and a system for prefetching data in a mobile internet based on a current position in the field of mobile internet.
Background
Currently, as the internet of things, especially the mobile internet, develops faster and faster, and the use of mobile terminals is more and more popular, people usually use mobile terminals to install a large number of applications and store a large amount of personal data. Since the amount of data increases more rapidly than the storage space increases, it is increasingly important to efficiently manage data files in a mobile terminal. In some cases, for a user with a high regularity of usage, the user will typically use a common application of the plurality of user applications when the mobile terminal is within a specific location. In the prior art, no technology for prefetching data according to the regularity exists.
Disclosure of Invention
According to an aspect of the present invention, there is provided a method for prefetching data in a mobile internet based on a current location, the method comprising:
acquiring an operation statistical file associated with a target mobile terminal in a mobile internet, and analyzing the operation statistical file to acquire operation statistical information of each user application in a plurality of user applications in the target mobile terminal;
acquiring a moving track of the target mobile terminal within a preset time period by using a positioning component of the target mobile terminal, determining the current position of the target mobile terminal according to the moving track, and determining the operation probability of each user application at the current position according to the operation statistical information of each user application and the current position of the target mobile terminal;
acquiring a current state of the target mobile terminal by using a sensor assembly of the target mobile terminal, determining an adjustment coefficient for each user application according to the current state, calculating an adjusted operation probability of each user application at the current position based on the adjustment coefficient of each user application and the operation probability at the current position, and performing descending ordering of the operation probabilities on a plurality of user applications based on the adjusted operation probability of each user application at the current position to generate an ordered list;
determining at least one of the plurality of user applications that can be preloaded from the second memory into the first memory according to the ordered list, and setting a storage level for each of the at least one pre-fetching user application according to the ordered list, wherein the storage level comprises: a decrement storage stage, an increment storage stage, a quantitative storage stage and a compression storage stage;
allocating at least one dynamic memory unit for each pre-fetch user application of the decrement storage stage, allocating at least one dynamic memory unit for each pre-fetch user application of the compression storage stage, allocating one dynamic memory unit for each pre-fetch user application of the increment storage stage and allocating one dynamic memory unit for each pre-fetch user application of the quantitive storage stage;
setting a storage level for a dynamic storage unit allocated to each pre-fetching user application according to the storage level of each pre-fetching user application;
prefetching data from the second memory for a data file associated with each prefetched user application according to the storage level of the prefetched user application, comprising:
copying a plurality of data files associated with each pre-fetch user application of the reduced storage tier from the second memory to the dynamic storage unit of at least one reduced storage tier allocated for each pre-fetch user application of the reduced storage tier, setting a first time period for the dynamic storage unit of each reduced storage tier upon completion of the copying and starting timing, deleting a first predetermined number of data files in the dynamic storage unit of each reduced storage tier each time the first time period expires;
selecting at least one base data file among the plurality of data files associated with each pre-fetching user application of the incremental storage tier, copying the at least one base data file of each pre-fetching user application of the incremental storage tier from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier, setting a second time period and starting timing for the dynamic storage unit of the incremental storage tier upon completion of the copying, wherein a second predetermined number of data files among the plurality of data files associated with each pre-fetching user application of the incremental storage tier are copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier each time the second time period expires;
selecting at least one data file from the plurality of data files associated with each pre-fetch user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier and copying the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier; and
the method further includes compressing the plurality of data files associated with each pre-fetch user application of the compressed storage tier to generate a plurality of compressed data files, copying the plurality of compressed data files of each pre-fetch user application of the compressed storage tier from the second memory to a dynamic storage unit of at least one compressed storage tier allocated for each pre-fetch user application of the compressed storage tier.
The mobile internet comprises a plurality of mobile terminals, the mobile terminal which initiates a data pre-fetching request is determined as a target mobile terminal, and the number of user applications is more than 4.
The operation statistical file comprises a plurality of operation data tables, one operation data table is allocated to each user application in a plurality of user applications in the target mobile terminal, each operation data table comprises a plurality of operation data items, and the content of each operation data item is quintuple < application name, operation position, start time, end time and accumulated time length >.
The running data table allocated to each user application is used as running statistical information of each user application, and the running data table allocated to each user application is used for recording running position information of each user application in real time.
In the running statistics file, a predetermined number of running data items are saved for each user application, or a predetermined number of running data items within a natural day or a predetermined length of time (at least 10 days) are saved for each user application.
Wherein the predetermined number of natural days is 10 natural days, 20 natural days, or 30 natural days, and wherein the predetermined time length is 240 hours, 480 hours, or 720 hours.
Wherein the predetermined period of time is a period of time starting at the current time as an end point and at a time 30 seconds, 60 seconds, or 90 seconds before; or the predetermined period of time is a period of time starting from the current time and having a length of 30 seconds, 60 seconds, or 90 seconds.
The movement track comprises a plurality of position points acquired by a positioning component of the target mobile terminal within a preset time period; wherein the positioning assembly acquires a position point every 1 second or 2 seconds.
Determining the current position of the target mobile terminal according to the movement track comprises:
when all the plurality of position points included in the movement track are in a single place, determining the current position of the target mobile terminal by the single place.
And determining the place name of a current place corresponding to the current position of the target mobile terminal, and determining a current area range associated with the current place based on the place name of the current place, thereby determining the current area range associated with the current position.
Determining the operation probability of each user application at the current position according to the operation statistical information of each user application and the current position of the target mobile terminal comprises:
selecting a statistical date interval for determining an operational probability, the statistical date interval comprising at least 10 natural days;
analyzing each data item in a plurality of data items in the running statistical information of each user application to determine the effective times Ci of running of each user application in the current region range in a statistical date interval, wherein i is more than or equal to 1 and less than or equal to Na, Na is the number of user applications in the target mobile terminal, Na is a natural number and Na is more than 4;
calculating the total effective times S of all the user applications in the current region range based on the effective times Ci of each user application in the statistical date range and running in the current region range:
Figure BDA0001769709050000031
and calculating the operation probability Pi of each user application in the current area as Ci/S, and taking Pi as the operation probability of each user application at the current position.
Wherein, when the running time of the user application in the current area range exceeds 60 seconds, the running time is counted as one effective time.
Wherein determining the operation probability of each user application at the current position according to the operation statistical information of each user application and the current position of the target mobile terminal comprises:
selecting a statistical date interval for determining an operational probability, the statistical date interval comprising at least 10 natural days;
analyzing each data item in a plurality of data items in the running statistical information of each user application to determine the running time length ti of each user application in the current region range in the statistical date interval, wherein i is more than or equal to 1 and less than or equal to Na, Na is the number of user applications in the target mobile terminal, Na is a natural number and Na is more than 4;
based on the time length ti of each user application operating in the statistical date interval in the current region range, calculating the total time length T of all user applications operating in the current region range:
Figure BDA0001769709050000032
and calculating the operation probability Pi of each user application in the current area range, namely ti/T, and taking Pi as the operation probability of each user application at the current position.
Wherein the acquiring the current state of the target mobile terminal by using the sensor component of the target mobile terminal comprises:
and acquiring that the current state of the target mobile terminal is a strong light state, a soft light state or a weak light state by using a brightness sensor in a sensor assembly of the target mobile terminal.
Wherein determining an adjustment factor for each user application according to the current state comprises: in case that the current state of the target mobile terminal is a bright light state, the adjustment coefficient applied by each user is less than 1, for example, 0.8; in the case that the current state of the target mobile terminal is a soft light state, the adjustment coefficient applied by each user is greater than 1, for example, 1.2; in case that the current state of the target mobile terminal is a low light state, the adjustment coefficient applied by each user is less than 1, for example, 0.9.
Wherein the acquiring the current state of the target mobile terminal by using the sensor component of the target mobile terminal comprises:
and acquiring the current state of the target mobile terminal by using an acceleration sensor in a sensor assembly of the target mobile terminal, wherein the current state is that a display screen is upwards, the display screen is downwards, and the current state is in horizontal movement or vertical movement.
Wherein determining an adjustment factor for each user application according to the current state comprises:
under the condition that the current state of the target mobile terminal is that the display screen faces upwards, the adjusting coefficient applied by each user is larger than 1, for example 1.2; in the case that the current state of the target mobile terminal is the display screen facing down, the adjustment coefficient applied by each user is less than 1, for example, 0.3; in the case that the current state of the target mobile terminal is horizontal movement, the adjustment coefficient applied by each user is less than 1, for example, 0.9; in case that the current state of the target mobile terminal is a vertical direction movement, the adjustment coefficient applied by each user is less than 1, for example, 0.7.
Wherein the acquiring the current state of the target mobile terminal by using the sensor component of the target mobile terminal comprises:
and acquiring that the current state of the target mobile terminal is a hot state, a high-temperature state, a proper state, a low-temperature state or a cold state by using an ambient temperature sensor in a sensor assembly of the target mobile terminal.
Wherein determining an adjustment factor for each user application according to the current state comprises:
in the case that the current state of the target mobile terminal is a hot state, the adjustment coefficient applied by each user is less than 1, for example, 0.8; under the condition that the current state of the target mobile terminal is a high-temperature state, the adjustment coefficient applied by each user is less than 1, such as 0.9; in the case that the current state of the target mobile terminal is a suitable state, the adjustment coefficient applied by each user is greater than 1, for example, 1.2; in the case that the current state of the target mobile terminal is a low temperature state, the adjustment coefficient applied by each user is less than 1, for example, 0.9; in the case where the current state of the target mobile terminal is a cold state, the adjustment coefficient applied by each user is less than 1, for example, 0.6; wherein the hot state is that the air temperature T is more than or equal to 32 ℃; the high temperature state is 32 ℃ and the temperature T is more than or equal to 25 ℃, the suitable state is 25 ℃ and the temperature T is more than or equal to 18 ℃, the low temperature state is 18 ℃ and the temperature T is more than or equal to 8 ℃, or the cold state is 8 ℃ and the temperature T.
Calculating an adjusted operational probability of each user application at the current location based on the adjustment coefficient of each user application and the operational probability at the current location comprises:
and taking the product of the adjusting coefficient of each user application and the running probability at the current position as the adjusted running probability of each user application at the current position.
Before obtaining the operation statistical file associated with the target mobile terminal in the mobile internet, the method further comprises the following steps:
responding to a data prefetching request initiated by a user and used for prefetching data aiming at a data file, associated with a user application, of a target mobile terminal in a mobile internet, and acquiring a dynamic configuration file associated with the data prefetching;
creating a dynamic index area in a first memory of the target mobile terminal, and creating a plurality of dynamic storage units for storing data files in the first memory according to the dynamic configuration file, wherein the storage capacity of each of the plurality of dynamic storage units is determined according to the dynamic configuration file; and
and generating a dynamic index table in the dynamic index area, wherein the dynamic index table comprises a plurality of index entries, and each index entry is used for recording the application identification, the starting address, the ending address, the storage capacity and the storage level of a corresponding dynamic storage unit in a plurality of dynamic storage units.
The first memory is a random access memory, and the second memory is a read-only memory.
The dynamic profile includes a start address and an end address of a storage area in the first memory for providing a plurality of dynamic storage units, and the dynamic profile further includes a storage capacity of each of the plurality of dynamic storage units.
The application identifier is an identifier of a user application to which the dynamic storage unit belongs, the starting address is a starting address of a storage space of the dynamic storage unit, the ending address is an ending address of the storage space of the dynamic storage unit, and the storage capacity is the storage capacity and the storage level of the storage space of the dynamic storage unit.
And updating the corresponding index entry in the dynamic index table according to the storage level set for the dynamic storage unit.
Wherein selecting at least one data file from the plurality of data files associated with each pre-fetch user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetch user application of the quantitative storage tier comprises:
grouping a plurality of data files associated with each pre-fetch user application of the quantitative storage tier according to a storage capacity of a dynamic storage unit of the quantitative storage tier allocated to each pre-fetch user application of the quantitative storage tier to generate a plurality of file groups, wherein each file group includes at least one data file, and setting different priorities for the plurality of file groups of each pre-fetch user application of the quantitative storage tier to constitute priority queues, regarding a file group positioned at a head of a queue in each priority queue as a current file group and copying at least one data file in the current file group from a second memory to a dynamic storage unit of the quantitative storage tier allocated to each pre-fetch user application of the quantitative storage tier and setting a third time period for each dynamic storage unit of the quantitative storage tier, whenever the third time period expires, using a next file group in the priority queues as the current file group in order of decreasing priority, until there is no next set of files;
determining a number of pre-fetch user applications associated with the quantitative storage tier based on the at least one data file selected from the plurality of data files;
wherein the size of each file group is smaller than the storage space of the dynamic storage unit of the corresponding quantitative storage tier.
Selecting at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
grouping a plurality of data files associated with each pre-fetch user application of the quantitative storage tier according to a storage capacity of a dynamic storage unit of the quantitative storage tier allocated for each pre-fetch user application of the quantitative storage tier to generate a plurality of file groups, wherein each file group includes at least one data file, randomly selecting one file group from the plurality of file groups as a current file group and copying at least one data file in the current file group from the second memory to the dynamic storage unit of the quantitative storage tier allocated for each pre-fetch user application of the quantitative storage tier and setting a third time period for each dynamic storage unit of the quantitative storage tier, randomly selecting a next file group from the plurality of file groups as the current file group whenever the third time period expires until there is no next file group;
determining a number of pre-fetch user applications associated with the quantitative storage tier based on the at least one data file selected from the plurality of data files;
wherein the size of each file group is smaller than the storage space of the dynamic storage unit of the corresponding quantitative storage tier.
After copying the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned to each pre-fetching user application of the quantitative storage tier, setting a third time period and whenever the third time period expires, re-selecting at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier assigned to each pre-fetching user application of the quantitative storage tier, copying the re-selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned to each pre-fetching user application of the quantitative storage tier.
Selecting at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
step 1, grouping a plurality of data files associated with each pre-fetching user application of the quantitative storage tier to generate N file groups according to the storage capacity of a dynamic storage unit of the quantitative storage tier allocated to each pre-fetching user application of the quantitative storage tier, wherein N is a natural number greater than 1 and each file group comprises at least one data file;
step 2, setting different sequence numbers for each file group in the N file groups, wherein the sequence numbers are from 1 to N;
step 3, taking the file group with the serial number i equal to 1 as the current file group, wherein N is more than or equal to i and is more than 0;
step 4, setting a third time period for each dynamic storage unit of the quantitative storage level;
step 5, copying at least one data file included in the current file group from the second memory to a dynamic storage unit of the quantitative storage level allocated to each pre-fetching user application of the quantitative storage level;
step 6, when the third time period expires, judging whether i is true or not, and if yes, ending; if not, taking the file group with the serial number i being i +1 as the current file group, and performing step 5;
wherein the size of each file group is smaller than the storage capacity of the dynamic storage unit of the fixed-amount storage tier.
Wherein determining from the ordered list a plurality of pre-fetch user applications of the plurality of user applications that can be pre-loaded from a second memory into a first memory comprises:
when the number of the user applications with the operation probability larger than the pre-fetching threshold value in the ordered list is larger than 0, determining the user applications with the operation probability larger than the pre-fetching threshold value in the ordered list as the pre-fetching user applications which can be pre-loaded into the first memory from the second memory so as to determine at least one pre-fetching user application;
when the number of user applications in the ordered list having an operating probability greater than the pre-fetch threshold is equal to 0, determining all user applications in the ordered list as pre-fetched user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetched user application.
Wherein setting a storage level for each of at least one pre-fetch user application according to the ordered list comprises: setting the storage level of the pre-fetching user application with the operation probability larger than the high probability threshold value in the ordered list as a decrement storage level; setting the storage level of the pre-fetching user application with the running probability less than or equal to the high probability threshold and greater than the medium probability threshold in the sorted list as an incremental storage level; setting the storage level of the pre-fetching user application with the running probability less than or equal to the middle probability threshold and greater than the low probability threshold in the sorted list as a quantitative storage level; and setting the storage level of the pre-fetching user application with the operation probability less than or equal to the low probability threshold value in the sorted list as a compression storage level.
Wherein the at least one dynamic storage unit allocated for the pre-fetch user application of each reduced storage tier is capable of holding all data files of the pre-fetch user application of the corresponding reduced storage tier, and the at least one dynamic storage unit allocated for the pre-fetch user application of each compressed storage tier is capable of holding all compressed data files of the pre-fetch user application of the corresponding compressed storage tier. Wherein the first time period is 30 seconds, the second time period is 60 seconds, and wherein the third time period is 90 seconds. Wherein the at least one base data file of each pre-fetching user application is at least one data file of the plurality of data files associated with each pre-fetching user application of the incremental storage tier that has a launch order above a priority threshold. Wherein the first predetermined number is 5 and the second predetermined number is 8.
According to another aspect of the present invention, there is provided a system for prefetching data in a mobile internet based on a current location, the system comprising:
the analysis device is used for acquiring an operation statistical file associated with a target mobile terminal in a mobile internet and analyzing the operation statistical file to acquire operation statistical information of each user application in a plurality of user applications in the target mobile terminal;
the probability determination device is used for acquiring a moving track of the target mobile terminal within a preset time period by using a positioning component of the target mobile terminal, determining the current position of the target mobile terminal according to the moving track, and determining the operation probability of each user application at the current position according to the operation statistical information of each user application and the current position of the target mobile terminal;
a sorting device, which acquires the current state of the target mobile terminal by using a sensor component of the target mobile terminal, determines an adjustment coefficient for each user application according to the current state, calculates the adjusted operation probability of each user application at the current position based on the adjustment coefficient of each user application and the operation probability at the current position, and sorts the operation probabilities of a plurality of user applications in a descending order based on the adjusted operation probability of each user application at the current position to generate a sorted list;
setting means for determining at least one pre-fetch user application of the plurality of user applications that can be pre-loaded from the second memory into the first memory according to the ordered list, and setting a storage level for each pre-fetch user application of the at least one pre-fetch user application according to the ordered list, wherein the storage level comprises: a decrement storage stage, an increment storage stage, a quantitative storage stage and a compression storage stage; setting a storage level for a dynamic storage unit allocated to each pre-fetching user application according to the storage level of each pre-fetching user application;
the allocation device allocates at least one dynamic storage unit for each pre-fetching user application of the decrement storage level, allocates at least one dynamic storage unit for each pre-fetching user application of the compression storage level, allocates one dynamic storage unit for each pre-fetching user application of the increment storage level and allocates one dynamic storage unit for each pre-fetching user application of the quantitative storage level;
prefetching means for prefetching data from the second memory for the data file associated with each prefetched user application according to the storage level of the prefetched user application, comprising:
copying a plurality of data files associated with each pre-fetch user application of the reduced storage tier from the second memory to the dynamic storage unit of at least one reduced storage tier allocated for each pre-fetch user application of the reduced storage tier, setting a first time period for the dynamic storage unit of each reduced storage tier upon completion of the copying and starting timing, deleting a first predetermined number of data files in the dynamic storage unit of each reduced storage tier each time the first time period expires;
selecting at least one base data file among the plurality of data files associated with each pre-fetching user application of the incremental storage tier, copying the at least one base data file of each pre-fetching user application of the incremental storage tier from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier, setting a second time period and starting timing for the dynamic storage unit of the incremental storage tier upon completion of the copying, wherein a second predetermined number of data files among the plurality of data files associated with each pre-fetching user application of the incremental storage tier are copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier each time the second time period expires;
selecting at least one data file from the plurality of data files associated with each pre-fetch user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier and copying the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier; and
the method further includes compressing the plurality of data files associated with each pre-fetch user application of the compressed storage tier to generate a plurality of compressed data files, copying the plurality of compressed data files of each pre-fetch user application of the compressed storage tier from the second memory to a dynamic storage unit of at least one compressed storage tier allocated for each pre-fetch user application of the compressed storage tier.
The mobile internet comprises a plurality of mobile terminals, the mobile terminal which initiates a data pre-fetching request is determined as a target mobile terminal, and the number of user applications is more than 4.
The operation statistical file comprises a plurality of operation data tables, one operation data table is allocated to each user application in a plurality of user applications in the target mobile terminal, each operation data table comprises a plurality of operation data items, and the content of each operation data item is quintuple < application name, operation position, start time, end time and accumulated time length >. The running data table allocated to each user application is used as running statistical information of each user application, and the running data table allocated to each user application is used for recording running position information of each user application in real time. In the running statistics file, a predetermined number of running data items are saved for each user application, or a predetermined number of running data items within a natural day or a predetermined length of time (at least 10 days) are saved for each user application. Wherein the predetermined number of natural days is 10 natural days, 20 natural days, or 30 natural days, and wherein the predetermined time length is 240 hours, 480 hours, or 720 hours.
Wherein the predetermined period of time is a period of time starting at the current time as an end point and at a time 30 seconds, 60 seconds, or 90 seconds before; or the predetermined period of time is a period of time starting from the current time and having a length of 30 seconds, 60 seconds, or 90 seconds.
The movement track comprises a plurality of position points acquired by a positioning component of the target mobile terminal within a preset time period; wherein the positioning assembly acquires a position point every 1 second or 2 seconds.
Determining the current position of the target mobile terminal according to the movement track comprises: when all the plurality of position points included in the movement track are in a single place, determining the current position of the target mobile terminal by the single place.
And determining the place name of a current place corresponding to the current position of the target mobile terminal, and determining a current area range associated with the current place based on the place name of the current place, thereby determining the current area range associated with the current position.
Wherein the determining, by the probability determining device, the operation probability of each user application at the current location according to the operation statistical information of each user application and the current location of the target mobile terminal comprises:
selecting a statistical date interval for determining an operational probability, the statistical date interval comprising at least 10 natural days;
analyzing each data item in a plurality of data items in the running statistical information of each user application to determine the effective times Ci of running of each user application in the current region range in a statistical date interval, wherein i is more than or equal to 1 and less than or equal to Na, Na is the number of user applications in the target mobile terminal, Na is a natural number and Na is more than 4;
calculating the total effective times S of all the user applications in the current region range based on the effective times Ci of each user application in the statistical date range and running in the current region range:
Figure BDA0001769709050000071
and calculating the operation probability Pi of each user application in the current area as Ci/S, and taking Pi as the operation probability of each user application at the current position.
Wherein, when the running time of the user application in the current area range exceeds 60 seconds, the running time is counted as one effective time.
Wherein the determining, by the probability determining device, the operation probability of each user application at the current location according to the operation statistical information of each user application and the current location of the target mobile terminal comprises:
selecting a statistical date interval for determining an operational probability, the statistical date interval comprising at least 10 natural days;
analyzing each data item in a plurality of data items in the running statistical information of each user application to determine the running time length ti of each user application in the current region range in the statistical date interval, wherein i is more than or equal to 1 and less than or equal to Na, Na is the number of user applications in the target mobile terminal, Na is a natural number and Na is more than 4;
based on the time length ti of each user application operating in the statistical date interval in the current region range, calculating the total time length T of all user applications operating in the current region range:
Figure BDA0001769709050000072
and calculating the operation probability Pi of each user application in the current area range, namely ti/T, and taking Pi as the operation probability of each user application at the current position.
The method for acquiring the current state of the target mobile terminal by the sequencing device by using the sensor component of the target mobile terminal comprises the following steps:
and acquiring that the current state of the target mobile terminal is a strong light state, a soft light state or a weak light state by using a brightness sensor in a sensor assembly of the target mobile terminal.
Wherein the determining, by the ranking device, an adjustment factor for each user application according to the current state comprises:
in case that the current state of the target mobile terminal is a bright light state, the adjustment coefficient applied by each user is less than 1, for example, 0.8; in the case that the current state of the target mobile terminal is a soft light state, the adjustment coefficient applied by each user is greater than 1, for example, 1.2; in case that the current state of the target mobile terminal is a low light state, the adjustment coefficient applied by each user is less than 1, for example, 0.9.
The method for acquiring the current state of the target mobile terminal by the sequencing device by using the sensor component of the target mobile terminal comprises the following steps: and acquiring the current state of the target mobile terminal by using an acceleration sensor in a sensor assembly of the target mobile terminal, wherein the current state is that a display screen is upwards, the display screen is downwards, and the current state is in horizontal movement or vertical movement.
Wherein the determining, by the ranking device, an adjustment factor for each user application according to the current state comprises:
under the condition that the current state of the target mobile terminal is that the display screen faces upwards, the adjusting coefficient applied by each user is larger than 1, for example 1.2; in the case that the current state of the target mobile terminal is the display screen facing down, the adjustment coefficient applied by each user is less than 1, for example, 0.3; in the case that the current state of the target mobile terminal is horizontal movement, the adjustment coefficient applied by each user is less than 1, for example, 0.9; in case that the current state of the target mobile terminal is a vertical direction movement, the adjustment coefficient applied by each user is less than 1, for example, 0.7.
The method for acquiring the current state of the target mobile terminal by the sequencing device by using the sensor component of the target mobile terminal comprises the following steps: and acquiring that the current state of the target mobile terminal is a hot state, a high-temperature state, a proper state, a low-temperature state or a cold state by using an ambient temperature sensor in a sensor assembly of the target mobile terminal.
Wherein the determining, by the ranking device, an adjustment factor for each user application according to the current state comprises:
in the case that the current state of the target mobile terminal is a hot state, the adjustment coefficient applied by each user is less than 1, for example, 0.8; under the condition that the current state of the target mobile terminal is a high-temperature state, the adjustment coefficient applied by each user is less than 1, such as 0.9; in the case that the current state of the target mobile terminal is a suitable state, the adjustment coefficient applied by each user is greater than 1, for example, 1.2; in the case that the current state of the target mobile terminal is a low temperature state, the adjustment coefficient applied by each user is less than 1, for example, 0.9; in the case where the current state of the target mobile terminal is a cold state, the adjustment coefficient applied by each user is less than 1, for example, 0.6;
wherein the hot state is that the air temperature T is more than or equal to 32 ℃; the high temperature state is 32 ℃ and the temperature T is more than or equal to 25 ℃, the suitable state is 25 ℃ and the temperature T is more than or equal to 18 ℃, the low temperature state is 18 ℃ and the temperature T is more than or equal to 8 ℃, or the cold state is 8 ℃ and the temperature T.
Wherein the ranking means calculating the adjusted operation probability of each user application at the current location based on the adjustment coefficient of each user application and the operation probability at the current location comprises:
and taking the product of the adjusting coefficient of each user application and the running probability at the current position as the adjusted running probability of each user application at the current position.
The system comprises a mobile internet and an initialization device, wherein the initialization device is used for responding to a data prefetching request initiated by a user and used for prefetching data aiming at a data file of a target mobile terminal in the mobile internet and relevant to user application, and acquiring a dynamic configuration file relevant to data prefetching;
creating a dynamic index area in a first memory of the target mobile terminal, and creating a plurality of dynamic storage units for storing data files in the first memory according to the dynamic configuration file, wherein the storage capacity of each of the plurality of dynamic storage units is determined according to the dynamic configuration file; and
and generating a dynamic index table in the dynamic index area, wherein the dynamic index table comprises a plurality of index entries, and each index entry is used for recording the application identification, the starting address, the ending address, the storage capacity and the storage level of a corresponding dynamic storage unit in a plurality of dynamic storage units.
The first memory is a random access memory, and the second memory is a read-only memory.
The dynamic profile includes a start address and an end address of a storage area in the first memory for providing a plurality of dynamic storage units, and the dynamic profile further includes a storage capacity of each of the plurality of dynamic storage units.
The application identifier is an identifier of a user application to which the dynamic storage unit belongs, the starting address is a starting address of a storage space of the dynamic storage unit, the ending address is an ending address of the storage space of the dynamic storage unit, and the storage capacity is the storage capacity and the storage level of the storage space of the dynamic storage unit.
And updating the corresponding index entry in the dynamic index table according to the storage level set for the dynamic storage unit.
Wherein the pre-fetching means selects at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
grouping a plurality of data files associated with each pre-fetch user application of the quantitative storage tier according to a storage capacity of a dynamic storage unit of the quantitative storage tier allocated to each pre-fetch user application of the quantitative storage tier to generate a plurality of file groups, wherein each file group includes at least one data file, and setting different priorities for the plurality of file groups of each pre-fetch user application of the quantitative storage tier to constitute priority queues, regarding a file group positioned at a head of a queue in each priority queue as a current file group and copying at least one data file in the current file group from a second memory to a dynamic storage unit of the quantitative storage tier allocated to each pre-fetch user application of the quantitative storage tier and setting a third time period for each dynamic storage unit of the quantitative storage tier, whenever the third time period expires, using a next file group in the priority queues as the current file group in order of decreasing priority, until there is no next set of files;
determining a number of pre-fetch user applications associated with the quantitative storage tier based on the at least one data file selected from the plurality of data files;
wherein the size of each file group is smaller than the storage space of the dynamic storage unit of the corresponding quantitative storage tier.
Wherein the pre-fetching means selects at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
grouping a plurality of data files associated with each pre-fetch user application of the quantitative storage tier according to a storage capacity of a dynamic storage unit of the quantitative storage tier allocated for each pre-fetch user application of the quantitative storage tier to generate a plurality of file groups, wherein each file group includes at least one data file, randomly selecting one file group from the plurality of file groups as a current file group and copying at least one data file in the current file group from the second memory to the dynamic storage unit of the quantitative storage tier allocated for each pre-fetch user application of the quantitative storage tier and setting a third time period for each dynamic storage unit of the quantitative storage tier, randomly selecting a next file group from the plurality of file groups as the current file group whenever the third time period expires until there is no next file group;
determining a number of pre-fetch user applications associated with the quantitative storage tier based on the at least one data file selected from the plurality of data files;
wherein the size of each file group is smaller than the storage space of the dynamic storage unit of the corresponding quantitative storage tier.
After the pre-fetching means copies the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned to each pre-fetching user application of the quantitative storage tier, the pre-fetching means sets a third time period and re-selects the at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier according to the storage capacity of the dynamic storage unit of the quantitative storage tier assigned to each pre-fetching user application of the quantitative storage tier each time the third time period expires, copying the re-selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned to each pre-fetching user application of the quantitative storage tier.
Wherein the pre-fetching means selects at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
step 1, grouping a plurality of data files associated with each pre-fetching user application of the quantitative storage tier to generate N file groups according to the storage capacity of a dynamic storage unit of the quantitative storage tier allocated to each pre-fetching user application of the quantitative storage tier, wherein N is a natural number greater than 1 and each file group comprises at least one data file;
step 2, setting different sequence numbers for each file group in the N file groups, wherein the sequence numbers are from 1 to N;
step 3, taking the file group with the serial number i equal to 1 as the current file group, wherein N is more than or equal to i and is more than 0;
step 4, setting a third time period for each dynamic storage unit of the quantitative storage level;
step 5, copying at least one data file included in the current file group from the second memory to a dynamic storage unit of the quantitative storage level allocated to each pre-fetching user application of the quantitative storage level;
step 6, when the third time period expires, judging whether i is true or not, and if yes, ending; if not, taking the file group with the serial number i being i +1 as the current file group, and performing step 5;
wherein the size of each file group is smaller than the storage capacity of the dynamic storage unit of the fixed-amount storage tier.
Wherein the setting means determining, from the ordered list, a plurality of pre-fetched user applications of the plurality of user applications that can be pre-loaded from the second memory into the first memory comprises:
when the number of the user applications with the operation probability larger than the pre-fetching threshold value in the ordered list is larger than 0, determining the user applications with the operation probability larger than the pre-fetching threshold value in the ordered list as the pre-fetching user applications which can be pre-loaded into the first memory from the second memory so as to determine at least one pre-fetching user application;
when the number of user applications in the ordered list having an operating probability greater than the pre-fetch threshold is equal to 0, determining all user applications in the ordered list as pre-fetched user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetched user application.
Wherein the setting means setting a storage level for each of the at least one pre-fetch user application according to the ordered list comprises:
setting the storage level of the pre-fetching user application with the operation probability larger than the high probability threshold value in the ordered list as a decrement storage level;
setting the storage level of the pre-fetching user application with the running probability less than or equal to the high probability threshold and greater than the medium probability threshold in the sorted list as an incremental storage level;
setting the storage level of the pre-fetching user application with the running probability less than or equal to the middle probability threshold and greater than the low probability threshold in the sorted list as a quantitative storage level;
and setting the storage level of the pre-fetching user application with the operation probability less than or equal to the low probability threshold value in the sorted list as a compression storage level.
Wherein the at least one dynamic storage unit allocated by the allocating means for the pre-fetching user application of each reduced storage tier is able to hold all data files of the pre-fetching user application of the corresponding reduced storage tier, and the at least one dynamic storage unit allocated by the allocating means for the pre-fetching user application of each compressed storage tier is able to hold all compressed data files of the pre-fetching user application of the corresponding compressed storage tier.
Wherein the first time period is 30 seconds, the second time period is 60 seconds, and wherein the third time period is 90 seconds.
Wherein the at least one base data file of each pre-fetching user application is at least one data file of the plurality of data files associated with each pre-fetching user application of the incremental storage tier that has a launch order above a priority threshold.
Wherein the first predetermined number is 5 and the second predetermined number is 8.
Drawings
A more complete understanding of exemplary embodiments of the present invention may be had by reference to the following drawings in which:
fig. 1 is a flowchart of a method for prefetching data in a mobile internet based on a current location according to an embodiment of the present invention;
FIG. 2 is a logical representation of an ordered list according to an embodiment of the present invention;
FIG. 3 is a logic diagram illustrating a reduced amount store according to an embodiment of the present invention;
FIG. 4 is a logic diagram of incremental storage according to an embodiment of the present invention;
FIG. 5 is a logic diagram of a quantitative store according to an embodiment of the present invention;
FIG. 6 is a logic diagram of compressed storage according to an embodiment of the present invention; and
fig. 7 is a schematic structural diagram of a system for prefetching data in a mobile internet based on a current location according to an embodiment of the present invention.
Detailed Description
Fig. 1 is a flow chart of a method 100 for prefetching data in a mobile internet according to a region scope according to an embodiment of the present invention. As shown in fig. 1, method 100 begins at step 101.
In step 101, an operation statistical file associated with a target mobile terminal in a mobile internet is obtained, and the operation statistical file is analyzed to obtain operation statistical information of each user application in a plurality of user applications in the target mobile terminal. The mobile internet includes a plurality of mobile terminals, base stations, content servers, and the like. The method and the device determine the mobile terminal which initiates the data prefetching request or the mobile terminal which requests to perform data prefetching as the target mobile terminal. Furthermore, the number of user applications included or installed in each mobile terminal (including the target mobile terminal) is greater than 4, e.g. 5, 10, 20 user applications. Concepts related to user applications include system applications, and system applications are typically system level applications determined by the operating system of the mobile terminal.
The operation statistical file comprises a plurality of operation data tables, and the application allocates one operation data table to each user application in a plurality of user applications in the target mobile terminal. Each operation data table includes a plurality of operation data items and the content of each operation data item is quintuple < application name, operation position, start time, end time, accumulated time length >. For example, the operation data items are < royal glory, gawa cafe, 6/8/2018 20:00, 6/8/2018/21: 50, 110 minutes >.
The running data table allocated to each user application is used as the running statistical information of each user application, namely, the running statistical information of each user application is provided in the form of the running data table. And the running data table allocated to each user application is used for recording the running position information of each user application in real time. That is, in the case where the mobile terminal is operated, the operating system or the control device may count and record the operation location information of each user application, for example, an application name, a location coordinate point, a start time, an end time, an accumulated time length, and the like, in real time. Therefore, the data table records the running information of each user application in a statistical time interval from a specific time point in the past to the current time point. Wherein, in the running statistics file, the application stores a predetermined number (e.g., 100, 200, 300) of running data items for each user application, or stores running data items for each user application within a predetermined length of time or a predetermined number of natural days (e.g., 10 days, 20 days, 30 days). Wherein the predetermined number of natural days is 10 natural days, 20 natural days, 30 natural days, or any reasonable number of natural days. The predetermined length of time is, for example, 240 hours.
In step 102, a positioning component of the target mobile terminal is used to obtain a movement track of the target mobile terminal within a predetermined time period, a current position of the target mobile terminal is determined according to the movement track, and an operation probability of each user application at the current position is determined according to operation statistical information of each user application and the current position of the target mobile terminal.
Wherein the predetermined period of time is a period of time that ends at the current time and begins at a time 30 seconds, 60 seconds, or 90 seconds before. For example, the current time is 20:00:00 on 6/8/2018, the predetermined time period is 19:59:30 on 6/8/2018, 19:59:002018 on 6/8/2018, 20:00:00 on 6/8/2018, 19:59:002018 on 6/8/20: 00:00 or 19:58:30 on 6/8/2018, 20:00:00 on 6/8/2018. Or the predetermined period of time is a period of time starting from the current time and having a length of 30 seconds, 60 seconds, or 90 seconds. For example, the current time is 20:00:00 on 6/8/2018, the predetermined time period is 20:00:00 on 6/8/2018, 20:00:30 on 6/8/2018, 20:00:00 on 6/8/2018, 20:01:00 on 6/8/2018, or 20:00:00 on 6/8/2018, 20:01:30 on 6/8/2018.
The movement trajectory includes a plurality of location points acquired by a positioning component (e.g., GPS component, compass component) of the target mobile terminal within a predetermined time period. The movement trajectory includes 60 position points acquired within 60 seconds by the GPS component of the target mobile terminal. Wherein the positioning assembly acquires a position point every 1 second or 2 seconds. For example, when the current time is 20:00:00 on 8/6/2018, the GPS component of the target mobile terminal acquires one location point per second within 60 seconds, that is, 60 location points in total.
Wherein determining the current position of the target mobile terminal according to the movement trajectory comprises: when all the plurality of position points included in the movement track are in a single place, determining the current position of the target mobile terminal by the single place. The single place may be, for example, a single building (office building, residential building), a single area (square, park), or the like. Each individual site has its own range, e.g., buildings and residential buildings, squares and parks, marked areas on maps, etc.
The method and the device determine the place name of the current place corresponding to the current position of the target mobile terminal. For example, when the current position of the target mobile terminal is determined to be within the north four-ring west road 9 of the hai lake district of beijing city according to the moving track of the target mobile terminal (for example, 60 position points within 60 seconds are all located within the north four-ring west road 9 of the hai lake district of beijing city), the place name of the current place corresponding to the current position of the target mobile terminal is determined to be the silver valley mansion (within the beijing city). Determining a current area range associated with the current location based on the location name of the current location, thereby determining a current area range associated with a current location. For example, the current area range associated with the current location is determined based on the location name "silver valley building" of the current location, i.e., the area range marked in the building of the silver valley building or on the map of the silver valley building (i.e., the squares in and around the building including the silver valley building), thereby determining the current area range associated with the current location. That is, the current position is associated with an area range marked in the building of the valley building or on the map of the valley building.
FIG. 2 is a logic diagram of an ordered list 200 according to an embodiment of the invention. As shown in fig. 2, the moving track of the target mobile terminal in a predetermined time period (6/8/2018/20: 00: 00-6/8/2018/20: 01:00) is obtained by using a positioning component (GPS component) of the target mobile terminal. The movement trajectory includes 60 location points acquired by the GPS component of the target mobile terminal within 60 seconds of 6/8/2018, 20:00: 00-6/8/20: 01: 00/2018. When all of the 60 location points are located in the current location or building 202 (the silverhouse), the operation probability of each user application at the current location is determined according to the operation statistical information of each user application and the current location of the target mobile terminal.
The building 202 includes an entrance 203, a movement trajectory 204, and an office 205. Wherein the entrance 203 is for example a door of the building 202. The movement trace 204 indicates that the user of the target mobile terminal is holding the target mobile terminal, enters the building 202 through the entrance 203 and proceeds to the office 205. Where one position point is recorded every 1 second. When the user enters the office 205, the location points become denser, indicating that the user enters the office for overtime.
Determining the operation probability of each user application at the current position according to the operation statistical information of each user application and the current position of the target mobile terminal comprises: selecting a statistical date interval for determining the probability of operation, the statistical date interval including at least 10 natural days (e.g., 10 natural days, 20 natural days, 30 natural days);
each of the plurality of data items within the running statistics of each user application is parsed to determine the effective number of times Ci that each user application runs within the current area scope (e.g., current location or building 202) within the statistical date interval. Wherein the number of times of one activity is counted when the user's operation time of the application in the current area range (e.g., the current location or the building 202) exceeds 60 seconds. For example, if the continuous operation time of the pay bank application in the current area range (for example, the current location or the building 202) in each of 10 natural days is 50 seconds (operation does not exceed 60 seconds), 120 seconds, 0 seconds (operation does not exceed), 180 seconds, 360 seconds, 520 seconds, 780 seconds, 0 seconds (operation does not exceed 60 seconds), 55 seconds (operation does not exceed 60 seconds), and 600 seconds, the valid number of times of the pay bank application is 0+1+0+1+1+1+ 0+0+1 to 6 times. Wherein i is more than or equal to 1 and less than or equal to Na, Na is the number of user applications in the target mobile terminal, Na is a natural number and Na is more than 4;
based on the number of times of validity Ci of each user application within the statistical date interval within the current area range (e.g., current location or building 202), the total number of times of validity S of all user applications operating within the current area range is calculated:
Figure BDA0001769709050000121
and calculating the operation probability Pi of each user application in the current area as Ci/S, and taking Pi as the operation probability of each user application at the current position.
For example, if the pay for Bao application runs 6 times at the current area range (e.g., the current location or the building 202) on 10 natural days, the WeChat application runs 10 times at the current area range (e.g., the current location or the building 202) on 10 natural days, the Taobao application runs 3 times at the current area range (e.g., the current location or the building 202) on 10 natural days, the Wang is glory 1 time at the current area range (e.g., the current location or the building 202) on 10 natural days, and the Mei Gong application runs 0 times at the current area range (e.g., the current location or the building 202) on 10 natural days, S is 20 times. The operation probabilities of the pay for Bao, WeChat application, Taobao application, Royal and beauty application at the current area (e.g., the current location or building 202) are 30%, 50%, 15%, 5% and 0%, respectively.
Wherein determining the operation probability of each user application at the current position according to the operation statistical information of each user application and the current position of the target mobile terminal comprises: selecting a statistical date interval for determining the probability of operation, the statistical date interval including at least 10 natural days (e.g., 10 natural days, 20 natural days, 30 natural days);
each of the plurality of data items within the operational statistics of each user application is parsed to determine a length of time ti for which each user application is operating within a current area range (e.g., current location or building 202) within the statistical date interval. The running time of the pay-for-treasure application in each of the 10 natural days in the current area range (e.g., the current location or the building 202) is 10 seconds, 60 seconds, 0 seconds, 50 seconds, 30 seconds, 90 seconds, 120 seconds, 0 seconds, 15 seconds, and 60 seconds, and then the length of time of the pay-for-treasure application is 435 seconds. Wherein i is more than or equal to 1 and less than or equal to Na, Na is the number of user applications in the target mobile terminal, Na is a natural number and Na is more than 4;
based on the length of time ti that each user application is operating within the statistical date interval within the current area range (e.g., current location or building 202), the total length of time T that all user applications are operating within the current area range is calculated:
Figure BDA0001769709050000131
and calculating the operation probability Pi of each user application in the current area range, namely ti/T, and taking Pi as the operation probability of each user application at the current position.
For example, if the pay for Bao application runs 435 seconds at the current area range (e.g., current location or building 202) on 10 natural days, the WeChat application runs 875 seconds at the current area range (e.g., current location or building 202) on 10 natural days, the Taobao application runs 500 seconds at the specific area range (e.g., current location or building 202) on 10 natural days, the Wang is glory for 190 seconds at the current area range (e.g., current location or building 202) on 10 natural days, and the Mei Gong application runs 0 seconds at the current area range (e.g., current location or building 202) on 10 natural days, then T is 2000 seconds. The operation probabilities of the pay for Bao, WeChat application, Taobao application, Royal and beauty application at the current area (e.g., current location or building 202) are 21.75%, 43.75%, 25%, 9.5% and 0%, respectively.
In step 103, a current state of the target mobile terminal is obtained by using a sensor component of the target mobile terminal, an adjustment coefficient is determined for each user application according to the current state, an adjusted operation probability of each user application at the current position is calculated based on the adjustment coefficient of each user application and the operation probability at the current position, and the plurality of user applications are sorted in a descending order of the operation probabilities based on the adjusted operation probability of each user application at the current position to generate a sorted list.
Wherein the sensor assembly for example comprises: a brightness sensor, an acceleration sensor, an ambient temperature sensor, etc. The method for acquiring the current state of the target mobile terminal by using the sensor component of the target mobile terminal comprises the following steps:
and acquiring that the current state of the target mobile terminal is a strong light state, a soft light state or a weak light state by using a brightness sensor in a sensor assembly of the target mobile terminal. The strong light state is a state that the illumination intensity is greater than 10000 lux; the soft light state is a state in which the illuminance is less than or equal to 10000 lux and the illuminance is greater than or equal to 100 lux; a low light state is less than 100 lux. The bright light state, the soft light state, or the weak light state may refer to illuminance of external light with respect to a display screen of the target mobile terminal.
Determining an adjustment factor for each user application according to the current state comprises: in case that the current state of the target mobile terminal is a bright light state, the adjustment coefficient applied by each user is less than 1, for example, 0.8; in the case that the current state of the target mobile terminal is a soft light state, the adjustment coefficient applied by each user is greater than 1, for example, 1.2;
in case that the current state of the target mobile terminal is a low light state, the adjustment coefficient applied by each user is less than 1, for example, 0.9. This is because in both the bright light state and the weak light state, the user may not be able to operate the user application using the target mobile terminal, and therefore the adjustment coefficient is less than 1. In the soft light condition, the willingness of the user to use the target mobile terminal to run the user application is greatly enhanced, so that the adjustment coefficient is larger than 1.
The method for acquiring the current state of the target mobile terminal by using the sensor component of the target mobile terminal comprises the following steps:
and acquiring the current state of the target mobile terminal by using an acceleration sensor in a sensor assembly of the target mobile terminal, wherein the current state is that a display screen is upwards, the display screen is downwards, and the current state is in horizontal movement or vertical movement. Wherein the display screen is facing upwards, for example, the user places the target mobile terminal on a desktop and the display screen side is facing upwards; the display screen is downward, for example, the user places the target mobile terminal on a desktop and the display screen is downward on one side; the horizontal movement is, for example, a user placing the target mobile terminal in a hand or carrying the target mobile terminal with him for horizontal movement (for example, moving in a flat office); the vertical movement is, for example, a user putting the target mobile terminal in a hand or carrying it with him for vertical movement (e.g., taking an elevator).
Determining an adjustment factor for each user application according to the current state comprises:
under the condition that the current state of the target mobile terminal is that the display screen faces upwards, the adjusting coefficient applied by each user is larger than 1, for example 1.2; in the case that the current state of the target mobile terminal is the display screen facing down, the adjustment coefficient applied by each user is less than 1, for example, 0.3; in the case that the current state of the target mobile terminal is horizontal movement, the adjustment coefficient applied by each user is less than 1, for example, 0.9; in case that the current state of the target mobile terminal is a vertical direction movement, the adjustment coefficient applied by each user is less than 1, for example, 0.7.
Since the probability of using the target mobile terminal to run the user application is high when the user sets the target mobile terminal to have the display screen facing upward, the adjustment coefficient is greater than 1 for this reason. Since the probability of using the target mobile terminal to run the user application is small when the user sets the target mobile terminal to move the display screen downward, in the horizontal direction, or in the vertical direction, for this reason, the adjustment coefficient is smaller than 1.
The method for acquiring the current state of the target mobile terminal by using the sensor component of the target mobile terminal comprises the following steps:
and acquiring that the current state of the target mobile terminal is a hot state, a high-temperature state, a proper state, a low-temperature state or a cold state by using an ambient temperature sensor in a sensor assembly of the target mobile terminal.
Determining an adjustment factor for each user application according to the current state comprises:
in the case that the current state of the target mobile terminal is a hot state, the adjustment coefficient applied by each user is less than 1, for example, 0.8; under the condition that the current state of the target mobile terminal is a high-temperature state, the adjustment coefficient applied by each user is less than 1, such as 0.9; in the case that the current state of the target mobile terminal is a suitable state, the adjustment coefficient applied by each user is greater than 1, for example, 1.2; in the case that the current state of the target mobile terminal is a low temperature state, the adjustment coefficient applied by each user is less than 1, for example, 0.9; in the case where the current state of the target mobile terminal is a cold state, the adjustment coefficient applied by each user is less than 1, for example, 0.6; wherein the hot state is that the air temperature T is more than or equal to 32 ℃; a high temperature state of 32 ℃ to 25 ℃ inclusive, a suitable state of 25 ℃ to 18 ℃ inclusive, a low temperature state of 18 ℃ to 8 ℃ inclusive, or a cold state of 8 ℃ to temperature T inclusive.
Since the probability that the user uses the target mobile terminal to run the user application is high when the ambient temperature is in a suitable state, the adjustment coefficient is greater than 1 for this reason. Since the probability that the user uses the target mobile terminal to run the user application is small when the ambient temperature is in a hot state, a high temperature state, a suitable state, a low temperature state, or a cold state, the adjustment coefficient is greater than 1.
The calculating of the adjusted operation probability of each user application at the current location based on the adjustment coefficient of each user application and the operation probability at the current location comprises: and taking the product of the adjusting coefficient of each user application and the running probability at the current position as the adjusted running probability of each user application at the current position.
In the example shown in fig. 2, as shown in table 206, in the current regional range (for example, the current position or the building 202) within 10 natural days from 6/1/2018 to 6/10/2018, the operation probability of the royal glory is 15%, the operation probability of the trembled short video is 13.3%, the operation probability of the kumquat video is 12.5%, the operation probability of the mobile phone panning is 10.8%, the operation probability of the mei group takeout is 8.3%, the operation probability of the Baidu takeout is 7.5%, the operation probability of the mastership is 5.8%, the operation probability of the tribuna takeout is 5%, and the operation probability of the lazy english is 0%.
The method comprises the step of acquiring that the current state of the target mobile terminal is the appropriate state by utilizing an ambient temperature sensor in a sensor assembly of the target mobile terminal. Determining an adjustment factor for each user application based on the fitness state comprises: in case that the current state of the target mobile terminal is a suitable state, the adjustment coefficient applied by each user is greater than 1, for example, 1.2. The product of the adjustment factor of each user application and the operating probability at the current location is used as the adjusted operating probability of each user application at the current location, i.e., the operating probability × 1.2 — the adjusted operating probability.
In the example shown in fig. 2, as shown in table 201, in the current regional range (for example, the current location or the building 202) within 10 natural days from 6/1/2018 to 6/10/2018, the adjusted operation probability of the royal glory is 18%, the adjusted operation probability of the judder short video is 16%, the adjusted operation probability of the kukoku video is 15%, the adjusted operation probability of the cell phone panning is 13%, the adjusted operation probability of the mei group takeaway is 10%, the adjusted operation probability of the Baidu takeaway is 9%, the adjusted operation probability of the mastership is 7%, the adjusted operation probability of the mastership is 6%, and the adjusted operation probability of the sanguo english is 0%.
At step 104, determining at least one of the plurality of user applications that can be preloaded from the second memory into the first memory according to the ordered list, and setting a storage level for each of the at least one pre-fetch user application according to the ordered list, wherein the storage levels include: a decrement storage stage, an increment storage stage, a quantitative storage stage, and a compressed storage stage.
Wherein determining from the ordered list a plurality of pre-fetch user applications of the plurality of user applications that can be pre-loaded from a second memory into a first memory comprises: when the number of user applications in the ordered list having an operating probability greater than the pre-fetch threshold (e.g., 5%, 10%) is greater than 0 (e.g., 10), determining the user applications in the ordered list having an operating probability greater than the pre-fetch threshold as pre-fetch user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetch user application; when the number of user applications in the ordered list having a running probability greater than the pre-fetch threshold (e.g., 5%, 10%) is equal to 0, all user applications (e.g., 15) in the ordered list are determined as pre-fetched user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetched user application.
Wherein setting a storage level for each of at least one pre-fetch user application according to the ordered list comprises: setting a storage level of the pre-fetched user applications in the ordered list having an operational probability greater than a high probability threshold (e.g., 15%) to a reduced storage level; setting a storage level of the pre-fetch user application in the sorted list having a probability of operation less than or equal to a high probability threshold (e.g., 15%) and greater than a medium probability threshold (e.g., 12%) as an incremental storage level; setting a storage level of the pre-fetched user applications in the sorted list having a probability of operation less than or equal to a medium probability threshold (e.g., 12%) and greater than a low probability threshold (e.g., 8%) as a quantitative storage level; setting a storage level of the pre-fetched user applications in the sorted list having an operating probability less than or equal to a low probability threshold (e.g., 8%) as a compressed storage level. Wherein the pre-fetching of user applications has a running probability of more than 5%.
As shown in fig. 2, according to the above-described manner, it can be determined that the operation probability of the royal glowing and the operation probability of the tremble short video are 18% and 16%, and therefore the storage level of the royal glowing and the tremble short video is the reduced storage level. The running probability of the Youkou video is 15% and the running probability of the mobile phone panning is 13%, so the storage level of the Youkou video and the mobile phone panning is an incremental storage level. The operation probability of the American college takeout is 10% and the operation probability of the Baidu takeout is 9%, so that the storage level of the American college takeout and the Baidu takeout is a quantitative storage level, the operation probability of the masterpiece flying vehicle is 7% and the operation probability of the masterpiece flying vehicle is 6%, so that the storage level of the masterpiece flying vehicle and the masterpiece flying vehicle is a compression storage level.
Since the number 8 of user applications having an operation probability greater than 5% of the pre-fetch threshold in the sorted list is greater than 0, the user applications having an operation probability greater than the pre-fetch threshold in the sorted list (the operation probability of royal glory is 18%, the operation probability of jittering short video is 16%, the operation probability of kukoku video is 15%, the operation probability of mobile phone panning is 13%, the operation probability of masu takeout is 10%, the operation probability of Baidu takeout is 9%, the operation probability of masterwork galloping is 7%, and the operation probability of tribasic masterless is 6%) are determined as pre-fetch user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetch user application. The operating probability of the lazy english language is 0%, and therefore does not belong to the pre-fetching user application.
At step 105, at least one dynamic memory location is allocated for each pre-fetch user application of the reduced storage tier, at least one dynamic memory location is allocated for each pre-fetch user application of the compressed storage tier, one dynamic memory location is allocated for each pre-fetch user application of the increased storage tier and one dynamic memory location is allocated for each pre-fetch user application of the quantitative storage tier. Wherein the storage capacity of each of the at least one dynamic storage unit allocated for each of the pre-fetched user applications of the reduced storage tier may be the same or different, and the storage capacity of each of the at least one dynamic storage unit allocated for each of the pre-fetched user applications of the compressed storage tier may be the same or different.
The total storage capacity of the at least one dynamic storage unit allocated for the pre-fetching user application of each reduced storage tier is capable of accommodating all data files of the pre-fetching user application of the corresponding reduced storage tier. The total storage capacity of the at least one dynamic storage unit allocated for the pre-fetching user application of each compressed storage tier is capable of accommodating all compressed data files of the pre-fetching user application of the corresponding compressed storage tier. One dynamic memory unit is allocated for each pre-fetching user application of the incremental storage tier that can accommodate all data files of the pre-fetching user application of the corresponding incremental storage tier. One dynamic memory unit is allocated to each pre-fetching user application of a quantitative memory rank to be able to accommodate all data files of the pre-fetching user application of the corresponding quantitative memory rank.
In step 106, a storage level is set for the dynamic storage unit allocated for each pre-fetching user application according to the storage level of each pre-fetching user application. Setting each dynamic memory unit of the at least one dynamic memory unit allocated for each pre-fetching user application of the reduced memory rank as a reduced memory rank, setting each dynamic memory unit of the at least one dynamic memory unit allocated for each pre-fetching user application of the compressed memory rank as a compressed memory rank, setting one dynamic memory unit allocated for each pre-fetching user application of the increased memory rank as an increased memory rank and setting one dynamic memory unit allocated for each pre-fetching user application of the increased memory rank as a quantitative memory rank.
In step 107, data prefetching is performed on the data file associated with each prefetched user application from the second memory according to the storage level of the prefetched user application, including:
preferably, the (all) plurality of data files associated with each pre-fetching user application of a reduced storage tier are copied from the second memory to the dynamic storage unit of at least one reduced storage tier allocated for each pre-fetching user application of a reduced storage tier, and a first time period is set and timed for the dynamic storage unit of each reduced storage tier upon completion of the copying, a first predetermined number of data files being deleted in the dynamic storage unit of each reduced storage tier each time the first time period expires until none of the dynamic storage units of each reduced storage tier has a data file.
FIG. 3 is a logic diagram of an embodiment of a decrement storage 300. The operation probability of the royal glory is 18% and the operation probability of the tremble short video is 16%, so that the storage level of the royal glory and tremble short video is a decrement storage level.
All data files of the royal glowing are copied from the second memory to the dynamic memory units 301, 302 and 303 of at least one reduced memory level allocated for the royal glowing. Each of the dynamic memory units 301, 302, and 303 has a memory capacity of 500M, and an application name and a memory level are labeled in each dynamic memory unit. A first time period (e.g., 30 seconds, 50 seconds, 60 seconds) is set for the dynamic storage units 301, 302, and 303 of each reduced storage rank after the copying is completed, and a first predetermined number (e.g., 3, 5) of data files are deleted in the dynamic storage units 301, 302, and 303 of each reduced storage rank every time the first time period expires (i.e., every time 30 seconds, 50 seconds, 60 seconds elapses).
All data files of the trembling short video are copied from the second memory to the dynamic memory units 311 and 312 of at least one decrement memory level allocated for the trembling short video. Each of the dynamic memory units 311 and 312 has a memory capacity of 60M, and an application name and a memory level are labeled in each dynamic memory unit. And sets a first time period (e.g., 30 seconds, 50 seconds, 60 seconds) for the dynamic storage units 311 and 312 of each reduced storage rank after the copying is completed, and deletes a first predetermined number (e.g., 3, 5) of data files in the dynamic storage unit of each reduced storage rank every time the first time period expires (i.e., every time 30 seconds, 50 seconds, 60 seconds elapses). For example, after the data files of the royal glory and tremble short videos are all copied to the corresponding dynamic storage units 301, 302, and 303, and 311 and 312, a timer is started, and 3 data files are deleted from each of the dynamic storage units 301, 302, 303, 311, and 312 every time 30 seconds pass. When none of the dynamic storage units 301, 302, and 303, and 311 and 312 have a data file, deletion of the file is stopped.
Preferably, at least one base data file is selected among the (all) plurality of data files associated with each pre-fetching user application of the incremental storage tier, the at least one base data file of each pre-fetching user application of the incremental storage tier is copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier, and a second time period is set and timed for the dynamic storage unit of the incremental storage tier upon completion of the copying, wherein a second predetermined number of data files, other than already copied files, of the plurality of data files associated with each pre-fetching user application of the incremental storage tier are copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier each time period expires until all data files associated with each pre-fetching user application are copied to the corresponding allocated incremental storage tier Dynamic memory cells of the storage level. Wherein the at least one base data file of each pre-fetching user application is at least one data file of the plurality of data files associated with each pre-fetching user application of the incremental storage tier having a firing order above a priority threshold (e.g., a priority threshold of 3, i.e., the firing order for each of the plurality of data files is set to 1, 2, 3, 4, or 5 levels, with the level of the firing order for 1, 2, 3, 4, or 5 levels increasing in order).
Wherein one dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application is capable of accommodating/storing all data file(s) of the corresponding/attributed pre-fetching user application.
FIG. 4 is a logic diagram of an incremental store 400 according to an embodiment of the present invention. The running probability of the Youkou video is 15% and the running probability of the mobile phone panning is 13%, so that the storage level of the Youkou video and the mobile phone panning is an incremental storage level.
The 10 elementary data files are selected from the (all) plurality of data files associated with the kukov video, and these 10 elementary files are copied from the second memory to the dynamic storage unit 401 of the incremental storage tier allocated for the kukov video. The storage capacity of the dynamic storage units 401 is 200M each, and an application name and a storage level are labeled in each dynamic storage unit. A second time period (e.g., 30 seconds, 50 seconds, 60 seconds) is set for the dynamic storage unit 401 of the incremental storage tier after the copying is completed, and a second predetermined number (e.g., 3, 5, 8) of data files (other than the already copied files) of the plurality of data files associated with the use of the kukov video are copied from the second memory to the dynamic storage unit 401 every time the second time period expires (i.e., every time 30 seconds, 50 seconds, 60 seconds elapses).
The 10 base data files are selected from the (all) plurality of data files associated with the mobile phone pan, and the 10 base files are copied from the second memory to the dynamic storage unit 402 of the incremental storage level allocated for the mobile phone pan. The dynamic memory units 402 each have a memory capacity of 300M, and an application name and a memory level are labeled in each dynamic memory unit. A second time period (e.g., 30 seconds, 50 seconds, 60 seconds) is set for the dynamic storage unit 402 of the incremental storage stage after the copying is completed, and a second predetermined number (e.g., 3, 5, 8) of data files (other than the already copied files) of the plurality of data files associated with the mobile phone panning is copied from the second memory to the dynamic storage unit 402 every time the second time period expires (i.e., every time 30 seconds, 50 seconds, 60 seconds elapses).
For example, after all 10 basic data files of the youku video and the mobile phone panning are copied to the corresponding dynamic storage units 401 and 402, timing is started, and every time 60 seconds pass, 8 data files (initially 100 data files) of 90 data files associated with the youku video are copied from the second memory to the dynamic storage unit 401; and copying 8 data files (initially 160 data files) of the 150 data files associated with the mobile phone panning function from the second memory to the dynamic storage unit 401 every time 60 seconds pass. When all 100 data files of the Youkou video are copied into the Olympic dynamic storage unit 401, the copying operation is not performed, and when all 160 data files of the mobile phone Taobao are copied into the Olympic dynamic storage unit 402, the copying operation is not performed
Preferably, at least one data file is selected from the (all) plurality of data files associated with each pre-fetching user application of the quantitative storage tier (the total storage capacity required for the selected at least one data file being smaller than the storage capacity of the dynamic storage units of the quantitative storage tier) in dependence on the storage capacity of the dynamic storage units of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier, and the selected at least one data file is copied from the second memory to the dynamic storage units of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier.
FIG. 5 is a logic diagram of a quantitative storage 500 according to an embodiment of the present invention. Wherein the operation probability of the American group take-out is 10% and the operation probability of the Baidu take-out is 9%, so that the storage level of the American group take-out and the Baidu take-out is a quantitative storage level. At least one data file is selected from (all) the plurality of data files associated with the massa takeaway (the selected at least one data file requiring a storage capacity of less than 20M) according to the storage capacity 20M of the dynamic storage unit of the quantitative storage tier assigned for the massa takeaway, and the selected at least one data file is copied from the second storage to the dynamic storage unit 501. At least one data file is selected from (all) the plurality of data files associated with the massa takeaway (the selected at least one data file requiring less than 10M of storage capacity) based on the storage capacity 10M of the dynamic storage unit of the quantitative storage tier assigned for the hundred degrees takeaway, and the selected at least one data file is copied from the second storage to the dynamic storage unit 511.
Alternatively, wherein selecting at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
the plurality of data files associated with each pre-fetching user application of the quantitative storage tier are grouped according to a storage capacity of a dynamic storage unit (501 or 511) of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier (American or Baidu takeout) to generate a plurality of file groups, wherein each file group includes at least one data file. Wherein the total storage capacity required for the at least one data file of each file group is smaller than the storage capacity of the dynamic storage unit of the corresponding quantitative storage tier. That is, the total storage capacity of all data files in each file group for the U.S. take-out is less than 20M, and the total storage capacity of all data files in each group for the hundred degree take-out is less than 10M. Different priorities are set for each of the plurality of file groups of the pre-fetching user application of the quantitative storage tier to form a priority queue. For example, the cohesive takeout includes 5 file groups, and the priorities of the 5 file groups are 1, 2, 3, 4, and 5 (where the smaller the number, the higher the priority). The file group at the head of the queue (file group with priority 1) in each priority queue is taken as the current file group and at least one data file in the current file group is copied from the second memory to a dynamic storage unit (e.g., dynamic storage unit 501) of the quantitative storage level allocated for each pre-fetching user application of the quantitative storage level. A third time period (e.g., 30 seconds, 60 seconds, or 90 seconds) is set for each dynamic memory cell (501 or 511) of the quantitative memory rank after replication is complete. Every time the third time period expires (i.e., every time 30 seconds, 60 seconds pass), the next file group in the priority queue (e.g., file group of priority 2) is used as the current file group in order of decreasing priority until there is no next file group. That is, the file groups of priorities 1, 2, 3, 4, and 5 are copied to the dynamic storage unit 501 or 511. It can be seen that when the time is long enough (sufficiently longer than the plurality of third time period periods), for example, the third time period is 90 seconds, and the 450 th second is reached (i.e., when 5 third time periods are reached), all of the 5 file groups are used as the current file group. In this case, the content in the dynamic storage unit (501 or 511) is not being updated, i.e., at least one data file of the file group having the priority of 5 is retained in the dynamic storage unit 501.
At least one data file in the current set of files (possibly a set of files with a priority of 1, 2, 3, 4 or 5) is taken as the at least one data file selected from the plurality of data files associated with each pre-fetching user application of a quantitative storage tier. Wherein the size of each file group (i.e., the size of all data files in the file group) is smaller than the storage space of the dynamic storage unit of the corresponding quantitative storage tier.
Alternatively, wherein selecting at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
the plurality of data files associated with each pre-fetching user application of the quantitative storage tier are grouped according to the storage capacity of the dynamic storage unit (501 or 511) of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier (American takeaway or Baidu takeaway) to generate a plurality of file groups, wherein each file group includes at least one data file wherein the total storage capacity required for the at least one data file of each file group is less than the storage capacity of the dynamic storage unit of the corresponding quantitative storage tier. That is, the total storage capacity of all data files in each file group for the U.S. take-out is less than 20M, and the total storage capacity of all data files in each group for the hundred degree take-out is less than 10M. For example, the beauty group takeout includes 5 file groups, and the 5 file groups have sequence numbers of 1, 2, 3, 4, and 5. Randomly selecting one file group (file group with the sequence number of 5) from the plurality of file groups as a current file group, copying at least one data file in the current file group from the second memory to a dynamic storage unit (for example, the dynamic storage unit 501) of a quantitative storage class allocated for each pre-fetching user application of the quantitative storage class, and setting a third time period (for example, 30 seconds, 60 seconds or 90 seconds) for each dynamic storage unit (501 or 511) of the quantitative storage class after the copying is completed. Every time the third time period expires (i.e., every time 30 seconds, 60 seconds elapses), a next file group (e.g., file group of sequence number 2) is randomly selected from the plurality of file groups as the current file group until there is no next file group. The file groups with sequence numbers 1, 2, 3, 4 and 5 are copied to the dynamic storage unit 501 or 511. It can be seen that when the time is long enough (sufficiently longer than the plurality of third time period periods), for example, the third time period is 90 seconds, and the 450 th second is reached (i.e., when 5 third time periods are reached), all of the 5 file groups are used as the current file group. In this case, the content in the dynamic storage unit (501 or 511) is not updated, i.e. at least one data file of the last file group (e.g. file group 1) selected randomly is kept in the dynamic storage unit 501.
At least one data file in the current set of files (possibly a set of files with sequence number 1, 2, 3, 4 or 5) is taken as the at least one data file selected from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier. Wherein the size of each file group (i.e., the size of all data files in the file group) is smaller than the storage space of the dynamic storage unit of the corresponding quantitative storage tier.
Alternatively, after copying the selected at least one data file from the second memory to the dynamic storage unit (501 or 511) of the quantitative storage tier assigned for each pre-fetched user application (mezzo takeaway or hecto takeaway) of the quantitative storage tier, setting a third time period (e.g., 30 seconds, 60 seconds, or 90 seconds) and starting timing, each time the third time period (e.g., 30 seconds, 60 seconds, or 90 seconds) expires, re-randomly/sequentially selecting at least one data file from the plurality of data files associated with each pre-fetched user application of the quantitative storage tier based on the storage capacity (20M or 10M) of the dynamic storage unit (501 or 511) of the quantitative storage tier assigned for each pre-fetched user application (mezzo takeaway or hecto takeaway) of the quantitative storage tier, copying the re-selected at least one data file from the second memory to each pre-fetched user application (mezzo takeaway or hecto takeaway) of the quantitative storage tier ) Dynamic memory cells (20M or 10M) of the assigned fixed-amount storage rank. Wherein the data file of the at least one data file reselected by the random selection may be the same as the previously randomly selected data file. The data file of the at least one data file reselected by the sequential selection may not be identical to any data file previously selected in the sequential selection.
Alternatively, wherein selecting at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
step 1, grouping a plurality of data files associated with each pre-fetching user application of the quantitative storage tier according to a storage capacity (20M or 10M) of a dynamic storage unit (501 or 511) of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier (american takeout or hundredth takeout) to generate N (e.g., N ═ 5) file groups, where N is a natural number greater than 1 and each file group includes at least one data file;
step 2, setting different sequence numbers for each file group in the N file groups, wherein the sequence numbers are from 1 to N (for example, 1, 2, 3, 4 and 5);
step 3, taking the file group with the serial number i equal to 1 as the current file group, wherein N is more than or equal to i and is more than 0;
step 4, setting a third time period (for example, 30 seconds, 60 seconds or 90 seconds) for each dynamic storage unit (501 or 511) of the quantitative storage level;
step 5, copying at least one data file included in the current file group from the second memory to a dynamic storage unit of the quantitative storage level allocated to each pre-fetching user application of the quantitative storage level, and starting timing;
step 6, when the third time period expires, determining whether i-N (i.e. whether i-5 holds true) holds true, and if yes, ending; if not, taking the file group with the serial number i being i +1 as the current file group, and performing step 5;
wherein the size of each file group is smaller than the storage capacity (20M or 10M) of the dynamic storage unit (501 or 511) of the quantitative storage tier. That is, the total storage capacity of all data files in each file group for the U.S. take-out is less than 20M, and the total storage capacity of all data files in each group for the hundred degree take-out is less than 10M. For example, the beauty group takeout includes 5 file groups, and the 5 file groups have sequence numbers of 1, 2, 3, 4, and 5.
In step 6, if true, the process ends, meaning that: the file groups with sequence numbers 1, 2, 3, 4 and 5 are copied to the dynamic storage unit 501 or 511, and then the copying is stopped. It can be seen that when the time is long enough (sufficiently longer than the plurality of third time period periods), for example, the third time period is 90 seconds, and the 450 th second is reached (i.e., when 5 third time periods are reached), all of the 5 file groups are used as the current file group. In this case, the content in the dynamic storage unit (501 or 511) is not updated, i.e. at least one data file of the last file group (e.g. file group 5) selected randomly is kept in the dynamic storage unit 501.
Preferably, the (all) plurality of data files associated with each pre-fetching user application of the compressed storage tier are compressed to generate a plurality of compressed data files, the plurality of compressed data files of each pre-fetching user application of the compressed storage tier are copied from the second memory to the dynamic storage unit of the at least one compressed storage tier allocated for each pre-fetching user application of the compressed storage tier.
FIG. 6 is a logic diagram of a compressed store 600 according to an embodiment of the present invention. The running probability of the super-quality aerodyne is 7 percent and the running probability of the super-quality aerodyne of three kingdoms is 6 percent, so the storage level of the royal glory and tremble short video is a compressed storage level. The (all) plurality of data files associated with each pre-fetch user application of the compressed storage tier (either mastership or tribune) are compressed to generate a plurality of compressed data files, the plurality of compressed data files of each pre-fetch user application of the compressed storage tier (mastership or tribune) are copied from the second memory to the dynamic storage units 601, 602, and 603, and 611 and 612 of the at least one compressed storage tier allocated for each pre-fetch user application of the compressed storage tier.
For example, the (all) plurality of data files associated with the mastership aircraft are compressed to generate a plurality of compressed data files, which are copied from the second memory to the dynamic storage units 601, 602, and 603. For example, the (all) plurality of data files associated with the tribune pair are compressed to generate a plurality of compressed data files, and the tribune plurality of compressed data files are copied from the second memory to the dynamic storage units 611 and 612.
Preferably, before obtaining the operation statistic file associated with the target mobile terminal in the mobile internet, the method further includes:
the method comprises the steps of responding to a data prefetching request initiated by a user and used for prefetching data aiming at a data file, associated with a user application, of a target mobile terminal in the mobile Internet, and obtaining a dynamic configuration file associated with the data prefetching. The mobile internet includes a plurality of mobile terminals, base stations, content servers, and the like. The method and the device determine the mobile terminal which initiates the data prefetching request or the mobile terminal which requests to perform data prefetching as the target mobile terminal. Furthermore, the number of user applications included or installed in each mobile terminal (including the target mobile terminal) is greater than 4, e.g. 5, 10, 20 user applications. Concepts related to user applications include system applications, and system applications are typically system level applications determined by the operating system of the mobile terminal.
The dynamic profile includes a start address and an end address of a storage area in the first memory for providing a plurality of dynamic storage units. The storage area in which the plurality of dynamic memory cells are provided may be a continuous storage area at an address or a discontinuous storage area at an address in the first memory. The dynamic profile further includes a storage capacity of each of the plurality of dynamic storage units. In general, the storage capacity of each dynamic storage unit may be set according to the size and number of a plurality of data files applied per user within a mobile terminal (target mobile terminal) so that the storage capacity of each dynamic storage unit can accommodate a corresponding at least one data file.
Creating a dynamic index area in a first memory of the target mobile terminal, and creating a plurality of dynamic storage units for storing data files in the first memory according to the dynamic configuration file, wherein the storage capacity of each of the plurality of dynamic storage units is determined according to the dynamic configuration file. Therefore, the method creates a plurality of dynamic storage units for storing the data files in the first storage according to the storage capacity of each dynamic storage unit.
And generating a dynamic index table in the dynamic index area, wherein the dynamic index table comprises a plurality of index entries, and each index entry is used for recording the application identification, the starting address, the ending address, the storage capacity and the storage level of a corresponding dynamic storage unit in a plurality of dynamic storage units. The application identifier is an identifier of a user application to which the dynamic storage unit belongs, the starting address is a starting address of a storage space of the dynamic storage unit, the ending address is an ending address of the storage space of the dynamic storage unit, and the storage capacity is the storage capacity and the storage level of the storage space of the dynamic storage unit. For example, the index entry of the dynamic storage unit includes: payment treasure application, 7000H00, 8FFFH, 8Kb, decrement storage level. When any index entry in the dynamic index table relates to updated data, the corresponding index entry in the dynamic index table is updated with the updated data.
Wherein the first memory is a random access memory and the second memory is a read only memory. And updating the corresponding index entry in the dynamic index table according to the storage level set for the dynamic storage unit. Wherein the first time period is 30 seconds, the second time period is 60 seconds, and wherein the third time period is 90 seconds. Wherein the first predetermined number is 5 and the second predetermined number is 8.
It should be understood that, in the present application, when copying one or more data files from the second memory or other locations to the dynamic storage unit of any storage rank, the original data files in the dynamic storage unit of any storage rank are deleted and the new one or more data files are copied to the dynamic storage unit of any storage rank.
Further, when data prefetching ends, or according to a user's operation, the dynamic index area or all the dynamic memory cells are deleted/reset/cleared.
Fig. 7 is a block diagram illustrating a system 700 for prefetching data in a mobile internet based on a current location according to an embodiment of the present invention. As shown in fig. 7, the system 700 includes: parsing means 701, probability determination means 702, sorting means 703, setting means 704, allocation means 705, pre-fetching means 706 and initialization means 707.
Analyzing and acquiring an operation statistical file associated with a target mobile terminal in a mobile internet, and analyzing the operation statistical file to acquire operation statistical information of each user application in a plurality of user applications in the target mobile terminal. The mobile internet includes a plurality of mobile terminals, base stations, content servers, and the like. The method and the device determine the mobile terminal which initiates the data prefetching request or the mobile terminal which requests to perform data prefetching as the target mobile terminal. Furthermore, the number of user applications included or installed in each mobile terminal (including the target mobile terminal) is greater than 4, e.g. 5, 10, 20 user applications. Concepts related to user applications include system applications, and system applications are typically system level applications determined by the operating system of the mobile terminal.
The operation statistical file comprises a plurality of operation data tables, and the application allocates one operation data table to each user application in a plurality of user applications in the target mobile terminal. Each operation data table includes a plurality of operation data items and the content of each operation data item is quintuple < application name, operation position, start time, end time, accumulated time length >. For example, the operation data items are < royal glory, gawa cafe, 6/8/2018 20:00, 6/8/2018/21: 50, 110 minutes >.
The running data table allocated to each user application is used as the running statistical information of each user application, namely, the running statistical information of each user application is provided in the form of the running data table. And the running data table allocated to each user application is used for recording the running position information of each user application in real time. That is, in the case where the mobile terminal is operated, the operating system or the control device may count and record the operation location information of each user application, for example, an application name, a location coordinate point, a start time, an end time, an accumulated time length, and the like, in real time. Therefore, the data table records the running information of each user application in a statistical time interval from a specific time point in the past to the current time point. Wherein, in the running statistics file, the application stores a predetermined number (e.g., 100, 200, 300) of running data items for each user application, or stores running data items for each user application within a predetermined length of time or a predetermined number of natural days (e.g., 10 days, 20 days, 30 days). Wherein the predetermined number of natural days is 10 natural days, 20 natural days, 30 natural days, or any reasonable number of natural days. The predetermined length of time is, for example, 240 hours.
The probability determination device 702 is configured to obtain a movement trajectory of the target mobile terminal within a predetermined time period by using a positioning component of the target mobile terminal, determine a current position of the target mobile terminal according to the movement trajectory, and determine an operation probability of each user application at the current position according to the operation statistical information of each user application and the current position of the target mobile terminal.
Wherein the predetermined period of time is a period of time that ends at the current time and begins at a time 30 seconds, 60 seconds, or 90 seconds before. For example, the current time is 20:00:00 on 6/8/2018, the predetermined time period is 19:59:30 on 6/8/2018, 19:59:002018 on 6/8/2018, 20:00:00 on 6/8/2018, 19:59:002018 on 6/8/20: 00:00 or 19:58:30 on 6/8/2018, 20:00:00 on 6/8/2018. Or the predetermined period of time is a period of time starting from the current time and having a length of 30 seconds, 60 seconds, or 90 seconds. For example, the current time is 20:00:00 on 6/8/2018, the predetermined time period is 20:00:00 on 6/8/2018, 20:00:30 on 6/8/2018, 20:00:00 on 6/8/2018, 20:01:00 on 6/8/2018, or 20:00:00 on 6/8/2018, 20:01:30 on 6/8/2018.
The movement trajectory includes a plurality of location points acquired by a positioning component (e.g., GPS component, compass component) of the target mobile terminal within a predetermined time period. The movement trajectory includes 60 position points acquired within 60 seconds by the GPS component of the target mobile terminal. Wherein the positioning assembly acquires a position point every 1 second or 2 seconds. For example, when the current time is 20:00:00 on 8/6/2018, the GPS component of the target mobile terminal acquires one location point per second within 60 seconds, that is, 60 location points in total.
Wherein determining the current position of the target mobile terminal according to the movement trajectory comprises: when all the plurality of position points included in the movement track are in a single place, determining the current position of the target mobile terminal by the single place. The single place may be, for example, a single building (office building, residential building), a single area (square, park), or the like. Each individual site has its own range, e.g., buildings and residential buildings, squares and parks, marked areas on maps, etc.
The method and the device determine the place name of the current place corresponding to the current position of the target mobile terminal. For example, when the current position of the target mobile terminal is determined to be within the north four-ring west road 9 of the hai lake district of beijing city according to the moving track of the target mobile terminal (for example, 60 position points within 60 seconds are all located within the north four-ring west road 9 of the hai lake district of beijing city), the place name of the current place corresponding to the current position of the target mobile terminal is determined to be the silver valley mansion (within the beijing city). Determining a current area range associated with the current location based on the location name of the current location, thereby determining a current area range associated with a current location. For example, the current area range associated with the current location is determined based on the location name "silver valley building" of the current location, i.e., the area range marked in the building of the silver valley building or on the map of the silver valley building (i.e., the squares in and around the building including the silver valley building), thereby determining the current area range associated with the current location. That is, the current position is associated with an area range marked in the building of the valley building or on the map of the valley building.
FIG. 2 is a logic diagram of an ordered list 200 according to an embodiment of the invention. As shown in fig. 2, the moving track of the target mobile terminal in a predetermined time period (6/8/2018/20: 00: 00-6/8/2018/20: 01:00) is obtained by using a positioning component (GPS component) of the target mobile terminal. The movement trajectory includes 60 location points acquired by the GPS component of the target mobile terminal within 60 seconds of 6/8/2018, 20:00: 00-6/8/20: 01: 00/2018. When all of the 60 location points are located in the current location or building 202 (the silverhouse), the operation probability of each user application at the current location is determined according to the operation statistical information of each user application and the current location of the target mobile terminal.
The building 202 includes an entrance 203, a movement trajectory 204, and an office 205. Wherein the entrance 203 is for example a door of the building 202. The movement trace 204 indicates that the user of the target mobile terminal is holding the target mobile terminal, enters the building 202 through the entrance 203 and proceeds to the office 205. Where one position point is recorded every 1 second. When the user enters the office 205, the location points become denser, indicating that the user enters the office for overtime.
Determining the operation probability of each user application at the current position according to the operation statistical information of each user application and the current position of the target mobile terminal comprises:
selecting a statistical date interval for determining the probability of operation, the statistical date interval including at least 10 natural days (e.g., 10 natural days, 20 natural days, 30 natural days);
each of the plurality of data items within the running statistics of each user application is parsed to determine the effective number of times Ci that each user application runs within the current area scope (e.g., current location or building 202) within the statistical date interval. Wherein the number of times of one activity is counted when the user's operation time of the application in the current area range (e.g., the current location or the building 202) exceeds 60 seconds. For example, if the continuous operation time of the pay bank application in the current area range (for example, the current location or the building 202) in each of 10 natural days is 50 seconds (operation does not exceed 60 seconds), 120 seconds, 0 seconds (operation does not exceed), 180 seconds, 360 seconds, 520 seconds, 780 seconds, 0 seconds (operation does not exceed 60 seconds), 55 seconds (operation does not exceed 60 seconds), and 600 seconds, the valid number of times of the pay bank application is 0+1+0+1+1+1+ 0+0+1 to 6 times. Wherein i is more than or equal to 1 and less than or equal to Na, Na is the number of user applications in the target mobile terminal, Na is a natural number and Na is more than 4;
based on the number of times of validity Ci of each user application within the statistical date interval within the current area range (e.g., current location or building 202), the total number of times of validity S of all user applications operating within the current area range is calculated:
Figure BDA0001769709050000231
and calculating the operation probability Pi of each user application in the current area as Ci/S, and taking Pi as the operation probability of each user application at the current position.
For example, if the pay for Bao application runs 6 times at the current area range (e.g., the current location or the building 202) on 10 natural days, the WeChat application runs 10 times at the current area range (e.g., the current location or the building 202) on 10 natural days, the Taobao application runs 3 times at the current area range (e.g., the current location or the building 202) on 10 natural days, the Wang is glory 1 time at the current area range (e.g., the current location or the building 202) on 10 natural days, and the Mei Gong application runs 0 times at the current area range (e.g., the current location or the building 202) on 10 natural days, S is 20 times. The operation probabilities of the pay for Bao, WeChat application, Taobao application, Royal and beauty application at the current area (e.g., the current location or building 202) are 30%, 50%, 15%, 5% and 0%, respectively.
Wherein determining the operation probability of each user application at the current position according to the operation statistical information of each user application and the current position of the target mobile terminal comprises:
selecting a statistical date interval for determining the probability of operation, the statistical date interval including at least 10 natural days (e.g., 10 natural days, 20 natural days, 30 natural days);
each of the plurality of data items within the operational statistics of each user application is parsed to determine a length of time ti for which each user application is operating within a current area range (e.g., current location or building 202) within the statistical date interval. The running time of the pay-for-treasure application in each of the 10 natural days in the current area range (e.g., the current location or the building 202) is 10 seconds, 60 seconds, 0 seconds, 50 seconds, 30 seconds, 90 seconds, 120 seconds, 0 seconds, 15 seconds, and 60 seconds, and then the length of time of the pay-for-treasure application is 435 seconds. Wherein i is more than or equal to 1 and less than or equal to Na, Na is the number of user applications in the target mobile terminal, Na is a natural number and Na is more than 4;
based on the length of time ti that each user application is operating within the statistical date interval within the current area range (e.g., current location or building 202), the total length of time T that all user applications are operating within the current area range is calculated:
Figure BDA0001769709050000232
and calculating the operation probability Pi of each user application in the current area range, namely ti/T, and taking Pi as the operation probability of each user application at the current position.
For example, if the pay for Bao application runs 435 seconds at the current area range (e.g., current location or building 202) on 10 natural days, the WeChat application runs 875 seconds at the current area range (e.g., current location or building 202) on 10 natural days, the Taobao application runs 500 seconds at the specific area range (e.g., current location or building 202) on 10 natural days, the Wang is glory for 190 seconds at the current area range (e.g., current location or building 202) on 10 natural days, and the Mei Gong application runs 0 seconds at the current area range (e.g., current location or building 202) on 10 natural days, then T is 2000 seconds. The operation probabilities of the pay for Bao, WeChat application, Taobao application, Royal and beauty application at the current area (e.g., current location or building 202) are 21.75%, 43.75%, 25%, 9.5% and 0%, respectively.
The sorting device 703 is configured to obtain a current state of the target mobile terminal by using a sensor component of the target mobile terminal, determine an adjustment coefficient for each user application according to the current state, calculate an adjusted operation probability of each user application at the current position based on the adjustment coefficient of each user application and the operation probability at the current position, and sort the plurality of user applications in a descending order of the operation probabilities based on the adjusted operation probability of each user application at the current position to generate a sorted list.
Wherein the sensor assembly for example comprises: a brightness sensor, an acceleration sensor, an ambient temperature sensor, etc. The method for acquiring the current state of the target mobile terminal by using the sensor component of the target mobile terminal comprises the following steps:
and acquiring that the current state of the target mobile terminal is a strong light state, a soft light state or a weak light state by using a brightness sensor in a sensor assembly of the target mobile terminal. The strong light state is a state that the illumination intensity is greater than 10000 lux; the soft light state is a state in which the illuminance is less than or equal to 10000 lux and the illuminance is greater than or equal to 100 lux; a low light state is less than 100 lux. The bright light state, soft light state, or weak light state may refer to an illuminance of an external light with respect to a display screen of the target mobile terminal
Determining an adjustment factor for each user application according to the current state comprises:
in case that the current state of the target mobile terminal is a bright light state, the adjustment coefficient applied by each user is less than 1, for example, 0.8; in the case that the current state of the target mobile terminal is a soft light state, the adjustment coefficient applied by each user is greater than 1, for example, 1.2; in case that the current state of the target mobile terminal is a low light state, the adjustment coefficient applied by each user is less than 1, for example, 0.9. This is because in both the bright light state and the weak light state, the user may not be able to operate the user application using the target mobile terminal, and therefore the adjustment coefficient is less than 1. In the soft light condition, the willingness of the user to use the target mobile terminal to run the user application is greatly enhanced, so that the adjustment coefficient is larger than 1.
The method for acquiring the current state of the target mobile terminal by using the sensor component of the target mobile terminal comprises the following steps:
and acquiring the current state of the target mobile terminal by using an acceleration sensor in a sensor assembly of the target mobile terminal, wherein the current state is that a display screen is upwards, the display screen is downwards, and the current state is in horizontal movement or vertical movement. Wherein the display screen is facing upwards, for example, the user places the target mobile terminal on a desktop and the display screen side is facing upwards; the display screen is downward, for example, the user places the target mobile terminal on a desktop and the display screen is downward on one side; the horizontal movement is, for example, a user placing the target mobile terminal in a hand or carrying the target mobile terminal with him for horizontal movement (for example, moving in a flat office); the vertical movement is, for example, a user putting the target mobile terminal in a hand or carrying it with him for vertical movement (e.g., taking an elevator).
Determining an adjustment factor for each user application according to the current state comprises:
under the condition that the current state of the target mobile terminal is that the display screen faces upwards, the adjusting coefficient applied by each user is larger than 1, for example 1.2; in the case that the current state of the target mobile terminal is the display screen facing down, the adjustment coefficient applied by each user is less than 1, for example, 0.3; in the case that the current state of the target mobile terminal is horizontal movement, the adjustment coefficient applied by each user is less than 1, for example, 0.9; in case that the current state of the target mobile terminal is a vertical direction movement, the adjustment coefficient applied by each user is less than 1, for example, 0.7. Since the probability of using the target mobile terminal to run the user application is high when the user sets the target mobile terminal to have the display screen facing upward, the adjustment coefficient is greater than 1 for this reason. Since the probability of using the target mobile terminal to run the user application is small when the user sets the target mobile terminal to move the display screen downward, in the horizontal direction, or in the vertical direction, for this reason, the adjustment coefficient is smaller than 1.
The method for acquiring the current state of the target mobile terminal by using the sensor component of the target mobile terminal comprises the following steps:
and acquiring that the current state of the target mobile terminal is a hot state, a high-temperature state, a proper state, a low-temperature state or a cold state by using an ambient temperature sensor in a sensor assembly of the target mobile terminal.
Determining an adjustment factor for each user application according to the current state comprises:
in the case that the current state of the target mobile terminal is a hot state, the adjustment coefficient applied by each user is less than 1, for example, 0.8; under the condition that the current state of the target mobile terminal is a high-temperature state, the adjustment coefficient applied by each user is less than 1, such as 0.9; in the case that the current state of the target mobile terminal is a suitable state, the adjustment coefficient applied by each user is greater than 1, for example, 1.2; in the case that the current state of the target mobile terminal is a low temperature state, the adjustment coefficient applied by each user is less than 1, for example, 0.9; in the case where the current state of the target mobile terminal is a cold state, the adjustment coefficient applied by each user is less than 1, for example, 0.6; wherein the hot state is that the air temperature T is more than or equal to 32 ℃; a high temperature state of 32 ℃ to 25 ℃ inclusive, a suitable state of 25 ℃ to 18 ℃ inclusive, a low temperature state of 18 ℃ to 8 ℃ inclusive, or a cold state of 8 ℃ to temperature T inclusive.
Since the probability that the user uses the target mobile terminal to run the user application is high when the ambient temperature is in a suitable state, the adjustment coefficient is greater than 1 for this reason. Since the probability that the user uses the target mobile terminal to run the user application is small in the case where the ambient temperature is in a hot state, a high temperature state, a low temperature state, or a cold state, for this reason, the adjustment coefficient is greater than 1.
The calculating of the adjusted operation probability of each user application at the current location based on the adjustment coefficient of each user application and the operation probability at the current location comprises:
and taking the product of the adjusting coefficient of each user application and the running probability at the current position as the adjusted running probability of each user application at the current position.
In the example shown in fig. 2, as shown in table 206, in the current regional range (for example, the current position or the building 202) within 10 natural days from 6/1/2018 to 6/10/2018, the operation probability of the royal glory is 15%, the operation probability of the trembled short video is 13.3%, the operation probability of the kumquat video is 12.5%, the operation probability of the mobile phone panning is 10.8%, the operation probability of the mei group takeout is 8.3%, the operation probability of the Baidu takeout is 7.5%, the operation probability of the mastership is 5.8%, the operation probability of the tribuna takeout is 5%, and the operation probability of the lazy english is 0%.
The method comprises the step of acquiring that the current state of the target mobile terminal is the appropriate state by utilizing an ambient temperature sensor in a sensor assembly of the target mobile terminal. Determining an adjustment factor for each user application based on the fitness state comprises: in case that the current state of the target mobile terminal is a suitable state, the adjustment coefficient applied by each user is greater than 1, for example, 1.2. The product of the adjustment factor of each user application and the operating probability at the current location is used as the adjusted operating probability of each user application at the current location, i.e., the operating probability × 1.2 — the adjusted operating probability.
In the example shown in fig. 2, as shown in table 201, in the current regional range (for example, the current location or the building 202) within 10 natural days from 6/1/2018 to 6/10/2018, the adjusted operation probability of the royal glory is 18%, the adjusted operation probability of the judder short video is 16%, the adjusted operation probability of the kukoku video is 15%, the adjusted operation probability of the cell phone panning is 13%, the adjusted operation probability of the mei group takeaway is 10%, the adjusted operation probability of the Baidu takeaway is 9%, the adjusted operation probability of the mastership is 7%, the adjusted operation probability of the mastership is 6%, and the adjusted operation probability of the sanguo english is 0%.
Setting means 704 is configured to determine at least one pre-fetch user application of the plurality of user applications that can be pre-loaded from the second memory into the first memory according to the ordered list, and set a storage level for each pre-fetch user application of the at least one pre-fetch user application according to the ordered list, wherein the storage level comprises: a decrement storage stage, an increment storage stage, a quantitative storage stage and a compression storage stage; and setting the storage level of the dynamic storage unit allocated to each pre-fetching user application according to the storage level of each pre-fetching user application.
Wherein determining from the ordered list a plurality of pre-fetch user applications of the plurality of user applications that can be pre-loaded from a second memory into a first memory comprises: when the number of user applications in the ordered list having an operating probability greater than the pre-fetch threshold (e.g., 5%, 10%) is greater than 0 (e.g., 10), determining the user applications in the ordered list having an operating probability greater than the pre-fetch threshold as pre-fetch user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetch user application; when the number of user applications in the ordered list having a running probability greater than the pre-fetch threshold (e.g., 5%, 10%) is equal to 0, all user applications (e.g., 15) in the ordered list are determined as pre-fetched user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetched user application.
Wherein setting a storage level for each of at least one pre-fetch user application according to the ordered list comprises: setting a storage level of the pre-fetched user applications in the ordered list having an operational probability greater than a high probability threshold (e.g., 15%) to a reduced storage level; setting a storage level of the pre-fetch user application in the sorted list having a probability of operation less than or equal to a high probability threshold (e.g., 15%) and greater than a medium probability threshold (e.g., 12%) as an incremental storage level; setting a storage level of the pre-fetched user applications in the sorted list having a probability of operation less than or equal to a medium probability threshold (e.g., 12%) and greater than a low probability threshold (e.g., 8%) as a quantitative storage level; setting a storage level of the pre-fetched user applications in the sorted list having an operating probability less than or equal to a low probability threshold (e.g., 8%) as a compressed storage level. Wherein the pre-fetching of user applications has a running probability of more than 5%.
The allocation means 705 is adapted to allocate at least one dynamic memory location for each pre-fetch user application of the reduced memory rank, at least one dynamic memory location for each pre-fetch user application of the compressed memory rank, one dynamic memory location for each pre-fetch user application of the increased memory rank and one dynamic memory location for each pre-fetch user application of the quantitative memory rank. Wherein the storage capacity of each of the at least one dynamic storage unit allocated for each of the pre-fetched user applications of the reduced storage tier may be the same or different, and the storage capacity of each of the at least one dynamic storage unit allocated for each of the pre-fetched user applications of the compressed storage tier may be the same or different.
The total storage capacity of the at least one dynamic storage unit allocated for the pre-fetching user application of each reduced storage tier is capable of accommodating all data files of the pre-fetching user application of the corresponding reduced storage tier. The total storage capacity of the at least one dynamic storage unit allocated for the pre-fetching user application of each compressed storage tier is capable of accommodating all compressed data files of the pre-fetching user application of the corresponding compressed storage tier. One dynamic memory unit is allocated for each pre-fetching user application of the incremental storage tier that can accommodate all data files of the pre-fetching user application of the corresponding incremental storage tier. One dynamic memory unit is allocated to each pre-fetching user application of a quantitative memory rank to be able to accommodate all data files of the pre-fetching user application of the corresponding quantitative memory rank.
The prefetching means 706 is configured to prefetch data from the second memory for the data file associated with each prefetching user application according to the storage level of the prefetching user application, and includes:
copying a plurality of data files associated with each pre-fetch user application of the reduced storage tier from the second memory to the dynamic storage unit of at least one reduced storage tier allocated for each pre-fetch user application of the reduced storage tier, setting a first time period for the dynamic storage unit of each reduced storage tier upon completion of the copying and starting timing, deleting a first predetermined number of data files in the dynamic storage unit of each reduced storage tier each time the first time period expires;
selecting at least one base data file among the plurality of data files associated with each pre-fetching user application of the incremental storage tier, copying the at least one base data file of each pre-fetching user application of the incremental storage tier from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier, setting a second time period and starting timing for the dynamic storage unit of the incremental storage tier upon completion of the copying, wherein a second predetermined number of data files among the plurality of data files associated with each pre-fetching user application of the incremental storage tier are copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier each time the second time period expires;
selecting at least one data file from the plurality of data files associated with each pre-fetch user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier and copying the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier; and
the method further includes compressing the plurality of data files associated with each pre-fetch user application of the compressed storage tier to generate a plurality of compressed data files, copying the plurality of compressed data files of each pre-fetch user application of the compressed storage tier from the second memory to a dynamic storage unit of at least one compressed storage tier allocated for each pre-fetch user application of the compressed storage tier.
The initialization device 707 is configured to, in response to a data prefetching request initiated by a user and used for performing data prefetching on a data file associated with a user application of a target mobile terminal in a mobile internet, obtain a dynamic configuration file associated with the data prefetching;
creating a dynamic index area in a first memory of the target mobile terminal, and creating a plurality of dynamic storage units for storing data files in the first memory according to the dynamic configuration file, wherein the storage capacity of each of the plurality of dynamic storage units is determined according to the dynamic configuration file; and
and generating a dynamic index table in the dynamic index area, wherein the dynamic index table comprises a plurality of index entries, and each index entry is used for recording the application identification, the starting address, the ending address, the storage capacity and the storage level of a corresponding dynamic storage unit in a plurality of dynamic storage units.

Claims (10)

1. A method for prefetching data within a mobile internet based on a current location, the method comprising:
acquiring an operation statistical file associated with a target mobile terminal in a mobile internet, and analyzing the operation statistical file to acquire operation statistical information of each user application in a plurality of user applications in the target mobile terminal;
acquiring a moving track of the target mobile terminal within a preset time period by using a positioning component of the target mobile terminal, determining the current position of the target mobile terminal according to the moving track, and determining the operation probability of each user application at the current position according to the operation statistical information of each user application and the current position of the target mobile terminal;
acquiring a current state of the target mobile terminal by using a sensor assembly of the target mobile terminal, determining an adjustment coefficient for each user application according to the current state, calculating an adjusted operation probability of each user application at the current position based on the adjustment coefficient of each user application and the operation probability at the current position, and performing descending ordering of the operation probabilities on a plurality of user applications based on the adjusted operation probability of each user application at the current position to generate an ordered list;
determining at least one of the plurality of user applications that can be preloaded from the second memory into the first memory according to the ordered list, and setting a storage level for each of the at least one pre-fetching user application according to the ordered list, wherein the storage level comprises: a decrement storage stage, an increment storage stage, a quantitative storage stage and a compression storage stage;
allocating at least one dynamic memory unit for each pre-fetch user application of the decrement storage stage, allocating at least one dynamic memory unit for each pre-fetch user application of the compression storage stage, allocating one dynamic memory unit for each pre-fetch user application of the increment storage stage and allocating one dynamic memory unit for each pre-fetch user application of the quantitive storage stage;
setting a storage level for a dynamic storage unit allocated to each pre-fetching user application according to the storage level of each pre-fetching user application;
prefetching data from the second memory for a data file associated with each prefetched user application according to the storage level of the prefetched user application, comprising:
copying a plurality of data files associated with each pre-fetch user application of the reduced storage tier from the second memory to the dynamic storage unit of at least one reduced storage tier allocated for each pre-fetch user application of the reduced storage tier, setting a first time period for the dynamic storage unit of each reduced storage tier upon completion of the copying and starting timing, deleting a first predetermined number of data files in the dynamic storage unit of each reduced storage tier each time the first time period expires;
selecting at least one base data file among the plurality of data files associated with each pre-fetching user application of the incremental storage tier, copying the at least one base data file of each pre-fetching user application of the incremental storage tier from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier, setting a second time period and starting timing for the dynamic storage unit of the incremental storage tier upon completion of the copying, wherein a second predetermined number of data files among the plurality of data files associated with each pre-fetching user application of the incremental storage tier are copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier each time the second time period expires;
selecting at least one data file from the plurality of data files associated with each pre-fetch user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier and copying the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier; and
compressing the plurality of data files associated with each pre-fetch user application of the compressed storage tier to generate a plurality of compressed data files, copying the plurality of compressed data files of each pre-fetch user application of the compressed storage tier from the second memory to the dynamic storage unit of the at least one compressed storage tier allocated for each pre-fetch user application of the compressed storage tier;
determining the current position of the target mobile terminal according to the movement track comprises:
when all the plurality of position points included in the movement track are in a single place, determining the current position of the target mobile terminal by the single place;
determining a place name of a current place corresponding to the current position of the target mobile terminal, and determining a current area range associated with the current place based on the place name of the current place, thereby determining the current area range associated with the current position;
determining the operation probability of each user application at the current position according to the operation statistical information of each user application and the current position of the target mobile terminal comprises:
selecting a statistical date interval for determining an operational probability, the statistical date interval comprising at least 10 natural days;
analyzing each data item in a plurality of data items in the running statistical information of each user application to determine the effective times Ci of running of each user application in the current region range in a statistical date interval, wherein i is more than or equal to 1 and less than or equal to Na, Na is the number of user applications in the target mobile terminal, Na is a natural number and Na is more than 4;
calculating the total effective times S of all the user applications in the current region range based on the effective times Ci of each user application in the statistical date range and running in the current region range:
Figure FDA0002832174070000021
calculating the operation probability Pi of each user application in the current region range as Ci/S, and taking Pi as the operation probability of each user application at the current position;
when the running time of the user application in the current area range exceeds 60 seconds, counting as one-time effective times;
before obtaining the operation statistical file associated with the target mobile terminal in the mobile internet, the method further comprises the following steps:
responding to a data prefetching request initiated by a user and used for prefetching data aiming at a data file, associated with a user application, of a target mobile terminal in a mobile internet, and acquiring a dynamic configuration file associated with the data prefetching;
creating a dynamic index area in a first memory of the target mobile terminal, and creating a plurality of dynamic storage units for storing data files in the first memory according to the dynamic configuration file, wherein the storage capacity of each of the plurality of dynamic storage units is determined according to the dynamic configuration file; and
and generating a dynamic index table in the dynamic index area, wherein the dynamic index table comprises a plurality of index entries, and each index entry is used for recording the application identification, the starting address, the ending address, the storage capacity and the storage level of a corresponding dynamic storage unit in a plurality of dynamic storage units.
2. The method of claim 1, comprising a plurality of mobile terminals within the mobile internet and determining a mobile terminal initiating a data pre-fetch request as a target mobile terminal, wherein the number of user applications is greater than 4; the operation statistical file comprises a plurality of operation data tables, one operation data table is distributed to each user application in a plurality of user applications in the target mobile terminal, each operation data table comprises a plurality of operation data items, and the content of each operation data item is quintuple < application name, operation position, start time, end time and accumulated time length >; the operation data table distributed for each user application is used as the operation statistical information of each user application, and the operation data table distributed for each user application is used for recording the operation position information of each user application in real time; in the operation statistical file, storing a preset number of operation data items for each user application, or storing a preset number of operation data items within a natural day or a preset time length for each user application; wherein the predetermined number of natural days is 10 natural days, 20 natural days, or 30 natural days, and wherein the predetermined time length is 240 hours, 480 hours, or 720 hours.
3. The method of any of claims 1-2, wherein the predetermined period of time is a period of time ending at a current time and starting at a time 30 seconds, 60 seconds, or 90 seconds before; or the predetermined period of time is a period of time starting from the current time and having a length of 30 seconds, 60 seconds, or 90 seconds; the movement track comprises a plurality of position points acquired by a positioning component of the target mobile terminal within a preset time period; wherein the positioning assembly acquires a position point every 1 second or 2 seconds.
4. The method of any of claims 1-2, wherein acquiring the current state of the target mobile terminal using a sensor component of the target mobile terminal comprises:
acquiring the current state of the target mobile terminal as a highlight state, a soft light state or a weak light state by using a brightness sensor in a sensor assembly of the target mobile terminal;
wherein determining an adjustment factor for each user application according to the current state comprises:
under the condition that the current state of the target mobile terminal is a highlight state, the adjustment coefficient applied by each user is smaller than 1;
under the condition that the current state of the target mobile terminal is a soft light state, the adjustment coefficient applied by each user is greater than 1;
in case that the current state of the target mobile terminal is a low light state, the adjustment coefficient applied by each user is less than 1.
5. The method of any of claims 1-2, wherein acquiring the current state of the target mobile terminal using a sensor component of the target mobile terminal comprises:
acquiring the current state of the target mobile terminal by using an acceleration sensor in a sensor assembly of the target mobile terminal, wherein the current state is that a display screen is upwards, the display screen is downwards, and the current state moves in the horizontal direction or the vertical direction;
wherein determining an adjustment factor for each user application according to the current state comprises:
under the condition that the current state of the target mobile terminal is that the display screen is upward, the adjustment coefficient applied by each user is greater than 1;
under the condition that the current state of the target mobile terminal is that the display screen faces downwards, the adjusting coefficient applied by each user is smaller than 1;
under the condition that the current state of the target mobile terminal is moving in the horizontal direction, the adjustment coefficient applied by each user is less than 1;
in the case where the current state of the target mobile terminal is a vertical direction movement, the adjustment coefficient applied by each user is less than 1.
6. A system for prefetching data within a mobile internet based on a current location, the system comprising:
the analysis device is used for acquiring an operation statistical file associated with a target mobile terminal in a mobile internet and analyzing the operation statistical file to acquire operation statistical information of each user application in a plurality of user applications in the target mobile terminal;
the probability determination device is used for acquiring a moving track of the target mobile terminal within a preset time period by using a positioning component of the target mobile terminal, determining the current position of the target mobile terminal according to the moving track, and determining the operation probability of each user application at the current position according to the operation statistical information of each user application and the current position of the target mobile terminal;
a sorting device, which acquires the current state of the target mobile terminal by using a sensor component of the target mobile terminal, determines an adjustment coefficient for each user application according to the current state, calculates the adjusted operation probability of each user application at the current position based on the adjustment coefficient of each user application and the operation probability at the current position, and sorts the operation probabilities of a plurality of user applications in a descending order based on the adjusted operation probability of each user application at the current position to generate a sorted list;
setting means for determining at least one pre-fetch user application of the plurality of user applications that can be pre-loaded from the second memory into the first memory according to the ordered list, and setting a storage level for each pre-fetch user application of the at least one pre-fetch user application according to the ordered list, wherein the storage level comprises: a decrement storage stage, an increment storage stage, a quantitative storage stage and a compression storage stage; setting a storage level for a dynamic storage unit allocated to each pre-fetching user application according to the storage level of each pre-fetching user application;
the allocation device allocates at least one dynamic storage unit for each pre-fetching user application of the decrement storage level, allocates at least one dynamic storage unit for each pre-fetching user application of the compression storage level, allocates one dynamic storage unit for each pre-fetching user application of the increment storage level and allocates one dynamic storage unit for each pre-fetching user application of the quantitative storage level;
prefetching means for prefetching data from the second memory for the data file associated with each prefetched user application according to the storage level of the prefetched user application, comprising:
copying a plurality of data files associated with each pre-fetch user application of the reduced storage tier from the second memory to the dynamic storage unit of at least one reduced storage tier allocated for each pre-fetch user application of the reduced storage tier, setting a first time period for the dynamic storage unit of each reduced storage tier upon completion of the copying and starting timing, deleting a first predetermined number of data files in the dynamic storage unit of each reduced storage tier each time the first time period expires;
selecting at least one base data file among the plurality of data files associated with each pre-fetching user application of the incremental storage tier, copying the at least one base data file of each pre-fetching user application of the incremental storage tier from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier, setting a second time period and starting timing for the dynamic storage unit of the incremental storage tier upon completion of the copying, wherein a second predetermined number of data files among the plurality of data files associated with each pre-fetching user application of the incremental storage tier are copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier each time the second time period expires;
selecting at least one data file from the plurality of data files associated with each pre-fetch user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier and copying the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier; and
compressing the plurality of data files associated with each pre-fetch user application of the compressed storage tier to generate a plurality of compressed data files, copying the plurality of compressed data files of each pre-fetch user application of the compressed storage tier from the second memory to the dynamic storage unit of the at least one compressed storage tier allocated for each pre-fetch user application of the compressed storage tier; determining the current position of the target mobile terminal according to the movement track comprises:
when all the plurality of position points included in the movement track are in a single place, determining the current position of the target mobile terminal by the single place;
determining a place name of a current place corresponding to the current position of the target mobile terminal, and determining a current area range associated with the current place based on the place name of the current place, thereby determining the current area range associated with the current position;
wherein the determining, by the probability determining device, the operation probability of each user application at the current location according to the operation statistical information of each user application and the current location of the target mobile terminal comprises:
selecting a statistical date interval for determining an operational probability, the statistical date interval comprising at least 10 natural days;
analyzing each data item in a plurality of data items in the running statistical information of each user application to determine the effective times Ci of running of each user application in the current region range in a statistical date interval, wherein i is more than or equal to 1 and less than or equal to Na, Na is the number of user applications in the target mobile terminal, Na is a natural number and Na is more than 4;
calculating the total effective times S of all the user applications in the current region range based on the effective times Ci of each user application in the statistical date range and running in the current region range:
Figure FDA0002832174070000041
calculating the operation probability Pi of each user application in the current region range as Ci/S, and taking Pi as the operation probability of each user application at the current position;
when the running time of the user application in the current area range exceeds 60 seconds, counting as one-time effective times;
the system comprises a mobile internet and an initialization device, wherein the initialization device is used for responding to a data prefetching request initiated by a user and used for prefetching data aiming at a data file of a target mobile terminal in the mobile internet and relevant to user application, and acquiring a dynamic configuration file relevant to data prefetching;
creating a dynamic index area in a first memory of the target mobile terminal, and creating a plurality of dynamic storage units for storing data files in the first memory according to the dynamic configuration file, wherein the storage capacity of each of the plurality of dynamic storage units is determined according to the dynamic configuration file; and
and generating a dynamic index table in the dynamic index area, wherein the dynamic index table comprises a plurality of index entries, and each index entry is used for recording the application identification, the starting address, the ending address, the storage capacity and the storage level of a corresponding dynamic storage unit in a plurality of dynamic storage units.
7. The system of claim 6, comprising a plurality of mobile terminals within the mobile internet and determining a mobile terminal initiating a data prefetch request as a target mobile terminal, wherein the number of user applications is greater than 4; the operation statistical file comprises a plurality of operation data tables, one operation data table is distributed to each user application in a plurality of user applications in the target mobile terminal, each operation data table comprises a plurality of operation data items, and the content of each operation data item is quintuple < application name, operation position, start time, end time and accumulated time length >; the operation data table distributed for each user application is used as the operation statistical information of each user application, and the operation data table distributed for each user application is used for recording the operation position information of each user application in real time; in the operation statistical file, storing a preset number of operation data items for each user application, or storing a preset number of operation data items within a natural day or a preset time length for each user application; wherein the predetermined number of natural days is 10 natural days, 20 natural days, or 30 natural days, and wherein the predetermined time length is 240 hours, 480 hours, or 720 hours.
8. The system of any of claims 6-7, wherein the predetermined period of time is a period of time that ends at a current time and begins at a time 30 seconds, 60 seconds, or 90 seconds before; or the predetermined period of time is a period of time starting from the current time and having a length of 30 seconds, 60 seconds, or 90 seconds; the movement track comprises a plurality of position points acquired by a positioning component of the target mobile terminal within a preset time period; wherein the positioning assembly acquires a position point every 1 second or 2 seconds.
9. The system according to any one of claims 6 to 7, wherein the sorting means acquiring the current state of the target mobile terminal using the sensor component of the target mobile terminal comprises:
acquiring the current state of the target mobile terminal as a highlight state, a soft light state or a weak light state by using a brightness sensor in a sensor assembly of the target mobile terminal;
wherein the determining, by the ranking device, an adjustment factor for each user application according to the current state comprises:
under the condition that the current state of the target mobile terminal is a highlight state, the adjustment coefficient applied by each user is smaller than 1;
under the condition that the current state of the target mobile terminal is a soft light state, the adjustment coefficient applied by each user is greater than 1;
in case that the current state of the target mobile terminal is a low light state, the adjustment coefficient applied by each user is less than 1.
10. The system according to any one of claims 6 to 7, wherein the sorting means acquiring the current state of the target mobile terminal using the sensor component of the target mobile terminal comprises:
acquiring the current state of the target mobile terminal by using an acceleration sensor in a sensor assembly of the target mobile terminal, wherein the current state is that a display screen is upwards, the display screen is downwards, and the current state moves in the horizontal direction or the vertical direction;
wherein the determining, by the ranking device, an adjustment factor for each user application according to the current state comprises:
under the condition that the current state of the target mobile terminal is that the display screen is upward, the adjustment coefficient applied by each user is greater than 1;
under the condition that the current state of the target mobile terminal is that the display screen faces downwards, the adjusting coefficient applied by each user is smaller than 1;
under the condition that the current state of the target mobile terminal is moving in the horizontal direction, the adjustment coefficient applied by each user is less than 1;
in the case where the current state of the target mobile terminal is a vertical direction movement, the adjustment coefficient applied by each user is less than 1.
CN201810943812.8A 2018-08-18 2018-08-18 Method and system for prefetching data in mobile internet based on current position Expired - Fee Related CN109151196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810943812.8A CN109151196B (en) 2018-08-18 2018-08-18 Method and system for prefetching data in mobile internet based on current position

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810943812.8A CN109151196B (en) 2018-08-18 2018-08-18 Method and system for prefetching data in mobile internet based on current position

Publications (2)

Publication Number Publication Date
CN109151196A CN109151196A (en) 2019-01-04
CN109151196B true CN109151196B (en) 2021-04-20

Family

ID=64789970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810943812.8A Expired - Fee Related CN109151196B (en) 2018-08-18 2018-08-18 Method and system for prefetching data in mobile internet based on current position

Country Status (1)

Country Link
CN (1) CN109151196B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114817174B (en) * 2022-04-02 2023-08-15 中新社(北京)国际传播集团有限公司 Method and system for prefetching data in mobile internet according to regional scope

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186566A (en) * 2011-12-28 2013-07-03 中国移动通信集团河北有限公司 Data classification storage method, device and system
CN106055706A (en) * 2016-06-23 2016-10-26 杭州迪普科技有限公司 Cache resource storage method and device
CN106293803A (en) * 2016-07-22 2017-01-04 宇龙计算机通信科技(深圳)有限公司 A kind of application control method and device
CN107544822A (en) * 2017-07-26 2018-01-05 北京珠穆朗玛移动通信有限公司 Application program pre-add support method, mobile terminal and the device with store function

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186566A (en) * 2011-12-28 2013-07-03 中国移动通信集团河北有限公司 Data classification storage method, device and system
CN106055706A (en) * 2016-06-23 2016-10-26 杭州迪普科技有限公司 Cache resource storage method and device
CN106293803A (en) * 2016-07-22 2017-01-04 宇龙计算机通信科技(深圳)有限公司 A kind of application control method and device
CN107544822A (en) * 2017-07-26 2018-01-05 北京珠穆朗玛移动通信有限公司 Application program pre-add support method, mobile terminal and the device with store function

Also Published As

Publication number Publication date
CN109151196A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN108028054B (en) Synchronizing audio and video components of an automatically generated audio/video presentation
CN106708986B (en) Multimedia information recommendation method and device
US8438127B2 (en) Behaviour pattern analysis system, mobile terminal, behaviour pattern analysis method, and program
CN110275983B (en) Retrieval method and device of traffic monitoring data
CN105681830A (en) Advertisement playing system and playing platform based on interest points of user
US20070185899A1 (en) Likelihood-based storage management
CN106878372B (en) Information pushing method and device
CN104853230B (en) A kind of hot video method for pushing and device
CN109151196B (en) Method and system for prefetching data in mobile internet based on current position
KR20200023013A (en) Video Service device for supporting search of video clip and Method thereof
CN115017400A (en) Application APP recommendation method and electronic equipment
CN109240987B (en) Method and system for prefetching data based on time for mobile internet
CN109240574B (en) Method and system for prefetching files in mobile internet based on operation heat
JP2016152000A (en) Information collection device, traffic volume evaluation system, guide facility, information collection method, and program
CN102419773B (en) Method, device and equipment used for sequencing resource items
CN109144960B (en) Method and system for prefetching data in mobile internet according to area range
CN109189737B (en) Method and system for prefetching files in mobile internet according to time segments
CN109271352B (en) Method and system for prefetching files in mobile internet according to state information
CN109033445B (en) Method and system for prefetching files in mobile internet according to running application
CN109271345B (en) Method and system for prefetching data based on navigation information in mobile internet
CN113114929B (en) Photographing guiding method, terminal device, electronic device and storage medium
CN105634981B (en) Content caching and transmission method and its system
JP5708868B1 (en) Program, information processing apparatus and method
CN110324292B (en) Authentication device, authentication method, and computer storage medium
JP6972612B2 (en) Storage equipment, management equipment, information processing systems, control methods and programs

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
TA01 Transfer of patent application right

Effective date of registration: 20210401

Address after: 12 / F, main building, high tech Zone building, hengsan Road, high tech Zone, Yangzhou City, Jiangsu Province, 225000

Applicant after: LANCET TECHNOLOGY Co.,Ltd.

Address before: 110034 gate 2, 14th floor, unit 1, building 6, No.10 Xianglushan Road, Shenyang City, Liaoning Province

Applicant before: Wang Mei

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210420

Termination date: 20210818

CF01 Termination of patent right due to non-payment of annual fee