[go: up one dir, main page]

WO2015188330A1 - Procédé et dispositif de traitement de processus de système d'exploitation multicœur - Google Patents

Procédé et dispositif de traitement de processus de système d'exploitation multicœur Download PDF

Info

Publication number
WO2015188330A1
WO2015188330A1 PCT/CN2014/079663 CN2014079663W WO2015188330A1 WO 2015188330 A1 WO2015188330 A1 WO 2015188330A1 CN 2014079663 W CN2014079663 W CN 2014079663W WO 2015188330 A1 WO2015188330 A1 WO 2015188330A1
Authority
WO
WIPO (PCT)
Prior art keywords
processes
association relationship
created
creation
operating system
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.)
Ceased
Application number
PCT/CN2014/079663
Other languages
English (en)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2014/079663 priority Critical patent/WO2015188330A1/fr
Priority to CN201480038250.2A priority patent/CN105378674B/zh
Publication of WO2015188330A1 publication Critical patent/WO2015188330A1/fr
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Definitions

  • the present invention relates to communication technologies, and in particular, to a multi-core operating system process and apparatus. Background technique
  • Process management is the core function of the operating system. In the operating system, whether it is a resident program or an application, the process is the standard execution unit.
  • process management of a multi-core operating system mainly uses a tabular process management model.
  • the vertical direction of the table there is a separate operating system kernel on each hardware core, and each operating system kernel is responsible for scheduling each process on the current hardware core.
  • each application is distributed by multiple cores.
  • the process consists of determining the multiple processes that make up an application through the horizontal information of the table, and the application consisting of multiple processes as a domain, maintaining and managing a single application composed of multiple processes on a domain-by-domain basis.
  • the first process in the same domain can learn the process identification information of other processes in the same domain according to the information in the domain, so the first process can communicate with other processes in the same domain.
  • Embodiments of the present invention provide a method and apparatus for processing a multi-core operating system process.
  • the embodiment of the invention provides a multi-core operating system process processing method, including:
  • the first process determines that communication with the second process is required, where the first process and the second process belong to different domains;
  • the first process communicates with the second process according to the association relationship between the processes, and the association relationship between the processes is created, and the relationship between the created process and the creation process generated by the process is created.
  • An embodiment of the present invention provides a process processing apparatus, where the apparatus is applied to a first process, where The device, including:
  • a first communication module configured to determine that communication with the second process is required, where the first process and the second process belong to different domains
  • a second communication module configured to communicate with the second process according to an association relationship between processes, where the association relationship between the processes includes an association between the created process and the creation process generated when the process is created. relationship.
  • An embodiment of the present invention provides a method and an apparatus for processing a multi-core operating system process, in which a first process communicates with the second process according to an association relationship between processes, where the process creates an association relationship, including a process.
  • the association between the created process and the created process generated at the time of creation solves the problem that the first process cannot communicate with the second process in a different domain, so that the first process and the second process in a different domain Can communicate with each other.
  • FIG. 1 is a flow chart of a first embodiment of a process for processing a multi-core operating system according to the present invention
  • FIG. 2 is a schematic structural diagram of a first embodiment of a process processing apparatus according to the present invention
  • FIG. 3 is a schematic structural diagram of Embodiment 4 of a process processing apparatus according to the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention.
  • the embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • Embodiment 1 is a flowchart of Embodiment 1 of a method for processing a process of a multi-core operating system according to the present invention. As shown in FIG. 1 , the method in this embodiment may include:
  • Step 101 The first process determines that communication with the second process is required, where the first process and the second process belong to different domains.
  • application 1 consists of process 1, process 2, process 3; application 2 consists of process 4, process 5.
  • Process 6 is composed; Process 1 and Process 2 belong to the same domain, and Process 1 and Process 4 belong to different domains.
  • Step 102 The first process communicates with the second process according to an association relationship between processes, where the relationship between the process is created, and the process is created between the created process and the created process. connection relation.
  • the process of creating an association relationship between process 1 includes process 1 creation process 2, process 2 creation process 3, process 3 creation process 4, and process 4 creation process 5 process 1, 2, 3, 4, 5 association relationship;
  • the first process communicates with the second process according to the association relationship between processes, where the relationship between the processes is created, including the created process and the creation process generated when the process is created. Relationship.
  • the multi-core operating system uses an application composed of multiple processes as one domain, the domain-based maintenance and management of a single application composed of multiple processes, for the first process and the second process belonging to different domains,
  • the association relationship between the first process and the second process is not recorded. Therefore, when the first process needs to communicate with the second process, the related information of the second process cannot be obtained, so the first process cannot
  • the second process in different domains performs communication; the first process in the present invention communicates with the second process according to the association relationship between processes, wherein the process creates an association relationship, including when the process is created.
  • the relationship between the created process and the created process is enabled, so that the first process can obtain related information of the second process by creating an association relationship between processes, so that the first process can be performed between the first process and the second process in a different domain. Communication.
  • the first process is configured to communicate with the second process according to the relationship between the processes, and the relationship between the created process and the created process generated by the process is created.
  • the association solves the problem that the first process cannot communicate with the second process in a different domain, so that the first process can communicate with the second process in a different domain.
  • the multi-core operating system process processing method in the first step 102 may include: determining, by the first process, the first process and the second process according to the creating association relationship between the processes The process has the same associated process, and the first process determines the process identifier of the second process according to the association relationship between processes, and communicates with the second process according to the process identifier.
  • the process identifier may be a process ID or a process name.
  • the process control block of each process further adds a pointer describing the process control block of the parent and child processes.
  • a pointer to the new child process control block is added to the parent process, and a pointer to the parent process control block is added to the child process.
  • association between processes can be represented by a pointer to the parent ⁇ child process control block.
  • the first process determines, according to the association relationship between the processes, that the first process has the same association process with the second process, and the first process obtains the first step according to a pointer to the parent ⁇ child process control block.
  • the process identifier of the second process and communicates with the second process according to the process identifier.
  • application 1 is composed of process 1, process 2, process 3; application 2 is composed of process 4, process 5, and process 6; and the process of creating association relationship includes process 1 creation process 2, process 2 creation process 3, process 3 Create process 4, process 4 creates process 5; if process 1 determines that it needs to communicate with process 4 process, then process 1 passes the pointer to the child process control block in the process control block of the process 1, and the process control block in the process control block points to the child process control
  • the pointer of the block, the pointer to the child process control block in the process control block of the process 3 finds the process 4, and acquires the process identifier of the process 4, thereby communicating with the process 4 according to the process identifier.
  • the process 1 communicates with the process 4 by sending a message to the process number corresponding to the process 4.
  • the first process determines the association relationship according to the process.
  • the process identifier of the second process and communicates with the second process according to the process identifier, which solves the problem that the first process cannot communicate with the second process in a different domain, so that the first process and the first process Communication is possible between the second processes in different domains.
  • association between processes can be represented as a process tree.
  • the Trojan process can be cleared by ending the process tree. After the new Trojan server program runs, it will generate two Trojan processes, the first Trojan process and the second Trojan process. The two Trojan processes monitor each other and protect each other. If the first Trojan process (or the second Trojan process) finds that the second Trojan process (or the first Trojan process) is finished, it will make a copy of itself and regenerate quickly. For the multi-core operating system of the prior art, even if the two Trojan processes are found, the Trojan cannot be cleared by ending the process. Since one of the two Trojan processes must be created by another, you can use the end process tree for the two Trojan processes separately. If the first Trojan process ends the process tree, the two Trojan processes cannot be ended. It is indicated that the second Trojan process creates the first Trojan process, and at this time, the end of the process tree for the second Trojan process, the first Trojan process and the second Trojan process can be ended simultaneously, thereby completely removing the Trojan.
  • the step 102 of the first embodiment of the multi-core operating system process processing method shown in FIG. 1 may include: if the first process and the second process are parent-child processes, the first process is described by a shared pipeline. And communicating with the second process; or, the first process performs information sharing with the second process by using a shared file descriptor.
  • the process control block of each process further adds a pointer describing the process control block of the parent and child processes.
  • a pointer to the new child process control block is added to the parent process, and a pointer to the parent process control block is added to the child process.
  • the parent process copies its pipe descriptor or file descriptor into the child process, and when the parent process determines that it needs to communicate with the child process, the pipe process and the child process are performed through the pipe descriptor. Communication, or, through the file description, the secondary and child processes for information sharing.
  • the first process is a parent process
  • the second process is a child process
  • the first process is a child process
  • the second process is a parent process
  • the first process communicates with the second process by using a shared pipe descriptor; or A process shares information with the second process through the shared file descriptor, and solves the problem that the first process cannot communicate with the second process in a different domain, so that the first process is in the second domain different from the domain. Communication between processes is possible.
  • the father and child processes communicate through shared pipe descriptors or shared file descriptors, making the communication method more flexible.
  • the multi-core operating system process processing method may further include: the first process flag running the first The information of the core of the second process, so that when the second process migrates to other cores, the second process determines information of the core running the second process according to the flag.
  • the information of the core may be hardware core information or a kernel number.
  • the process control block of each process adds information about the core running the process; on the one hand, considering the characteristics of kernel independent scheduling in the multi-core operating system, the process usually persists on a hardware core; On the one hand, the process of managing the scope control rights of the resource is provided; when the second process is created in the first process, the information of the core running the second process is marked, so that the second process migrates to other cores, the second process The information of the core running the second process is determined according to the flag to prevent the second process from performing unauthorized access to resources of other cores.
  • the information of the core running the second process is marked to migrate the second process to the other core, and the second process determines, according to the flag, the core that runs the second process. Information to prevent the second process from making unauthorized access to resources of other cores.
  • the apparatus in this embodiment may include: a first communication module 201 and a second communication module 202.
  • the first communication module 201 is configured to determine that communication with the second process is required, where the first process and the second process belong to different domains
  • the second communication module 202 is configured to create associations according to processes. The relationship is communicated with the second process, where the association relationship between the processes includes an association relationship between the created process and the creation process generated when the process is created.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 1.
  • the implementation principle and technical effects are similar, and details are not described herein again.
  • the apparatus of this embodiment is based on the apparatus structure shown in FIG. 1.
  • the second communication module 202 may be specifically configured to: determine the first part according to the association relationship between the processes.
  • a process has the same association process with the second process, and the process identifier of the second process is determined according to the association relationship between the processes, and the second process is communicated according to the process identifier.
  • the device in this embodiment may be used to implement the technical solution of the second embodiment of the multi-core operating system process.
  • the implementation principle and technical effects are similar, and details are not described herein.
  • the device of the embodiment is based on the device structure shown in FIG. 1.
  • the second communication module 202 is specifically configured to: if the first process and the second process are parent-child process relationships, The pipeline descriptor communicates with the second process; or, the information sharing with the second process is performed by the shared file descriptor.
  • the device in this embodiment may be used to implement the technical solution of the third embodiment of the multi-core operating system process.
  • the implementation principle and the technical effects are similar, and details are not described herein again.
  • FIG. 3 is a schematic structural diagram of Embodiment 4 of a process processing apparatus according to the present invention.
  • the apparatus of this embodiment is further configured to include: a labeling module 203, based on the structure of the third embodiment of the process processing apparatus.
  • a marking module 203 configured to: when the first process creates a second process, mark information of a core that runs the second process, so that when the second process migrates to another core, the second process is configured according to the The tag determines information that runs the core of the second process.
  • the device of this embodiment may be used to implement the technical solution of the fourth embodiment of the multi-core operating system process.
  • the implementation principle and technical effects are similar, and details are not described herein again.

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)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

L'invention concerne un procédé et un dispositif de traitement d'un processus d'un système d'exploitation multicœur. Le procédé de traitement d'un processus d'un système d'exploitation multicœur consiste : en la détermination, par un premier processus, qu'il est nécessaire de communiquer avec un second processus, le premier processus et le second processus appartenant à des domaines différents ; et en la communication, par le premier processus, avec le second processus conformément à une relation d'association de création entre processus, la relation d'association de création entre processus comprenant une relation d'association entre un processus créé généré pendant une création de processus et un processus créateur. Grâce aux modes de réalisation de la présente invention, un premier processus peut communiquer avec un second processus selon une relation d'association de création entre processus, la relation d'association de création entre processus comprenant une relation d'association entre un processus créé généré pendant une création de processus et un processus créateur, de manière que le premier processus puisse communiquer avec le second processus qui est situé dans un domaine différent du sien.
PCT/CN2014/079663 2014-06-11 2014-06-11 Procédé et dispositif de traitement de processus de système d'exploitation multicœur Ceased WO2015188330A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2014/079663 WO2015188330A1 (fr) 2014-06-11 2014-06-11 Procédé et dispositif de traitement de processus de système d'exploitation multicœur
CN201480038250.2A CN105378674B (zh) 2014-06-11 2014-06-11 多内核操作系统进程处理方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/079663 WO2015188330A1 (fr) 2014-06-11 2014-06-11 Procédé et dispositif de traitement de processus de système d'exploitation multicœur

Publications (1)

Publication Number Publication Date
WO2015188330A1 true WO2015188330A1 (fr) 2015-12-17

Family

ID=54832708

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079663 Ceased WO2015188330A1 (fr) 2014-06-11 2014-06-11 Procédé et dispositif de traitement de processus de système d'exploitation multicœur

Country Status (2)

Country Link
CN (1) CN105378674B (fr)
WO (1) WO2015188330A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547634A (zh) * 2016-11-28 2017-03-29 武汉斗鱼网络科技有限公司 一种跨进程通信的方法及装置
CN108563513A (zh) * 2017-12-29 2018-09-21 北京元心科技有限公司 进程间通信的方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266561A (zh) * 2008-04-29 2008-09-17 中兴通讯股份有限公司 一种在多核多线程处理器中的核间消息通信方法
CN101299194A (zh) * 2008-06-26 2008-11-05 上海交通大学 基于可配置处理器的异构多核系统线程级动态调度方法
CN101901207A (zh) * 2010-07-23 2010-12-01 中国科学院计算技术研究所 异构共享存储多处理机系统的操作系统及其工作方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5515525A (en) * 1993-09-28 1996-05-07 Bull Hn Information Systems Inc. Emulating the memory functions of a first system on a second system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266561A (zh) * 2008-04-29 2008-09-17 中兴通讯股份有限公司 一种在多核多线程处理器中的核间消息通信方法
CN101299194A (zh) * 2008-06-26 2008-11-05 上海交通大学 基于可配置处理器的异构多核系统线程级动态调度方法
CN101901207A (zh) * 2010-07-23 2010-12-01 中国科学院计算技术研究所 异构共享存储多处理机系统的操作系统及其工作方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547634A (zh) * 2016-11-28 2017-03-29 武汉斗鱼网络科技有限公司 一种跨进程通信的方法及装置
WO2018094951A1 (fr) * 2016-11-28 2018-05-31 武汉斗鱼网络科技有限公司 Procédé de communication inter-processus, appareil et support d'enregistrement lisible
CN106547634B (zh) * 2016-11-28 2020-07-31 武汉斗鱼网络科技有限公司 一种跨进程通信的方法及装置
CN108563513A (zh) * 2017-12-29 2018-09-21 北京元心科技有限公司 进程间通信的方法及装置

Also Published As

Publication number Publication date
CN105378674B (zh) 2019-10-22
CN105378674A (zh) 2016-03-02

Similar Documents

Publication Publication Date Title
US10270648B2 (en) Configuration information management method, device, network element management system and storage medium
CN107431651B (zh) 一种网络服务的生命周期管理方法及设备
CN102982141B (zh) 一种实现分布式数据库代理的方法及装置
CN110402441B (zh) 引用访问控制列表
JP2017062767A5 (fr)
CN106339177A (zh) 一种创建虚拟机的方法和装置
US10698863B2 (en) Method and apparatus for clearing data in cloud storage system
JP2008171278A5 (fr)
WO2019223178A1 (fr) Procédé et système de planification de tâches inter-plateformes, dispositif informatique et support d'informations
CN106293879A (zh) 一种用于Linux物理服务器的P2V迁移方法及其系统
WO2017028690A1 (fr) Procédé et système de traitement de fichiers basés sur l'etl
CN106383764A (zh) 一种数据采集方法和设备
CN106020931A (zh) 一种基于Heat的云应用部署方案
TWI493368B (zh) 自動產生查詢歷程
CN108256870A (zh) 基于拓扑结构生成描述信息及更新、数据处理方法和装置
CN107085681B (zh) 鲁棒的计算设备标识框架
WO2015188330A1 (fr) Procédé et dispositif de traitement de processus de système d'exploitation multicœur
CN108429642A (zh) 一种拓扑结构识别方法、系统、设备及计算机存储介质
EP3163469A1 (fr) Procédé et dispositif de mise en oeuvre d'une mémorisation de fichier sur disque à ip
US11750558B2 (en) System and method for managing network connected devices
CN106548048A (zh) 一种用于进程控制的方法、装置与系统
CN107800553B (zh) 一种管理设备故障的方法和装置
CN113590415B (zh) 深度学习训练平台的端口管理系统、方法、设备及介质
CN103823856A (zh) 一种在PaaS平台服务环境中的SaaS迁移方法
CN104809033A (zh) 一种备份方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14894737

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14894737

Country of ref document: EP

Kind code of ref document: A1