Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for displaying script files using a virtual machine

A script file and display file technology, applied in special data processing applications, program control design, instruments, etc., can solve the problem of high CPU consumption, achieve the effect of improving utilization rate, reducing system load, and reducing resource consumption

Active Publication Date: 2017-05-10
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Based on this, it is necessary to provide a method and device for displaying script files using a virtual machine to address the technical problem of high CPU consumption in the prior art when executing script file display on a virtual machine

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for displaying script files using a virtual machine
  • A method and device for displaying script files using a virtual machine
  • A method and device for displaying script files using a virtual machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention will be further described in detail below with reference to the drawings and embodiments.

[0019] Such as figure 1 Shown is a working flow chart of a method for displaying script files using a virtual machine according to the present invention, including:

[0020] Step S101, receiving a webpage generation request including a target location sent by the client;

[0021] Step S102, obtaining the saved script file according to the target location;

[0022] Step S103: Retrieve the latest version of the script file to compile the compiled file. If the compiled file is retrieved, the virtual machine is used to parse and execute the compiled file to obtain the display file of the script file, and send it to the The client returns the display file, and the display file is used to display a web page on the client.

[0023] Among them, in step S102, the script file is saved in a disk or a database.

[0024] Wherein, in step S103, the compiled file is compiled and sav...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Disclosed is a method and device for displaying script files by a virtual machine. The displaying method includes receiving page generating requests, containing target locations, sent by a client terminal; acquiring stored script files according to the target locations, retrieving compiled files compiled from the latest version of the script files; if the compiled files are retrieved, adopting the virtual machine to execute the compiled files, obtaining display files of the script files, and returning the display files used for displaying the page at the client terminal to the client terminal. According to the method, after the script files are determined, the retrieved compiled files are analyzed directly, so that the display files used for displaying the page at the client terminal. Since the compiles files are pre-stored, same script files are not required to be compiled repeatedly; source consumption is reduced, using rate of a system CPU is provided, and system load is reduced.

Description

Technical field [0001] The invention relates to the technical field related to displaying script files, in particular to a method and device for displaying script files by using a virtual machine. Background technique [0002] Script files, namely dynamic webpage files, such as php script files, use the server-side php script interpreter to analyze, interpret, and calculate the php script files, generate HTML format content, and respond to the client browser. Because the data on the server needs to be combined, the existing script file display method generally needs to first compile the script file, perform type deduction and optimization, and then analyze and execute the compiled file to obtain the calculation result, usually in HTML format. The client obtains the calculation result and displays it. [0003] This method is generally applied to a server. Because the server has a relatively powerful function and has more CPU resources, the server can basically support compilation a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
CPCG06F9/45504G06F16/9574
Inventor 刘垒胡志广王宏
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD