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

Method for loading linux program codes and device thereof

A program code and code technology, applied in the field of linux program code loading, can solve problems such as service interruption

Active Publication Date: 2013-11-27
蓝汛网络科技(北京)有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a method and device for loading linux program codes, which are used to solve the problem in the prior art that the program must be restarted after the linux program is modified, resulting in service interruption

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
  • Method for loading linux program codes and device thereof
  • Method for loading linux program codes and device thereof
  • Method for loading linux program codes and device thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to solve the problem that the program under linux existing in the prior art has been modified and the program must be restarted, the first embodiment of the present invention provides a method for loading linux program codes. The method provided by this embodiment is as follows: figure 2 Shown include the following steps:

[0022] Step 101 , start the application program 1 .

[0023] The application program 1 is a cache software program, or other programs based on linux.

[0024] Step 102, load only the frame part code of the application program 1 code into the frame segment of the memory address space through the Linux operating system.

[0025] The code of the frame part (the code of the frame part in the "read-only code and data" section) includes the code of the request reading part, the code of the request parsing part, the code of the response generation part and the loading code, and the loading code is necessary. The code of the request reading part,...

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

The invention discloses a method for loading linux program codes and a device thereof, which solves the problem that a linux program needs to be restarted before correction to cause service interruption in the prior art. The method comprises the following steps: starting up the linux program; only adding the loading codes among the linux program codes into an address space by a linux operating system, and operating the loading codes; loading the other part of codes into the address space; after the other part of codes are corrected, reloading the loading codes; and reloading the corrected codes in the other part into the address space. In the method, when only the other part of codes in the linux program is corrected, the program does not need to be restarted so as to avoid service interruption.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a method and a device for loading linux program codes. Background technique [0002] The address space of the software process under linux is mainly divided into figure 1 The following blocks are shown: kernel address space, user stack address space, shared library mapping area address space, internal runtime heap address space, readable and writable global data address space, "read-only code and data" address space As well as reserved address space, the code of the program under linux is stored in the "read-only code and data" segment. When the program starts, the operating system will load all the code in the executable file into the "read-only code and data" segment, and then start executing from the entry point of the program (that is, the location of the main function). [0003] This has an obvious disadvantage: as long as any modification is made to the prog...

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): G06F9/445
Inventor 斯文栗伟周东树田江波钟东黄勇黄超生刘研张蕴锋
Owner 蓝汛网络科技(北京)有限公司