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: 2011-03-09
蓝汛网络科技(北京)有限公司
View PDF3 Cites 1 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

[0019] In order to solve the problem in the prior art that the program under Linux must be restarted after any modification is made, the first embodiment of the present invention provides a method for loading Linux program code. The method provided in this embodiment is as follows: figure 2 Shown includes the following steps:

[0020] Step 101: Start the application program 1.

[0021] Application 1 is a cache software program, or other programs based on linux.

[0022] 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.

[0023] The code of the frame part (the code of the frame segment in the "read-only code and data" segment) 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. The loading code is necessary. The code of the request reading part, the code of the request parsing par...

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 field of computer technology, and particularly relates to a method and device for loading linux program code. Background technique [0002] The address space of the software process under linux is mainly divided into figure 1 Shown includes the following blocks: 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 And to reserve the address space, the code of the program under linux is stored in the "read-only code and data" section. When the program is started, the operating system loads all the code in the executable file into the "read-only code and data" section, and then starts execution from the entry point of the program (that is, the location of the main function). [0003] This has an obvious disadvantage: as long as the program under linux has made any modifi...

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