CN111813571A - Process management method based on NodeJS - Google Patents

Process management method based on NodeJS Download PDF

Info

Publication number
CN111813571A
CN111813571A CN202010538496.3A CN202010538496A CN111813571A CN 111813571 A CN111813571 A CN 111813571A CN 202010538496 A CN202010538496 A CN 202010538496A CN 111813571 A CN111813571 A CN 111813571A
Authority
CN
China
Prior art keywords
handle
middle layer
intermediate layer
management
nodejs
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.)
Pending
Application number
CN202010538496.3A
Other languages
Chinese (zh)
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.)
Leap Learner Technology Shanghai Co ltd
Original Assignee
Leap Learner Technology Shanghai 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 Leap Learner Technology Shanghai Co ltd filed Critical Leap Learner Technology Shanghai Co ltd
Priority to CN202010538496.3A priority Critical patent/CN111813571A/en
Publication of CN111813571A publication Critical patent/CN111813571A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a process management method based on NodeJS, which comprises the following steps: the method comprises the following steps: entering a system; step two: initializing a system and starting a process intermediate layer; step three: creating a process according to user operation, and creating a new process by the intermediate layer according to platform difference; step four: the middle layer acquires a process handle and stores the process handle in a handle manager; step five: according to the actual service, communicating with the process through intermediate layer management; step six: the user exits, and the process is closed or killed through the middle layer; step seven: and exiting the system, cleaning the middle layer, releasing the related handle and preventing the memory and the resource from being occupied. The invention has the beneficial effects that: the cross-platform performance of process management is realized, and the development efficiency is improved; the middle layer of the process management can be combined with ES6 development language to realize modularization and unified development mode.

Description

Process management method based on NodeJS
Technical Field
The invention relates to the technical field of process management, in particular to a process management method based on NodeJS.
Background
With the popularity of nodjs, various nodjs-based applications are increasing, and process management is to perform information transfer through a handle of a process and switch control at a system level, so that a possible application-based application is provided for developing a task manager. The application of nodjs development has been available for a long time. But electronic based nodjs application development has also emerged in recent years.
As applications developed based on Electron/NodeJS are better and better used, the management of the process under the framework is very troublesome, and has many defects, which are roughly as follows:
(1) the API is too low-level, and no method can be well applied to a business layer
(2) The operation is too complex, and the operation modes of different systems are completely different
(3) The API is an ES 5-based environment, which cannot be well modularized in the current development environment of ES 6.
Disclosure of Invention
The invention aims to provide a process management method based on NodeJS, which realizes the cross-platform performance of process management and improves the development efficiency; the middle layer of the process management can be combined with ES6 development language to realize modularization and unified development mode.
The technical scheme of the invention is realized as follows:
a process management method based on NodeJS comprises the following steps:
the method comprises the following steps: entering a system;
step two: initializing a system and starting a process intermediate layer;
step three: creating a process according to user operation, and creating a new process by the intermediate layer according to platform difference;
step four: the middle layer acquires a process handle and stores the process handle in a handle manager;
step five: according to the actual service, communicating with the process through intermediate layer management;
step six: the user exits, and the process is closed or killed through the middle layer;
step seven: and exiting the system, cleaning the middle layer, releasing the related handle and preventing the memory and the resource from being occupied.
The invention has the beneficial effects that: the cross-platform performance of process management is realized, and the development efficiency is improved; the middle layer of the process management can be combined with ES6 development language to realize modularization and unified development mode.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of an autosave system of the present invention;
FIG. 2 is a flow chart of the automatic execution of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
In the description of the present invention, it is to be understood that the terms "upper", "lower", "front", "rear", "left", "right", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention.
According to the embodiment of the invention, a process management method based on NodeJS is provided.
Referring to fig. 1-2, the method for managing processes based on nodess according to the embodiment of the present invention includes the following steps:
the method comprises the following steps: entering a system;
step two: initializing a system and starting a process intermediate layer;
step three: creating a process according to user operation, and creating a new process by the intermediate layer according to platform difference;
step four: the middle layer acquires a process handle and stores the process handle in a handle manager;
step five: according to the actual service, communicating with the process through intermediate layer management;
step six: the user exits, and the process is closed or killed through the middle layer;
step seven: and exiting the system, cleaning the middle layer, releasing the related handle and preventing the memory and the resource from being occupied.
Example 1
Referring to fig. 1, the embodiment includes a system process and a process intermediate layer, and includes the following steps:
(1) entering a system;
(2) calling a process management intermediate layer;
(3) calling a new process according to the system type;
(4) communicating with the process through the intermediate layer, controlling the process and interrupting the process;
(5) and (5) exiting the system.
The invention has the beneficial effects that: the cross-platform performance of process management is realized, and the development efficiency is improved; the middle layer of the process management can be combined with ES6 development language to realize modularization and unified development mode.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.

Claims (1)

1. A process management method based on NodeJS is characterized by comprising the following steps:
the method comprises the following steps: entering a system;
step two: initializing a system and starting a process intermediate layer;
step three: creating a process according to user operation, and creating a new process by the intermediate layer according to platform difference;
step four: the middle layer acquires a process handle and stores the process handle in a handle manager;
step five: according to the actual service, communicating with the process through intermediate layer management;
step six: the user exits, and the process is closed or killed through the middle layer;
step seven: and exiting the system, cleaning the middle layer, releasing the related handle and preventing the memory and the resource from being occupied.
CN202010538496.3A 2020-06-13 2020-06-13 Process management method based on NodeJS Pending CN111813571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010538496.3A CN111813571A (en) 2020-06-13 2020-06-13 Process management method based on NodeJS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010538496.3A CN111813571A (en) 2020-06-13 2020-06-13 Process management method based on NodeJS

Publications (1)

Publication Number Publication Date
CN111813571A true CN111813571A (en) 2020-10-23

Family

ID=72846035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010538496.3A Pending CN111813571A (en) 2020-06-13 2020-06-13 Process management method based on NodeJS

Country Status (1)

Country Link
CN (1) CN111813571A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224395A (en) * 2015-10-10 2016-01-06 上海斐讯数据通信技术有限公司 A kind of process management method and system
US20160373455A1 (en) * 2015-06-19 2016-12-22 Oracle International Corporation Methods, systems, and computer readable media for authorization frameworks for web-based applications
CN109669817A (en) * 2018-12-19 2019-04-23 深圳市活力天汇科技股份有限公司 A kind of Node.js Server Restart method based on PM2
CN111177601A (en) * 2018-11-12 2020-05-19 北京嘀嘀无限科技发展有限公司 Page rendering processing method, device and equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160373455A1 (en) * 2015-06-19 2016-12-22 Oracle International Corporation Methods, systems, and computer readable media for authorization frameworks for web-based applications
CN105224395A (en) * 2015-10-10 2016-01-06 上海斐讯数据通信技术有限公司 A kind of process management method and system
CN111177601A (en) * 2018-11-12 2020-05-19 北京嘀嘀无限科技发展有限公司 Page rendering processing method, device and equipment and readable storage medium
CN109669817A (en) * 2018-12-19 2019-04-23 深圳市活力天汇科技股份有限公司 A kind of Node.js Server Restart method based on PM2

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
熊耀: "RESTful Web服务在云平台下的设计与实现", 《中国优秀博硕士学位论文全文数据库(硕士) 信息科技辑》 *

Similar Documents

Publication Publication Date Title
CN101262498B (en) A distributed message call method and device
US6385668B1 (en) Method and apparatus for compound hardware configuration control
JP2007510368A (en) System and method for establishing communication between a peripheral device and a wireless device
WO2021088641A1 (en) Data transmission method, data processing method, data reception method and device, and storage medium
EP1769337A1 (en) System and method for implementing a general application program interface
CN1992725B (en) Message oriented construction of web service
CN112333096A (en) Micro-service traffic scheduling method and related components
JP2006229953A (en) System and method for applying flexible attribute to execute asynchronous network request
CN109324912A (en) The communication means of the application management class software of software-oriented communication architecture
CN113037830A (en) Micro-service API (application program interface) arranging method and system based on gateway
Buchholz et al. CoCo: dynamic composition of context information
CN115248692A (en) Device and method for supporting cloud deployment of multiple deep learning framework models
CN110737425B (en) Method and device for establishing application program of charging platform system
CN111813571A (en) Process management method based on NodeJS
CN106161157B (en) Building method, device, smart home system and the terminal of smart home system
CN105827467B (en) A kind of registration center's upgrade method, relevant device and system
CN113064598B (en) Container cluster management system deployment method and deployment system
CN114936166A (en) Method for constructing SAI Thrift automatic test framework
CN107609843A (en) Contract renewal method and server
WO2021043034A1 (en) Service query method, and related device
CN107291455B (en) Method and system for realizing transfer service based on factory mode
JPH09160847A (en) Client server-type distribution processing system
Filippone et al. Towards the synthesis of context-aware choreographies
CN109669793A (en) Object calling method in middleware process
CN113590137B (en) Paas platform capability-level visual operation and maintenance management platform

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201023