WO2017101429A1 - 一种用于多个进程之间进行通信方法及客户端 - Google Patents

一种用于多个进程之间进行通信方法及客户端 Download PDF

Info

Publication number
WO2017101429A1
WO2017101429A1 PCT/CN2016/089564 CN2016089564W WO2017101429A1 WO 2017101429 A1 WO2017101429 A1 WO 2017101429A1 CN 2016089564 W CN2016089564 W CN 2016089564W WO 2017101429 A1 WO2017101429 A1 WO 2017101429A1
Authority
WO
WIPO (PCT)
Prior art keywords
signaling
processes
cache area
event
cache
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/CN2016/089564
Other languages
English (en)
French (fr)
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.)
Le Holdings Beijing Co Ltd
LeTV Information Technology Beijing Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
LeTV Information Technology Beijing 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 Le Holdings Beijing Co Ltd, LeTV Information Technology Beijing Co Ltd filed Critical Le Holdings Beijing Co Ltd
Priority to US15/241,165 priority Critical patent/US20170171107A1/en
Publication of WO2017101429A1 publication Critical patent/WO2017101429A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

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
    • 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
    • G06F9/544Buffers; Shared memory; Pipes
    • 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
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Definitions

  • Embodiments of the present invention relate to information technology, and in particular, to a method for communicating between multiple processes and a client implementing the method.
  • Inter Process Communication is a set of programming interfaces that allow programmers to coordinate different program processes so that they can run simultaneously in an operating system. This allows a program to handle the requirements of many users at the same time. Because even if only one user makes a request, it may cause multiple processes in an operating system to run, and the processes must talk to each other.
  • the commonly used inter-process communication method is mainly implemented by a socket (SOCKET) communication method or a registry or a local file as an exchange medium.
  • SOCKET socket
  • these methods have problems in terms of message transmission speed and flexibility.
  • the traditional SOCKET communicates through the port. Most of the current hacking techniques steal information through the port, so the communication method has the defect of low security.
  • An object of the embodiments of the present invention is to provide a method for communicating between multiple processes and a client implementing the method, which has the advantages of fast communication speed and security.
  • an embodiment of the present invention provides a method for communicating between multiple processes, where the method includes: the first process stores signaling to a buffer area, and broadcasts an event to all other processes; and all other processes. After receiving the event, each process in the process reads the signaling from the cache area and determines whether the signaling is for the process, in the case that the signaling is for the process, The operation indicated by the signaling is performed, otherwise the signaling is discarded.
  • the first process may broadcast the event to a process associated with the event in all other processes.
  • the method may further include: after performing the operation indicated by the signaling, generating, by using feedback signaling, storing the feedback signaling into the buffer area, and broadcasting the event to all other processes. And each of all other processes, after receiving the event, reading the feedback signaling from the cache area and determining whether the feedback signaling is for the process, in the feedback signaling If the process is not for the process, the feedback signaling is discarded.
  • the method may further include: reading a state of the cache area before the process operates on the cache area; and setting the state of the cache area to be locked if the cache area is in an unlock state The state is then performed on the cache area; in the case where the cache area is in the locked state, waiting is performed until the cache area is in an unlocked state.
  • Each of the other processes determines whether the signaling is for the process based on the signaling format of the signaling.
  • the present invention further provides a client, the client includes: a cache; and a processor, the processor simultaneously executing a plurality of processes, and configured to: the first process stores a letter to a cache area of the cache And broadcasting the event to all other processes; and each of all other processes, after receiving the event, reads the signaling from the cache area and determines whether the signaling is for the process In the case that the signaling is for the process, the operation indicated by the signaling is performed, otherwise the signaling is discarded.
  • the client includes: a cache; and a processor, the processor simultaneously executing a plurality of processes, and configured to: the first process stores a letter to a cache area of the cache And broadcasting the event to all other processes; and each of all other processes, after receiving the event, reads the signaling from the cache area and determines whether the signaling is for the process In the case that the signaling is for the process, the operation indicated by the signaling is performed, otherwise the signaling is discarded.
  • the first process can broadcast the event to all other processes and the event Associated process.
  • the processor is further configured to: after the performing the operation indicated by the signaling, generating, by using feedback signaling, storing the feedback signaling into the buffer area, and broadcasting the event to all other a process; and each of all other processes, after receiving the event, reading the feedback signaling from the cache area and determining whether the feedback signaling is for the process, in the feedback If the decision is not for the process, the feedback signaling is discarded.
  • the processor is further configured to: read a state of the cache area before the process operates on the cache area; and set the state of the cache area to be in a case where the cache area is in an unlock state The state is locked, and then the operation is performed on the cache area; in the case where the cache area is in the locked state, waiting is performed until the cache area is in an unlocked state.
  • Each of the other processes determines whether the signaling is for the process based on the signaling format of the signaling.
  • FIG. 1 is a flowchart of an inter-process communication method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a client according to an embodiment of the present invention.
  • Some embodiments of the present invention provide a method for communicating between multiple processes, the method comprising: the first process storing signaling to a buffer area, and broadcasting the event to all other processes; and each of all other processes After receiving the event, a process reads the signaling from the cache area and determines whether the signaling is for the process, and if the signaling is for the process, executing the message Order the indicated operation, otherwise discard the signaling.
  • FIG. 1 is a flowchart of an inter-process communication method according to an embodiment of the present invention.
  • the process P1 can send signaling to the process P2.
  • the specific process is as follows: the process P1 stores the signaling to the cache area in the cache, and broadcasts the event (the event can be any broadcastable and receivable event of the process). ) to all other processes (such as processes P2 - Pn, where n is an integer greater than or equal to 3).
  • the process P2 may read the signaling from the buffer area and determine whether the signaling is for the process P2.
  • the process P2 can determine the signaling format of the signaling, and the format information of the signaling includes information that the "destination address" is "P2" (for example, from P1 to P2), and the signaling can be considered as For the process P2.
  • the processes P3 to Pn they also receive the event, and then read the signaling in the buffer area, and then determine whether the signaling is for the respective process, not for the respective process. In the case, the processes P3 to Pn may discard the signaling.
  • the process P2 may perform the signaling (ie, perform operations according to the requirements of the signaling, such as performing initialization, termination, display, etc.) ).
  • the process P2 may also send feedback signaling to the process P1.
  • the feedback information may be handshake information, indicating that the process P1 performs some operations in the next step, or simply notifying the process P1 that the signaling sent by the process P1 has been completed.
  • the manner in which the feedback signaling is sent is the same as the manner in which the process P1 sends signaling to the process P2.
  • the feedback signaling is read from the buffer area by the feedback signaling in the buffer area and the broadcast event, and of course, the other processes P3 P Pn also receive the event and the cache.
  • the signaling in the area is read, but it is discarded only when it is found that the signaling is not for the processes P3 to Pn.
  • the process P1 reads the feedback signaling, and determines that the feedback signaling is for the process P1, the operation indicated by the feedback signaling may be performed.
  • the event can be some specific event
  • process P1 can broadcast the event to the process associated with the event in all other processes. This can reduce the broadcast range of events and improve the efficiency of broadcasting.
  • the cache area is preferably provided with a lock status indicator to indicate whether the cache area is in a locked state or in an unlocked state.
  • the lock status indicator is first read; and when the lock status indicator indicates that the cache area is in an unlocked state, the state of the cache area is set to a locked state. And then performing the operation on the cache area, thereby preventing other processes from accessing the cache area during access by the process to the cache area process; wherein the lock status indicator indicates that the cache area is in a locked state In the case, the process waits until the lock status indicator indicates that the cache area is in an unlocked state.
  • the above operations on event generation, broadcasting, etc. can use the event such as CreateEvent, WaitForSingleObject, ResetEvent in the windows system to control related technologies.
  • the related techniques of memory mapping operations such as OpenFileMapping, CreateFileMapping, MapViewOfFile, and UnmapViewOfFile can be used.
  • the related critical area locking technology such as CreateMutex, WaitForSingleObject, ReleaseMutex, etc. can be used.
  • signaling of to, from, cmd, etc. of the XMPP protocol may be used.
  • FIG. 2 is a schematic structural diagram of a client according to an embodiment of the present invention.
  • the client includes: a cache 100; and a processor 200 that simultaneously executes a plurality of processes and is configured to: the first process to a cache area of the cache Storing signaling and broadcasting the event to all other processes; and each of all other processes, after receiving the event, reading the signaling from the cache area and determining whether the signaling is for the In the case of the process, if the signaling is for the process, the operation indicated by the signaling is performed, otherwise the signaling is discarded. Thereby, since the communication between the processes is performed in the cache, the information transmission speed is fast, and the information is difficult to be intercepted by the hacker, and the security is high.
  • the event may be a specific event, and the first process may broadcast the event to the event associated with the event in all other processes. process.
  • the processor may be further configured to: after the performing the operation indicated by the signaling, generating, by using feedback signaling, storing the feedback signaling into the buffer area, and broadcasting the event to all other processes; And each of the other processes, after receiving the event, reading the feedback signaling from the buffer area, and determining whether the feedback signaling is for the process, where the feedback signaling is not In the case of this process, the feedback signaling is discarded.
  • the cache area may be provided with a lock status indicator to indicate whether the cache area is in a locked state or in an unlocked state.
  • the processor is further configured to: read a state of the cache area before the process operates on the cache area; and set the state of the cache area to a lock state when the cache area is in an unlock state And then performing the operation on the cache area; in the case where the cache area is in a locked state, waiting is performed until the cache area is in an unlocked state.
  • Each of the other processes determines whether the signaling is for the process based on the signaling format of the signaling.
  • the process P2 can determine the signaling format of the signaling, and the format information of the signaling includes information that the "destination address" is "P2" (for example, from P1 to P2).
  • the signaling may be considered to be for process P2, otherwise the signaling may be discarded.
  • the client of the present invention may include, but is not limited to, a PC with a windows system, a mobile phone, a tablet, and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种用于多个进程之间进行通信方法及实施该方法的客户端。该方法包括:第一进程向一缓存区域存放信令,并广播事件至所有其他进程;以及所有其他进程中的每一进程在接收到所述事件之后,从所述缓存区域读取所述信令,并判断该信令是否是针对该进程的,在所述信令是针对该进程的情况下,执行该信令所指示的操作,否则丢弃该信令。通过上述技术方案,由于进程间的通信是在缓存内进行的,因此信息的传输速度较快,且该信息难以在被黑客截获,安全性较高。

Description

一种用于多个进程之间进行通信方法及客户端
本申请要求于2015年12月15日提交中国专利局、申请号为201510930822.4的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及信息技术,具体地,涉及一种用于多个进程之间进行通信方法及实施该方法的客户端。
背景技术
进程间通信(IPC,Inter Process communication)是一组编程接口,让程序员能够协调不同的程序进程,使之能在一个操作系统里同时运行。这使得一个程序能够在同一时间里处理许多用户的要求。因为即使只有一个用户发出要求,也可能导致一个操作系统中多个进程的运行,进程之间必须互相通话。
目前常用的进程间通信方式主要为套接字(SOCKET)通信方式或通过注册表或本地文件作为交换介质来实现,然而这些方式存在消息传输速度以及灵活性方面的问题。另外,传统的SOCKET是通过端口进行通信的,目前的黑客技术大多是通过该端口来窃取信息,因此该通信方式还存在安全性较低的缺陷。
发明内容
本发明实施例的目的是提供一种用于多个进程之间进行通信方法及实施该方法的客户端,其具有进程间通信速度快、安全的优点。
为了实现上述目的,本发明实施例提供一种用于多个进程之间进行通信方法,该方法包括:第一进程向一缓存区域存放信令,并广播事件至所有其他进程;以及所有其他进程中的每一进程在接收到所述事件之后,从所述缓存区域读取所述信令,并判断该信令是否是针对该进程的,在所述信令是针对该进程的情况下,执行该信令所指示的操作,否则丢弃该信令。
其中,所述第一进程可将所述事件广播至所述所有其他进程中与该事件相关联的进程。
其中,所述方法还可包括:所述进程在执行完所述信令所指示的操作之后,生成以反馈信令,将该反馈信令存入所述缓存区域,并广播事件至所有其他进程;以及所有其他进程中的每一进程在接收到所述事件之后,从所述缓存区域读取所述反馈信令,并判断该反馈信令是否是针对该进程的,在所述反馈信令不是针对该进程的情况下,丢弃该反馈信令。
其中,所述方法还可包括:在一进程对所述缓存区域进行操作之前,读取该缓存区域的状态;在该缓存区域处于非锁定状态的情况下,将该缓存区域的状态置为锁定状态,之后对该缓存区域进行所述操作;在所述缓存区域处于锁定状态的情况下,进行等待,直至所述缓存区域处于非锁定状态。
其中,所有其他进程中的每一进程基于所述信令的信令格式来判断该信令是否是针对该进程的。
相应地,本发明还提供了一种客户端,该客户端包括:缓存;以及处理器,该处理器同时执行多个进程,且用于:第一进程向所述缓存的一缓存区域存放信令,并广播事件至所有其他进程;以及所有其他进程中的每一进程在接收到所述事件之后,从所述缓存区域读取所述信令,并判断该信令是否是针对该进程的,在所述信令是针对该进程的情况下,执行该信令所指示的操作,否则丢弃该信令。
其中,所述第一进程可将所述事件广播至所述所有其他进程中与该事件 相关联的进程。
其中,所述处理器还用于:所述进程在执行完所述信令所指示的操作之后,生成以反馈信令,将该反馈信令存入所述缓存区域,并广播事件至所有其他进程;以及所有其他进程中的每一进程在接收到所述事件之后,从所述缓存区域读取所述反馈信令,并判断该反馈信令是否是针对该进程的,在所述反馈信令不是针对该进程的情况下,丢弃该反馈信令。
其中,所述处理器还用于:在一进程对所述缓存区域进行操作之前,读取该缓存区域的状态;在该缓存区域处于非锁定状态的情况下,将该缓存区域的状态置为锁定状态,之后对该缓存区域进行所述操作;在所述缓存区域处于锁定状态的情况下,进行等待,直至所述缓存区域处于非锁定状态。
其中,所有其他进程中的每一进程基于所述信令的信令格式来判断该信令是否是针对该进程的。
通过上述技术方案,由于进程间的通信是在缓存内进行的,因此信息的传输速度较快,且该信息难以在被黑客截获,安全性较高。
本发明的其它特征和优点将在随后的具体实施方式部分予以详细说明。
附图说明
附图是用来提供对本发明的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本发明,但并不构成对本发明的限制。在附图中:
图1为本发明一实施例提供的进程间通信方法的流程图;以及
图2为本发明一实施例提供的客户端的结构示意图。
具体实施方式
以下结合附图对本发明的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本发明,并不用于限制本发明。
本发明部分实施例提供了一种用于多个进程之间进行通信方法,该方法包括:第一进程向一缓存区域存放信令,并广播事件至所有其他进程;以及所有其他进程中的每一进程在接收到所述事件之后,从所述缓存区域读取所述信令,并判断该信令是否是针对该进程的,在所述信令是针对该进程的情况下,执行该信令所指示的操作,否则丢弃该信令。
图1为本发明一实施例提供的进程间通信方法的流程图。如图1所示,进程P1可发送信令至进程P2,具体过程如下:进程P1将信令存放至缓存内的缓存区域,同时广播事件(该事件可为任何进程可广播且可接收的事件)至所有其他进程(诸如,进程P2~Pn,其中n为大于或等于3的整数)。进程P2接收到所述事件之后,可从所述缓存区域内读取所述信令,并判断该信令是否是针对该进程P2的。例如,进程P2其可判断所述信令的信令格式,该信令的格式信息内含有“目的地址”为“P2”的信息(例如,from P1 to P2),则可认为该信令是针对进程P2的。对于其他进程P3~Pn,其也会接收所述事件,并在之后读取所述缓存区域内的信令,然后判断该信令是否是针对各自的进程的,在不是针对该各自的进程的情况下,进程P3~Pn可丢弃所述信令。在进程P2确定所述信令是针对该进程P2的之后,该进程P2可执行所述信令(即,按照所述信令的要求来进行操作,比如说执行初始化、终止、显示等等操作)。在进程P2执行信令完毕之后,该进程P2还可发送反馈信令至所述进程P1。该反馈信息可是握手信息、指示所述进程P1进行下一步的一些操作、亦可仅仅告知进程P1其所发送的信令已执行完毕。该反馈信令的发送方式与上述进程P1向进程P2发送信令的方式相同,均是 通过将反馈信令存入缓存区域、广播事件以触发进程P1从所述缓存区域读取所述反馈信令,当然该过程中其他进程P3~Pn也会收到所述事件并对所述缓存区域内的信令进行读取,只是在发现该信令并非针对进程P3~Pn的情况下对其进行丢弃。进程P1读取完所述反馈信令,并判断该反馈信令是针对该进程P1之后,可执行该反馈信令所指示的操作。
在一个例子中,所述事件可为某些特定的事件,进程P1可将所述事件广播至所述所有其他进程中与该事件相关联的进程。这样可减少事件的广播范围,提高广播的效率。
为避免不同进程对缓存区域进行存取操作时的混乱,优选地,所述缓存区域设置有一锁定状态指示符,以指示该缓存区域是否处于锁定状态还是处于非锁定状态。在一进程对所述缓存区域进行操作之前,首先会读取该锁定状态指示符;在该锁定状态指示符指示缓存区域处于非锁定状态的情况下,将该缓存区域的状态置为锁定状态,之后对该缓存区域进行所述操作,从而防止该进程对所述缓存区域进程进行存取期间其他进程也对该缓存区域进行存取;在所述锁定状态指示符指示所述缓存区域处于锁定状态的情况下,该进程进行等待,直至所述锁定状态指示符指示缓存区域处于非锁定状态。
上述对事件的产生、广播等操作,可利用windows系统内的CreateEvent、WaitForSingleObject、ResetEvent等事件控制相关技术。对于在计算机的内存内开辟可供多进程存取的缓存区域,可采用OpenFileMapping、CreateFileMapping、MapViewOfFile、UnmapViewOfFile等内存映射操作相关技术。对于缓存区域的锁定与解锁,可采用CreateMutex,WaitForSingleObject,ReleaseMutex等相关临界区加锁技术。另外,对于信令的格式及所具体指示的操作,可使用XMPP协议的to,from,cmd等信令。
图2为本发明一实施例提供的客户端的结构示意图。如图2所示,相应 地,本发明还提供了一种客户端,该客户端包括:缓存100;以及处理器200,该处理器200同时执行多个进程,且用于:第一进程向所述缓存的一缓存区域存放信令,并广播事件至所有其他进程;以及所有其他进程中的每一进程在接收到所述事件之后,从所述缓存区域读取所述信令,并判断该信令是否是针对该进程的,在所述信令是针对该进程的情况下,执行该信令所指示的操作,否则丢弃该信令。藉此,由于进程间的通信是在缓存内进行的,因此信息的传输速度较快,且该信息难以在被黑客截获,安全性较高。
为减少事件的广播范围,提高广播的效率,优选地,所述事件可为某些特定的事件,所述第一进程可将所述事件广播至所述所有其他进程中与该事件相关联的进程。
所述处理器还可用于:所述进程在执行完所述信令所指示的操作之后,生成以反馈信令,将该反馈信令存入所述缓存区域,并广播事件至所有其他进程;以及所有其他进程中的每一进程在接收到所述事件之后,从所述缓存区域读取所述反馈信令,并判断该反馈信令是否是针对该进程的,在所述反馈信令不是针对该进程的情况下,丢弃该反馈信令。
为避免不同进程对缓存区域进行存取操作时的混乱,优选地,所述缓存区域可设置有一锁定状态指示符,以指示该缓存区域是否处于锁定状态还是处于非锁定状态。所述处理器还用于:在一进程对所述缓存区域进行操作之前,读取该缓存区域的状态;在该缓存区域处于非锁定状态的情况下,将该缓存区域的状态置为锁定状态,之后对该缓存区域进行所述操作;在所述缓存区域处于锁定状态的情况下,进行等待,直至所述缓存区域处于非锁定状态。
其中,所有其他进程中的每一进程基于所述信令的信令格式来判断该信令是否是针对该进程的。例如,进程P2其可判断所述信令的信令格式,该信令的格式信息内含有“目的地址”为“P2”的信息(例如,from P1 to P2), 则可认为该信令是针对进程P2的,否则可丢弃所述信令。
有关所述处理器所执行的操作的具体细节及益处,可参阅上述针对多个进程之间进行通信方法的描述,于此不再赘述。本发明的客户端可包括但不限于装有windows系统的PC、手机、平板电脑等。
通过上述技术方案,由于进程间的通信是在缓存内进行的,因此信息的传输速度较快,且该信息难以在被黑客截获,安全性较高。
以上结合附图详细描述了本发明的优选实施方式,但是,本发明并不限于上述实施方式中的具体细节,在本发明的技术构思范围内,可以对本发明的技术方案进行多种简单变型,这些简单变型均属于本发明的保护范围。
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合。为了避免不必要的重复,本发明对各种可能的组合方式不再另行说明。
此外,本发明的各种不同的实施方式之间也可以进行任意组合,只要其不违背本发明的思想,其同样应当视为本发明所公开的内容。

Claims (10)

  1. 一种用于多个进程之间进行通信方法,包括:
    第一进程向一缓存区域存放信令,并广播事件至所有其他进程;以及
    所有其他进程中的每一进程在接收到所述事件之后,从所述缓存区域读取所述信令,并判断该信令是否是针对该进程的,在所述信令是针对该进程的情况下,执行该信令所指示的操作,否则丢弃该信令。
  2. 根据权利要求1所述的方法,其中,所述第一进程将所述事件广播至所述所有其他进程中与该事件相关联的进程。
  3. 根据权利要求1或2所述的方法,其中,该方法还包括:
    所述进程在执行完所述信令所指示的操作之后,生成以反馈信令,将该反馈信令存入所述缓存区域,并广播事件至所有其他进程;以及
    所有其他进程中的每一进程在接收到所述事件之后,从所述缓存区域读取所述反馈信令,并判断该反馈信令是否是针对该进程的,在所述反馈信令不是针对该进程的情况下,丢弃该反馈信令。
  4. 根据权利要求1、2或3所述的方法,其中,还包括:
    在一进程对所述缓存区域进行操作之前,读取该缓存区域的状态;
    在该缓存区域处于非锁定状态的情况下,将该缓存区域的状态置为锁定状态,之后对该缓存区域进行所述操作;在所述缓存区域处于锁定状态的情况下,进行等待,直至所述缓存区域处于非锁定状态。
  5. 根据权利要求1至4中任意一项所述的方法,其中,所有其他进程中的每一进程基于所述信令的信令格式来判断该信令是否是针对该进程的。
  6. 一种客户端,包括:
    缓存;以及
    处理器,该处理器同时执行多个进程,用于:
    第一进程向所述缓存的一缓存区域存放信令,并广播事件至所有其他进程;以及
    所有其他进程中的每一进程在接收到所述事件之后,从所述缓存区域读取所述信令,并判断该信令是否是针对该进程的,在所述信令是针对该进程的情况下,执行该信令所指示的操作,否则丢弃该信令。
  7. 根据权利要求6所述的客户端,其中,所述第一进程将所述事件广播至所述所有其他进程中与该事件相关联的进程。
  8. 根据权利要求6或7所述的客户端,其中,所述处理器还用于:
    所述进程在执行完所述信令所指示的操作之后,生成以反馈信令,将该反馈信令存入所述缓存区域,并广播事件至所有其他进程;以及
    所有其他进程中的每一进程在接收到所述事件之后,从所述缓存区域读取所述反馈信令,并判断该反馈信令是否是针对该进程的,在所述反馈信令不是针对该进程的情况下,丢弃该反馈信令。
  9. 根据权利要求6、7或8所述的客户端,其中,所述处理器还用于:
    在一进程对所述缓存区域进行操作之前,读取该缓存区域的状态;
    在该缓存区域处于非锁定状态的情况下,将该缓存区域的状态置为锁定状态,之后对该缓存区域进行所述操作;在所述缓存区域处于锁定状态的情况下,进行等待,直至所述缓存区域处于非锁定状态。
  10. 根据权利要求6至9中任意一项所述的客户端,其中,所有其他进程中的每一进程基于所述信令的信令格式来判断该信令是否是针对该进程的。
PCT/CN2016/089564 2015-12-15 2016-07-10 一种用于多个进程之间进行通信方法及客户端 Ceased WO2017101429A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/241,165 US20170171107A1 (en) 2015-12-15 2016-08-19 Communication method and the client for multiple processes

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510930822.4 2015-12-15
CN201510930822.4A CN105912410A (zh) 2015-12-15 2015-12-15 一种用于多个进程之间进行通信方法及客户端

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/241,165 Continuation US20170171107A1 (en) 2015-12-15 2016-08-19 Communication method and the client for multiple processes

Publications (1)

Publication Number Publication Date
WO2017101429A1 true WO2017101429A1 (zh) 2017-06-22

Family

ID=56744176

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089564 Ceased WO2017101429A1 (zh) 2015-12-15 2016-07-10 一种用于多个进程之间进行通信方法及客户端

Country Status (2)

Country Link
CN (1) CN105912410A (zh)
WO (1) WO2017101429A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1016966A2 (en) * 1998-12-29 2000-07-05 Honeywell Inc. Method and protocol for inter-process communication
CN101572710A (zh) * 2009-06-03 2009-11-04 杭州华三通信技术有限公司 一种进程间通信方法和系统
CN101977195A (zh) * 2010-10-29 2011-02-16 西安交通大学 一种基于共享内存机制虚拟机域间通信协议的实现方法
US8601069B1 (en) * 2007-11-21 2013-12-03 Marvell International Ltd. Method and apparatus for message multicasting

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100312306B1 (ko) * 1999-06-25 2001-11-03 윤종용 이동통신시스템에서 핸드오프를 지원하기 위한 비동기전송모드아이피씨 네트워크 및 그 제어 방법
US20080229325A1 (en) * 2007-03-15 2008-09-18 Supalov Alexander V Method and apparatus to use unmapped cache for interprocess communication
CN103455380A (zh) * 2012-06-05 2013-12-18 上海斐讯数据通信技术有限公司 多进程通信系统及其建立和通信方法
CN103853620B (zh) * 2012-11-30 2017-06-09 华为技术有限公司 一种众核处理器进程间相互通信的方法、装置及系统
CN103064749B (zh) * 2013-01-09 2017-05-24 上海斐讯数据通信技术有限公司 一种进程间通信方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1016966A2 (en) * 1998-12-29 2000-07-05 Honeywell Inc. Method and protocol for inter-process communication
US8601069B1 (en) * 2007-11-21 2013-12-03 Marvell International Ltd. Method and apparatus for message multicasting
CN101572710A (zh) * 2009-06-03 2009-11-04 杭州华三通信技术有限公司 一种进程间通信方法和系统
CN101977195A (zh) * 2010-10-29 2011-02-16 西安交通大学 一种基于共享内存机制虚拟机域间通信协议的实现方法

Also Published As

Publication number Publication date
CN105912410A (zh) 2016-08-31

Similar Documents

Publication Publication Date Title
EP3410759B1 (en) Method and access point for accessing network by internet-of-things device
RU2542911C2 (ru) Установление однорангового сеанса с малым временем ожидания
US10659226B2 (en) Data encryption method, decryption method, apparatus, and system
US9762567B2 (en) Wireless communication of a user identifier and encrypted time-sensitive data
US9525675B2 (en) Encryption key retrieval
US9515958B2 (en) Accessing a cloud-based service using a communication device linked to another communication device via a peer-to-peer ad hoc communication link
WO2015070784A1 (zh) 一种网络访问控制方法及装置
US10542035B2 (en) Managing rogue devices through a network backhaul
US11252143B2 (en) Authentication system, authentication server and authentication method
CN105262773B (zh) 一种物联网系统的验证方法及装置
JP2014160942A5 (zh)
CN112395020B (zh) 内网的安全防护方法、客户端、目标服务器及存储介质
US10268532B2 (en) Application message processing system, method, and application device
CN105515757B (zh) 基于可信执行环境的安全性信息交互设备
WO2017005163A1 (zh) 基于无线通信的安全认证装置
CN103561063A (zh) 一种登录机顶盒的方法及终端
CN105306228A (zh) 虚拟内容分享方法
US10645085B2 (en) Device management across multiple operator networks
CN105283864B (zh) 管理裸机客户
US10819780B2 (en) Protected data collection in a multi-node network
CN106295267A (zh) 一种访问电子设备的物理内存中私密数据的方法和装置
US12425452B2 (en) Device authentication using out-of-band communications
WO2017101429A1 (zh) 一种用于多个进程之间进行通信方法及客户端
CN110460567B (zh) 一种身份鉴权方法及装置
US20170171107A1 (en) Communication method and the client for multiple processes

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: 16874490

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: 16874490

Country of ref document: EP

Kind code of ref document: A1