CN104838361A - Inter-core process communication method, apparatus and system - Google Patents

Inter-core process communication method, apparatus and system Download PDF

Info

Publication number
CN104838361A
CN104838361A CN201380002578.4A CN201380002578A CN104838361A CN 104838361 A CN104838361 A CN 104838361A CN 201380002578 A CN201380002578 A CN 201380002578A CN 104838361 A CN104838361 A CN 104838361A
Authority
CN
China
Prior art keywords
message
communication
message channel
pattern
internuclear
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.)
Granted
Application number
CN201380002578.4A
Other languages
Chinese (zh)
Other versions
CN104838361B (en
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.)
Honor Device 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
Publication of CN104838361A publication Critical patent/CN104838361A/en
Application granted granted Critical
Publication of CN104838361B publication Critical patent/CN104838361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed is an inter-core process communication method. The method comprises: a receiving end monitoring a message channel for inter-core process communication, the message channel being a message channel jointly formed by a sending end, a shared memory and the receiving end, the receiving end being an apparatus for running a receiving end process, and the sending end being an apparatus for running a sending end process; when a switching parameter of a message in the message channel meets a preset switching condition, the receiving end switching communication modes, the switching of the communication modes being a switching between a polling mode and an inter-core interruption mode; and the receiving end notifying the sending end of the switched communication mode, and performing inter-core process communication by using the switched communication mode. By using the method provided in the embodiment of the present invention, the communication mode can be switched into a proper communication mode according to a switching parameter of a message channel for inter-core process communication, thereby improving the efficiency of the inter-core process communication.

Description

Inter-core process communication method, apparatus and system
A kind of method of internuclear process communication, apparatus and system technical field
The present invention relates to field of computer technology, and in particular to a kind of method of internuclear process communication, apparatus and system.
Background technology
Process is there is corresponding communication requirement due to cooperating between the program entity being currently running in computer, different processes.Interprocess communication can be divided into interprocess communication and internuclear interprocess communication in core.Internuclear process communication generally uses polling mode or internuclear interruption(Inter-process Interrupt, Ι Ρ Ι) mode.
Especially, with the appearance of multinuclear and many-core, internuclear process communication is more frequent.
In the prior art, the flow that internuclear process communication is carried out by the way of poll is as follows:
51st, client process writes partial write Message Payload into shared drive;
52nd, client process writes partial write message header into shared drive;
53rd, the message header of the reading part in service end process poll shared drive;
S4, service end process find have unread message then to read Message Payload.
The flow for carrying out internuclear process communication using internuclear interruption IPI is as follows:
Hl, client process write partial write Message Payload into shared drive;
H 2, client process write partial write message header into shared drive;
H 3, client process calling system are called, and are absorbed in client kernel, are deposited in service end message transmission Slow(Message Passing Buffer, Μ Ρ Β) in the corresponding gap marker in write service end(Channel id), while updating MPB writing position(Write pos), triggering service end kernel is interrupted;
H 4, service end kernel responds are interrupted, and channel id are obtained from MPB, and a null message is sent to the corresponding local Imp-endpoint of channel id, and dispatch service end process is run;
H 5, service end process are during Imp-endpoint message is handled, the message header of the reading part in poll shared drive;
H 6, discovery have unread message then to be handled.
In the prior art, when intercore communication is frequent, frequently carrying out internuclear interruption can cause receiving terminal process frequently to pass in and out kernel, cause message throughput low, when intercore communication is less, be carried out by way of poll internuclear Communication, excessive poll occupies CPU disposal ability, reduces cpu busy percentage.It was found by the inventors of the present invention that not accounting for the applicable elements of polling communication and internuclear interruption in the prior art, cause internuclear process communication inefficiency.
The content of the invention
The embodiment of the present invention provides a kind of method of internuclear process communication, suitable communication pattern can be switched to, so as to improve the efficiency of internuclear process communication according to the handoff parameter of the message channel of internuclear process communication.The embodiment of the present invention additionally provides corresponding apparatus and system.
First aspect present invention provides a kind of method of internuclear process communication, including:
Receiving terminal monitors the message channel of internuclear process communication, the message channel is the message channel that transmitting terminal, shared drive and the receiving terminal are collectively constituted, the receiving terminal is the device of operation receiving terminal process, and the transmitting terminal is the device of operation transmitting terminal process;
When the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, and the communication pattern switches to the switching between poll pattern and internuclear interrupt mode;The receiving terminal notifies the communication pattern after the transmitting terminal switching, and with the communication pattern after switching, carries out internuclear process communication.
With reference in a first aspect, in the first possible implementation, when the communication pattern is switched to the poll pattern by the internuclear interrupt mode, methods described also includes:
The receiving terminal writes the mark of the message channel in polling list, and the communication mode identification of message channel described in the shared drive is revised as into poll pattern mark.
With reference in a first aspect, in second of possible implementation, when the communication pattern is switched to the internuclear interrupt mode by the poll pattern, methods described also includes:
The receiving terminal deletes the mark of the message channel from polling list, and the communication mode identification of message channel described in the shared drive is revised as into internuclear interrupt mode mark.
With reference to first aspect or first aspect the first possible implementation, in the third possible implementation, the receiving terminal monitors the message channel of internuclear process communication, including:
The receiving terminal monitors the number of times in preset time by message in the message channel;
Corresponding, described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, and the communication pattern is switched in poll pattern and internuclear interrupt mode Between switching, including:
When exceeding preset switching times by the number of times of message in preset time in the message channel, and the communication pattern of the message channel, when being in internuclear interrupt mode, the receiving terminal is switched to poll pattern from internuclear interrupt mode.
With reference to second of possible implementation of first aspect or first aspect, in the 4th kind of possible implementation, the receiving terminal monitors the message channel of internuclear process communication, including:
The receiving terminal monitors the number of times in preset time by message in the message channel;
Corresponding, described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, and the communication pattern switches to the switching between poll pattern and internuclear interrupt mode, including:
When being less equal than preset switching times by the number of times of message in preset time in the message channel, and the communication pattern of the message channel, when being in poll pattern, the receiving terminal is switched to internuclear interrupt mode from poll pattern.
With reference to first aspect or first aspect the first possible implementation, in the 5th kind of possible implementation, the receiving terminal monitors the message channel of internuclear process communication, including:
When the communication pattern of the message channel is in poll pattern, the receiving terminal obtains the message weight value of the message channel, and the message weight value of each message channel in the receiving terminal is sorted according to order from big to small;
According to the length value N of polling list in the receiving terminal and the ranking results of the message weight value, determine the message channel identify whether can insert the polling list, the polling list can be only filled with mark of the message weight value in preceding N message channel;
Described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, and the communication pattern switches to the switching between poll pattern and internuclear interrupt mode, including:
When the mark of the message channel can not insert the polling list, the receiving terminal is switched to internuclear interrupt mode from poll pattern.
With reference to the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation, the receiving terminal obtains the weighted value of the message channel, including: The receiving terminal is polled to a message of the message channel, is that the weighted value of the message channel adds the integer value of preset size, the weighted value of the message channel once, is subtracted 1 by poll failure.
With reference to first aspect, first aspect the first any one into the 6th kind of possible implementation, in the 7th kind of possible implementation, when the communication pattern is poll pattern, methods described also includes:The receiving terminal is after the transmitting terminal writes first data block and message header of Message Payload into the shared drive, when the transmitting terminal writes other data blocks of the Message Payload into the shared drive, start Message Payload described in poll, the Message Payload is split as the data block of multiple presetting lengths by the transmitting terminal.
With reference to first aspect, first aspect the first any one into the 6th kind of possible implementation, in the 8th kind of possible implementation, when the communication pattern is internuclear interrupt mode, methods described also includes:
The receiving terminal is after the transmitting terminal writes first data block and message header of Message Payload into the shared drive, respond the interruption of the transmitting terminal triggering, and after the interruption, start Message Payload described in poll, the Message Payload is split as the data block of multiple presetting lengths by the transmitting terminal.
Second aspect of the present invention provides a kind of device of internuclear process communication, including:
Monitoring unit, message channel for monitoring internuclear process communication, the message channel is the message channel that transmitting terminal, shared drive and the receiving terminal are collectively constituted, and the receiving terminal is the device of operation receiving terminal process, and the transmitting terminal is the device of operation transmitting terminal process;
Switch unit, when meeting preset switching condition for monitoring the handoff parameter of message in the message channel when the monitoring unit, carries out communication pattern switching, the communication pattern switches to the switching between poll pattern and internuclear interrupt mode;
Notification unit, for notifying the communication pattern after switch unit switching described in the transmitting terminal;Communication unit, for the communication pattern after switch unit switching, carrying out internuclear process communication.It is described also to include first processing units when the communication pattern is switched to the poll pattern by the internuclear interrupt mode in the first possible implementation with reference to second aspect,
The first processing units, poll pattern mark is revised as the mark of the message channel to be write in polling list, and by the communication mode identification of message channel described in the shared drive.
With reference to second aspect, in second of possible implementation, when the communication pattern is by the poll It is described also to include second processing unit when pattern switching is to the internuclear interrupt mode,
The second processing unit, internuclear interrupt mode mark is revised as the mark of the message channel to be deleted from polling list, and by the communication mode identification of message channel described in the shared drive.
With reference to second aspect or second aspect the first possible implementation, in the third possible implementation, the monitoring unit, for monitoring the number of times in the message channel in preset time by message;The switch unit, for when exceeding preset switching times by the number of times of message in preset time in the message channel, and the communication pattern of the message channel is when being in internuclear interrupt mode, and poll pattern is switched to from internuclear interrupt mode.
With reference to second of possible implementation of second aspect or second aspect, in the 4th kind of possible implementation, the monitoring unit, for monitoring the number of times in the message channel in preset time by message;The switch unit, for when being less equal than preset switching times by the number of times of message in preset time in the message channel, and the communication pattern of the message channel is when being in poll pattern, and internuclear interrupt mode is switched to from poll pattern.
With reference to second aspect or second aspect the first possible implementation, in the 5th kind of possible implementation, the monitoring unit, including:Subelement, sequence subelement and determination subelement are obtained,
The acquisition subelement, for when the communication pattern of the message channel is in poll pattern, obtaining the message weight value of the message channel;
The sequence subelement, for the message weight value of each message channel in the receiving terminal of the acquisition subelement acquisition to be sorted according to order from big to small;
The determination subelement, for the length value N according to polling list in the receiving terminal and the ranking results of the sequence subelement of the message weight value, determine the message channel identify whether can insert the polling list, the polling list can be only filled with mark of the message weight value in preceding N message channel;The switch unit, for when the mark of the message channel can not insert the polling list, internuclear interrupt mode to be switched to from poll pattern.
With reference to the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation, the acquisition subelement, a message for being polled to the message channel, the integer value of preset size is added for the weighted value of the message channel, the weighted value of the message channel once, is subtracted 1 by poll failure With reference to second aspect, second aspect the first any one into the 6th kind of possible implementation, in the 7th kind of possible implementation, when the communication pattern is poll pattern,
The communication unit, for after the transmitting terminal writes first data block and message header of Message Payload into the shared drive, when the transmitting terminal writes other data blocks of the Message Payload into the shared drive, start Message Payload described in poll, the Message Payload is split as the data block of multiple presetting lengths by the transmitting terminal.
With reference to second aspect, second aspect the first any one into the 6th kind of possible implementation, in the 8th kind of possible implementation, when the communication pattern is internuclear interrupt mode,
The communication unit, for after the transmitting terminal writes first data block and message header of Message Payload into the shared drive, respond the interruption of the transmitting terminal triggering, and after the interruption, start Message Payload described in poll, the Message Payload is split as the data block of multiple presetting lengths by the transmitting terminal.
Third aspect present invention provides a kind of internuclear process communication system, it is characterised in that including:The device of intercore communication is included in multiple processors, the processor, the process in the multiple processing is in communication with each other, when any one in the multiple processing is as receiving terminal, the device of the intercore communication is the device described in above-mentioned technical proposal.
The embodiment of the present invention monitors the message channel of internuclear process communication using receiving terminal, the message channel is transmitting terminal, the message channel that shared drive and the receiving terminal are collectively constituted, the receiving terminal is the device of operation receiving terminal process, the transmitting terminal is the device of operation transmitting terminal process, when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, the communication pattern switches to the switching between poll pattern and internuclear interrupt mode, the receiving terminal notifies the communication pattern after the transmitting terminal switching, and with the communication pattern after switching, carry out internuclear process communication.During with internuclear process communication in the prior art, the applicable elements that polling communication is not accounted for internuclear interruption are compared, method provided in an embodiment of the present invention, can be according to the handoff parameter of the message channel of internuclear process communication, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, the accompanying drawing used required in being described below to embodiment is briefly described, apparently, drawings in the following description are only some embodiments of the present invention, for those skilled in the art, on the premise of not paying creative work, also Other accompanying drawings can be obtained according to these accompanying drawings.
Fig. 1 is an embodiment schematic diagram of the method for process communication between center of the embodiment of the present invention;
Fig. 2 is another embodiment schematic diagram of the method for process communication between center of the embodiment of the present invention;Fig. 3 is another embodiment schematic diagram of the method for process communication between center of the embodiment of the present invention;Fig. 4 is an embodiment schematic diagram of the device of process communication between center of the embodiment of the present invention;
Fig. 5 is an embodiment schematic diagram of device in the embodiment of the present invention;
Fig. 6 is an embodiment schematic diagram of device in the embodiment of the present invention;
Fig. 7 is an embodiment schematic diagram of device in the embodiment of the present invention;
Fig. 8 is an embodiment schematic diagram of process communication system between center of the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of method of internuclear process communication, suitable communication pattern can be switched to, so as to improve the efficiency of internuclear process communication according to the handoff parameter of the message channel of internuclear process communication.The embodiment of the present invention additionally provides corresponding apparatus and system.It is described in detail individually below.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those skilled in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
Refering to Fig. 1, an embodiment of the method for internuclear process communication provided in an embodiment of the present invention includes:
101st, receiving terminal monitors the message channel of internuclear process communication, and the message channel is the message channel that transmitting terminal, shared drive and the receiving terminal are collectively constituted.
In the embodiment of the present invention, the receiving terminal is the device of operation receiving terminal process, and the transmitting terminal is the device of operation transmitting terminal process.
Internuclear process communication is exactly the communication of process in different processor, in multinuclear or many-core system, internuclear process communication is very frequent, internuclear process is in communication process sometimes as receiving terminal process, sometimes as transmitting terminal process, in internuclear process communication, message header and Message Payload are written in shared drive by transmitting terminal process in the process of running, then, receiving terminal process reads the message header and Message Payload of transmitting terminal process write-in from shared drive, so as to realize internuclear process communication, therefore, transmitting terminal, shared drive and receiving terminal have collectively constituted the message channel of internuclear process communication, each message channel has unique gap marker. 102nd, when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, and the communication pattern switches to the switching between poll pattern and internuclear interrupt mode.
The communication pattern of transmitting terminal process and receiving terminal process has poll pattern and internuclear interrupt mode.
Poll pattern is exactly the message header and Message Payload that receiving terminal process poll from shared drive reads the write-in of transmitting terminal process.
Internuclear interrupt mode is exactly that receiving terminal response is interrupted, and starts to read the message header and Message Payload that transmitting terminal process writes in shared drive after transmitting terminal triggering receiving terminal kernel is interrupted.
When message number is more, the handling capacity of message can more be improved using poll pattern, when message number is less, the utilization rate of processor can more be improved using internuclear interrupt mode, so, receiving terminal can be switched over after the message of monitoring message passage in two kinds of communication patterns, to improve the utilization rate of processor.
The handoff parameter of message can be with being weighed in preset time by the number of times of message.For example:Preset time is 10 seconds, and predetermined times are 3 times, then poll pattern can be then used by 3 message in 10 seconds, if by 1 message in 10 seconds, can use internuclear interrupt mode.If transmitting terminal process is internuclear interrupt mode with the original intercore communication pattern of receiving terminal process, receiving terminal passed through 3 message in message channel is monitored in 10 seconds, then communication pattern can be switched to poll pattern, if transmitting terminal process is poll pattern with the original intercore communication pattern of receiving terminal process, no message passes through receiving terminal in 10 seconds in message channel is monitored, or only 1 message passes through, then communication pattern is switched into internuclear interrupt mode.
103rd, the receiving terminal notifies the communication pattern after the transmitting terminal switching, and with the communication pattern after switching, carries out internuclear process communication.
Receiving terminal notifies the communication pattern after switching, to transmitting terminal with the communication pattern after switching, to carry out internuclear process communication after switch communication mode.
The embodiment of the present invention monitors the message channel of internuclear process communication using receiving terminal, the message channel is the message channel that transmitting terminal, shared drive and the receiving terminal are collectively constituted, the receiving terminal is the device of operation receiving terminal process, the transmitting terminal is the device of operation transmitting terminal process, when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, the communication pattern switches to the switching between poll pattern and internuclear interrupt mode, and the receiving terminal notifies the transmitting terminal Communication pattern after switching, and with the communication pattern after switching, carry out internuclear process communication.During with internuclear process communication in the prior art, the applicable elements that polling communication is not accounted for internuclear interruption are compared, method provided in an embodiment of the present invention, can be according to the handoff parameter of the message channel of internuclear process communication, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 1, in first alternative embodiment of the method for internuclear process communication provided in an embodiment of the present invention, when the communication pattern is switched to the poll pattern by the internuclear interrupt mode, methods described can also include:
The receiving terminal writes the mark of the message channel in polling list, and the communication mode identification of message channel described in the shared drive is revised as into poll pattern mark.
In the embodiment of the present invention, record has the mark of the message channel in poll pattern in polling list, after communication pattern is switched to poll pattern, receiving terminal can update polling list, the mark of message channel in poll pattern after switching is inserted into polling list, and the communication mode identification of message channel described in shared drive is revised as poll pattern mark.
For example:Message channel after switching is designated channel 5, channel 5 is then write into polling list, if internuclear interrupt mode is designated 0, poll pattern is designated 1, then the communication mode identification father of message channel channel 5 in shared drive is changed into poll pattern 1.
During with internuclear process communication in the prior art, the applicable elements that polling communication is not accounted for internuclear interruption are compared, method provided in an embodiment of the present invention, can be according to the handoff parameter of the message channel of internuclear process communication, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 1, in second alternative embodiment of the method for internuclear process communication provided in an embodiment of the present invention, when the communication pattern is switched to the internuclear interrupt mode by the poll pattern, methods described can also include:
The receiving terminal deletes the mark of the message channel from polling list, and the communication mode identification of message channel described in the shared drive is revised as into internuclear interrupt mode mark.
In the embodiment of the present invention, record has the mark of the message channel in poll pattern in polling list, after communication pattern is switched to internuclear interrupt mode, receiving terminal can update polling list, the mark of message channel in internuclear interrupt mode after switching is deleted from polling list, and communication mode identification ^ fathers ι of message channel described in shared drive are changed to internuclear interrupt mode and is identified. For example:Message channel after switching is designated channel 5, then channel 5 is deleted from polling list, if internuclear interrupt mode is designated 0, poll pattern is designated 1, then the communication mode identification father of message channel channel 5 in shared drive is changed into poll pattern 0.
During with internuclear process communication in the prior art, the applicable elements that polling communication is not accounted for internuclear interruption are compared, method provided in an embodiment of the present invention, can be according to the handoff parameter of the message channel of internuclear process communication, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.
Alternatively, on the basis of corresponding first alternative embodiment of the corresponding embodiments of above-mentioned Fig. 1 or Fig. 1, in 3rd alternative embodiment of the method for internuclear process communication provided in an embodiment of the present invention, the receiving terminal monitors the message channel of internuclear process communication, can include:
The receiving terminal monitors the number of times in preset time by message in the message channel;
Corresponding, described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, and the communication pattern switches to the switching between poll pattern and internuclear interrupt mode, can included:
When exceeding preset switching times by the number of times of message in preset time in the message channel, and the communication pattern of the message channel, when being in internuclear interrupt mode, the receiving terminal is switched to poll pattern from internuclear interrupt mode.
In the embodiment of the present invention, the handoff parameter of message can be with being weighed in preset time by the number of times of message.For example:Preset time is 10 seconds, and predetermined times are 3 times, then poll pattern can be then used by 3 message in 10 seconds, if by 1 message in 10 seconds, can use internuclear interrupt mode.If transmitting terminal and the original intercore communication pattern of receiving terminal are internuclear interrupt mode, receiving terminal in message channel is monitored in 10 seconds by 3 message, then communication pattern can be switched to poll pattern.
During with internuclear process communication in the prior art, the applicable elements that polling communication is not accounted for internuclear interruption are compared, method provided in an embodiment of the present invention, can be according to the handoff parameter of the message channel of internuclear process communication, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.
Alternatively, on the basis of corresponding second alternative embodiment of the corresponding embodiments of above-mentioned Fig. 1 or Fig. 1, in 4th alternative embodiment of the method for internuclear process communication provided in an embodiment of the present invention, the receiving terminal monitors the message channel of internuclear process communication, can include:
The receiving terminal monitors the number of times in preset time by message in the message channel; Corresponding, described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, and the communication pattern switches to the switching between poll pattern and internuclear interrupt mode, can included:
When being less equal than preset switching times by the number of times of message in preset time in the message channel, and the communication pattern of the message channel, when being in poll pattern, the receiving terminal is switched to internuclear interrupt mode from poll pattern.
In the embodiment of the present invention, the handoff parameter of message can be with being weighed in preset time by the number of times of message.For example:Preset time is 10 seconds, and predetermined times are 3 times, then poll pattern can be then used by 3 message in 10 seconds, if by 1 message in 10 seconds, can use internuclear interrupt mode.If transmitting terminal is poll pattern with the original intercore communication pattern of receiving terminal, no message passes through in 10 seconds in message channel is monitored, or only 1 message passes through, then communication pattern is switched into internuclear interrupt mode.
During with internuclear process communication in the prior art, the applicable elements that polling communication is not accounted for internuclear interruption are compared, method provided in an embodiment of the present invention, can be according to the handoff parameter of the message channel of internuclear process communication, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.
Alternatively, on the basis of corresponding first alternative embodiment of the corresponding embodiments of above-mentioned Fig. 1 or Fig. 1, in 5th alternative embodiment of the method for internuclear process communication provided in an embodiment of the present invention, the receiving terminal monitors the message channel of internuclear process communication, can include:
When the communication pattern of the message channel is in poll pattern, the receiving terminal obtains the message weight value of the message channel, and the message weight value of each message channel in the receiving terminal is sorted according to order from big to small;
According to the length value N of polling list in the receiving terminal and the ranking results of the message weight value, determine the message channel identify whether can insert the polling list, the polling list can be only filled with mark of the message weight value in preceding N message channel;
Described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, and the communication pattern switches to the switching between poll pattern and internuclear interrupt mode, can included:
When the mark of the message channel can not insert the polling list, the receiving terminal is from poll pattern It is switched to internuclear interrupt mode.
In the embodiment of the present invention, message weight value is the parameter that poll pattern whether is adapted in use to for describing the message channel, if 10 message channels are all in poll pattern, the message weight value of this 10 message channels is followed successively by 20,17,15,10,9,8,6,5,2,1, if the length value of polling list is 5, the mark of the preceding message channel of message weight value is so can be only filled with polling list, that is, message weight value is the mark of 20,17,15,10,9 these message channels.
So, the mark of these message channels of message weight value 8,6,5,2,1 cannot be inserted in polling list, and these message channels cannot keep poll pattern, it is necessary to be switched to internuclear interrupt mode.
During with internuclear process communication in the prior art, the applicable elements that polling communication is not accounted for internuclear interruption are compared, method provided in an embodiment of the present invention, can be according to the handoff parameter of the message channel of internuclear process communication, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.
Alternatively, on the basis of above-mentioned 5th alternative embodiment, in the 6th alternative embodiment of the method for internuclear process communication provided in an embodiment of the present invention, the receiving terminal obtains the weighted value of the message channel, can include:
The receiving terminal is polled to a message of the message channel, is that the weighted value of the message channel adds the integer value of preset size, the weighted value of the message channel once, is subtracted 1 by poll failure.
In the embodiment of the present invention, message weight value is a variable, can be represented with weight, when being polled to a message in message channel, weight adds the integer value of preset size, for example, the integer value of the preset size is 20, then represented with weight+20, each poll failure then subtracts 1 on weight+20, if poll fails 5 times, then message weight value is weight+15, as weight=0, then message weight value is 15.
During with internuclear process communication in the prior art, the applicable elements that polling communication is not accounted for internuclear interruption are compared, method provided in an embodiment of the present invention, can be according to the handoff parameter of the message channel of internuclear process communication, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.
Alternatively, on the foundation stone of any of the above-described embodiment goes out, in the 7th alternative embodiment of the method for internuclear process communication provided in an embodiment of the present invention, when the communication pattern is poll pattern, methods described can also include:
The receiving terminal writes other data of the Message Payload into the shared drive after the transmitting terminal writes first data block and message header of Message Payload into the shared drive in the transmitting terminal During block, start Message Payload described in poll, the Message Payload is split as the data block of multiple presetting lengths by the transmitting terminal.
In the embodiment of the present invention, Message Payload has length, for example:Length is 320 bytes, the Message Payload can be split as 10 data blocks of the presetting length for 32 bytes by transmitting terminal, if the length of Message Payload is 340 bytes, so the Message Payload can be split as 11 data blocks, preceding 10 data blocks are all 32 bytes of presetting length, last data block length is 20 bytes, transmitting terminal can first write first data block into shared drive, then after write-in message, receiving terminal is after transmitting terminal first data block of write-in and message header is monitored, message header and first data block can be just read from shared drive, so, when transmitting terminal writes other data blocks successively, receiving terminal can just read other data blocks successively, so as to improve the transmission speed of message.
During with internuclear process communication in the prior art, the applicable elements that polling communication is not accounted for internuclear interruption are compared, method provided in an embodiment of the present invention, can be according to the handoff parameter of the message channel of internuclear process communication, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.
Alternatively, on the basis of any of the above-described embodiment, in the 8th alternative embodiment of the method for internuclear process communication provided in an embodiment of the present invention, when the communication pattern is internuclear interrupt mode, methods described can also include:
The receiving terminal is after the transmitting terminal writes first data block and message header of Message Payload into the shared drive, respond the interruption of the transmitting terminal triggering, and after the interruption, start Message Payload described in poll, the Message Payload is split as the data block of multiple presetting lengths by the transmitting terminal.
In the embodiment of the present invention, Message Payload has length, for example:Length is 320 bytes, the Message Payload can be split as 10 data blocks of the presetting length for 32 bytes by transmitting terminal, if the length of Message Payload is 340 bytes, so the Message Payload can be split as 11 data blocks, preceding 10 data blocks are all 32 bytes of presetting length, last data block length is 20 bytes, transmitting terminal can first write first data block into shared drive, then after write-in message, transmitting terminal triggering is interrupted, after receiving terminal response is interrupted, receiving terminal can just read message header and first data block from shared drive, so, when transmitting terminal writes other data blocks successively, receiving terminal can just read other data blocks successively, so as to improve the transmission speed of message.
During with internuclear process communication in the prior art, polling communication and the applicable bar of internuclear interruption are not accounted for Part is compared, method provided in an embodiment of the present invention, suitable communication pattern can be switched to, so as to improve the efficiency of internuclear process communication according to the handoff parameter of the message channel of internuclear process communication.
In order to make it easy to understand, below by taking an application scenarios as an example, illustrating the process of the method for process communication between center of the embodiment of the present invention:
Refering to Fig. 2, when the initial communication pattern of transmitting terminal process and receiving terminal process is internuclear interrupt mode, the process communication of transmitting terminal and receiving terminal comprises the following steps:
51st, Message Payload is split as the data block of multiple preset sizes by transmitting terminal during operation transmitting terminal process, is calculated if the inadequate presetting length of remaining byte length by 1 data block.
52nd, transmitting terminal operation transmitting terminal process writes first data block of Message Payload into shared drive.S3, transmitting terminal operation transmitting terminal process write message header into shared drive;
54th, transmitting terminal operation transmitting terminal process reads the mode of operation of the message channel from the 6th memory space of shared drive, and step S5 is then performed if internuclear interruption IPI patterns.
55th, the transmitting terminal process calling system of transmitting terminal operation is called, and is absorbed in transmitting terminal kernel, the corresponding channel id of the message channel are write in receiving terminal message transmission Slow deposits MPB, while updating MPB writing position(Write pos), triggering receiving terminal kernel is interrupted.
56th, transmitting terminal operation transmitting terminal process continues successively to write remaining 2nd to the 7th data block to shared drive.
57th, receiving terminal kernel responds are interrupted, and channel id are obtained from MPB, and scheduled reception end process is run.
Message header in S8, receiving terminal operation receiving terminal process poll shared drive.
S9, receiving terminal operation receiving terminal process find have unread message then to read corresponding Message Payload and handled.
The message number of times that S10, receiving terminal operation receiving terminal process monitoring pass through into message channel in preset time reaches predetermined times, but row needs to be switched to poll pattern, then the mark of the message channel is added in polling list, and the communication mode identification of the message channel in shared drive is changed to the mark of poll pattern.
It should be noted that in this application scene, step S6 might not can perform before step S7, S8 simultaneously. During with internuclear process communication in the prior art, the applicable elements that polling communication is not accounted for internuclear interruption are compared, method provided in an embodiment of the present invention, can be according to the handoff parameter of the message channel of internuclear process communication, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.
Refering to Fig. 3, when the initial communication pattern of transmitting terminal process and receiving terminal process is poll pattern, the process communication of transmitting terminal and receiving terminal comprises the following steps:
Message Payload is split as the data block of multiple preset sizes by Hl, transmitting terminal during operation transmitting terminal process, is calculated if the inadequate presetting length of remaining byte length by 1 data block.
H2, transmitting terminal operation transmitting terminal process write first data block of Message Payload into shared drive.
H3, transmitting terminal operation transmitting terminal process write message header into shared drive.
H4, transmitting terminal operation transmitting terminal process read the mode of operation of the message channel from shared drive, and step H5 is performed if poll pattern.
H5, transmitting terminal operation transmitting terminal process continue successively to write remaining Message Payload and message header to shared drive;
The message header in the corresponding shared drive of message channel in H6, receiving terminal operation receiving terminal process poll polling list.
H7, receiving terminal operation receiving terminal process find that the message channel has unread message then to read corresponding Message Payload and handled.
H8, receiving terminal confirm that communication pattern needs to be switched to internuclear interruption IPI patterns, then delete the message channel from polling list, and the communication mode identification in shared drive is changed to the mark of IPI patterns.
During with internuclear process communication in the prior art, the applicable elements that polling communication is not accounted for internuclear interruption are compared, method provided in an embodiment of the present invention, can be according to the handoff parameter of the message channel of internuclear process communication, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.
Refering to Fig. 4, an embodiment of the device of internuclear process communication provided in an embodiment of the present invention includes:Monitoring unit 201, message channel for monitoring internuclear process communication, the message channel is the message channel that transmitting terminal, shared drive and the receiving terminal are collectively constituted, and the receiving terminal is the device of operation receiving terminal process, and the transmitting terminal is the device of operation transmitting terminal process;
Switch unit 202, for when the handoff parameter that the monitoring unit 201 monitors message in the message channel meets preset switching condition, carrying out communication pattern switching, the communication pattern is switched in poll mould Switching between formula and internuclear interrupt mode;
Notification unit 203, for notifying the communication pattern after the switching of switch unit 202 described in the transmitting terminal;Communication unit 204, for the communication pattern after the switch unit 202 switching, carrying out internuclear process communication.
In the embodiment of the present invention, monitoring unit 201 monitors the message channel of internuclear process communication, the message channel is transmitting terminal, the message channel that shared drive and the receiving terminal are collectively constituted, the receiving terminal is the device of operation receiving terminal process, the transmitting terminal is the device of operation transmitting terminal process, switch unit 202 is when the handoff parameter that the monitoring unit 201 monitors message in the message channel meets preset switching condition, carry out communication pattern switching, the communication pattern switches to the switching between poll pattern and internuclear interrupt mode, notification unit 203 notifies the communication pattern after the switching of switch unit 202 described in the transmitting terminal, communication unit 204 is with the communication pattern after the switch unit 202 switching, carry out internuclear process communication.During with internuclear process communication in the prior art, the applicable elements that polling communication is not accounted for internuclear interruption are compared, device provided in an embodiment of the present invention, can be according to the handoff parameter of the message channel of internuclear process communication, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.
Alternatively, on the foundation stone of the corresponding embodiments of above-mentioned Fig. 4 goes out, refering to Fig. 5, in another embodiment of device provided in an embodiment of the present invention,
When the communication pattern is switched to the poll pattern by the internuclear interrupt mode, described device also includes first processing units 205,
The first processing units 205, poll pattern mark is revised as the mark of the message channel to be write in polling list, and by the communication mode identification of message channel described in the shared drive.
Alternatively, on the foundation stone of the corresponding embodiments of above-mentioned Fig. 4 goes out, refering to Fig. 6, in another embodiment of device provided in an embodiment of the present invention, when the communication pattern is switched to the internuclear interrupt mode by the poll pattern, described device also includes second processing unit 206
The second processing unit 206, internuclear interrupt mode mark is revised as the mark of the message channel to be deleted from polling list, and by the communication mode identification of message channel described in the shared drive.
Alternatively, on the foundation stone of the corresponding embodiments of above-mentioned Fig. 4 or Fig. 5 goes out, in another embodiment of device provided in an embodiment of the present invention,
The monitoring unit 201, for monitoring the number of times in the message channel in preset time by message; The switch unit 202, for when exceeding preset switching times by the number of times of message in preset time in the message channel, and the communication pattern of the message channel is when being in internuclear interrupt mode, and poll pattern is switched to from internuclear interrupt mode.
Alternatively, on the foundation stone of the corresponding embodiments of above-mentioned Fig. 4 or Fig. 6 goes out, in another embodiment of device provided in an embodiment of the present invention,
The monitoring unit 201, for monitoring the number of times in the message channel in preset time by message;The switch unit 202, for when being less equal than preset switching times by the number of times of message in preset time in the message channel, and the communication pattern of the message channel is when being in poll pattern, and internuclear interrupt mode is switched to from poll pattern.
Alternatively, on the foundation stone of the corresponding embodiments of above-mentioned Fig. 4 goes out, refering to Fig. 7, in another embodiment of device provided in an embodiment of the present invention, the monitoring unit 201, including:Subelement 2011, sequence subelement 2012 and determination subelement 2013 are obtained,
The acquisition subelement 2011, for when the communication pattern of the message channel is in poll pattern, obtaining the message weight value of the message channel;
The sequence subelement 2012, for the message weight value for obtaining each message channel in the receiving terminal that subelement 2011 is obtained to be sorted according to order from big to small;
The determination subelement 2013, for the length value N according to polling list in the receiving terminal and the ranking results of the sequence subelement 2012 of the message weight value, determine the message channel identify whether can insert the polling list, the polling list can be only filled with mark of the message weight value in preceding N message channel;
The switch unit 202, for when the mark of the message channel can not insert the polling list, internuclear interrupt mode to be switched to from poll pattern.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 7, in another embodiment of device provided in an embodiment of the present invention,
The acquisition subelement 2011, a message for being polled to the message channel is that the weighted value of the message channel adds the integer value of preset size, the weighted value of the message channel once, is subtracted 1 by poll failure.
Alternatively, on the foundation stone of any of the above-described embodiment goes out, another reality of device provided in an embodiment of the present invention Apply in example, when the communication pattern is poll pattern,
The communication unit 204, for after the transmitting terminal writes first data block and message header of Message Payload into the shared drive, when the transmitting terminal writes other data blocks of the Message Payload into the shared drive, start Message Payload described in poll, the Message Payload is split as the data block of multiple presetting lengths by the transmitting terminal.
Alternatively, on the foundation stone of any of the above-described embodiment goes out, in another embodiment of device provided in an embodiment of the present invention, when the communication pattern is internuclear interrupt mode,
The communication unit 204, for after the transmitting terminal writes first data block and message header of Message Payload into the shared drive, respond the interruption of the transmitting terminal triggering, and after the interruption, start Message Payload described in poll, the Message Payload is split as the data block of multiple presetting lengths by the transmitting terminal.
Refering to Fig. 8, an embodiment of internuclear process communication system provided in an embodiment of the present invention includes:Multiple processors, the device 20 of intercore communication is included in the processor, the Α of processor 2 as shown in Figure 8, the Β of processor 2 and processor 2C, there can also be more processors, it is not completely shown in this figure, process in the multiple processor is in communication with each other, when any one in the multiple processor is as receiving terminal;The device 20 of the intercore communication, message channel for monitoring internuclear process communication, the message channel is the message channel that transmitting terminal, shared drive and the receiving terminal are collectively constituted, the receiving terminal is the device of operation receiving terminal process, and the transmitting terminal is the device of operation transmitting terminal process;
When the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, and the communication pattern switches to the switching between poll pattern and internuclear interrupt mode;The receiving terminal notifies the communication pattern after the transmitting terminal switching, and with the communication pattern after switching, carries out internuclear process communication.One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment can be by program to instruct the hardware of correlation to complete, the program can be stored in a computer-readable recording medium, and storage medium can include:ROM, RAM, disk or CD etc..
The explanation that method, device and the system of the internuclear process communication provided above the embodiment of the present invention have carried out upper embodiment is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for those of ordinary skill in the art, according to the thought of the present invention, can in specific embodiments and applications There is change part, in summary, this specification content should not be construed as limiting the invention.

Claims (1)

  1. Claim
    1st, a kind of method of internuclear process communication, it is characterised in that including:
    Receiving terminal monitors the message channel of internuclear process communication, the message channel is the message channel that transmitting terminal, shared drive and the receiving terminal are collectively constituted, the receiving terminal is the device of operation receiving terminal process, and the transmitting terminal is the device of operation transmitting terminal process;
    When the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, and the communication pattern switches to the switching between poll pattern and internuclear interrupt mode;The receiving terminal notifies the communication pattern after the transmitting terminal switching, and with the communication pattern after switching, carries out internuclear process communication.
    2nd, according to the method described in claim 1, it is characterised in that when the communication pattern is switched to the poll pattern by the internuclear interrupt mode, methods described also includes:
    The receiving terminal writes the mark of the message channel in polling list, and the communication mode identification of message channel described in the shared drive is revised as into poll pattern mark.
    3rd, according to the method described in claim 1, it is characterised in that when the communication pattern is switched to the internuclear interrupt mode by the poll pattern, methods described also includes:
    The receiving terminal deletes the mark of the message channel from polling list, and the communication mode identification of message channel described in the shared drive is revised as into internuclear interrupt mode mark.
    4th, method according to claim 1 or 2, it is characterised in that the receiving terminal monitors the message channel of internuclear process communication, including:
    The receiving terminal monitors the number of times in preset time by message in the message channel;
    Corresponding, described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, and the communication pattern switches to the switching between poll pattern and internuclear interrupt mode, including:
    When exceeding preset switching times by the number of times of message in preset time in the message channel, and the communication pattern of the message channel, when being in internuclear interrupt mode, the receiving terminal is switched to poll pattern from internuclear interrupt mode.
    5th, the method according to claim 1 or 3, it is characterised in that the receiving terminal monitors the message channel of internuclear process communication, including: The receiving terminal monitors the number of times in preset time by message in the message channel;Corresponding, described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, and the communication pattern switches to the switching between poll pattern and internuclear interrupt mode, including:
    When being less equal than preset switching times by the number of times of message in preset time in the message channel, and the communication pattern of the message channel, when being in poll pattern, the receiving terminal is switched to internuclear interrupt mode from poll pattern.
    6th, method according to claim 1 or 2, it is characterised in that the receiving terminal monitors the message channel of internuclear process communication, including:
    When the communication pattern of the message channel is in poll pattern, the receiving terminal obtains the message weight value of the message channel, and the message weight value of each message channel in the receiving terminal is sorted according to order from big to small;
    According to the length value N of polling list in the receiving terminal and the ranking results of the message weight value, determine the message channel identify whether can insert the polling list, the polling list can be only filled with mark of the message weight value in preceding N message channel;
    Described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern switching, and the communication pattern switches to the switching between poll pattern and internuclear interrupt mode, including:
    When the mark of the message channel can not insert the polling list, the receiving terminal is switched to internuclear interrupt mode from poll pattern.
    7th, method according to claim 6, it is characterised in that the receiving terminal obtains the weighted value of the message channel, including:
    The receiving terminal is polled to a message of the message channel, is that the weighted value of the message channel adds the integer value of preset size, the weighted value of the message channel once, is subtracted 1 by poll failure.
    8th, according to any described methods of claim 1-7, it is characterised in that when the communication pattern is poll pattern, methods described also includes:
    The receiving terminal writes other data of the Message Payload into the shared drive after the transmitting terminal writes first data block and message header of Message Payload into the shared drive in the transmitting terminal During block, start Message Payload described in poll, the Message Payload is split as the data block of multiple presetting lengths by the transmitting terminal.
    9th, according to any described methods of claim 1-7, it is characterised in that when the communication pattern is internuclear interrupt mode, methods described also includes:
    The receiving terminal is after the transmitting terminal writes first data block and message header of Message Payload into the shared drive, respond the interruption of the transmitting terminal triggering, and after the interruption, start Message Payload described in poll, the Message Payload is split as the data block of multiple presetting lengths by the transmitting terminal.
    10th, a kind of device of internuclear process communication, it is characterised in that including:
    Monitoring unit, message channel for monitoring internuclear process communication, the message channel is the message channel that transmitting terminal, shared drive and the receiving terminal are collectively constituted, and the receiving terminal is the device of operation receiving terminal process, and the transmitting terminal is the device of operation transmitting terminal process;
    Switch unit, when meeting preset switching condition for monitoring the handoff parameter of message in the message channel when the monitoring unit, carries out communication pattern switching, the communication pattern switches to the switching between poll pattern and internuclear interrupt mode;
    Notification unit, for notifying the communication pattern after switch unit switching described in the transmitting terminal;Communication unit, for the communication pattern after switch unit switching, carrying out internuclear process communication.
    11st, device according to claim 10, it is characterised in that when the communication pattern is switched to the poll pattern by the internuclear interrupt mode, it is described also to include first processing units,
    The first processing units, poll pattern mark is revised as the mark of the message channel to be write in polling list, and by the communication mode identification of message channel described in the shared drive.
    12nd, device according to claim 10, it is characterised in that when the communication pattern is switched to the internuclear interrupt mode by the poll pattern, it is described also to include second processing unit,
    The second processing unit, internuclear interrupt mode mark is revised as the mark of the message channel to be deleted from polling list, and by the communication mode identification of message channel described in the shared drive.
    13rd, the device according to claim 10 or 11, it is characterised in that
    The monitoring unit, for monitoring the number of times in the message channel in preset time by message;The switch unit, for when exceeding preset switching times by the number of times of message in preset time in the message channel, and the communication pattern of the message channel is when being in internuclear interrupt mode, is interrupted from internuclear Pattern switching is to poll pattern.
    14th, the device according to claim 10 or 12, it is characterised in that
    The monitoring unit, for monitoring the number of times in the message channel in preset time by message;The switch unit, for when being less equal than preset switching times by the number of times of message in preset time in the message channel, and the communication pattern of the message channel is when being in poll pattern, and internuclear interrupt mode is switched to from poll pattern.
    15th, the device according to claim 10 or 11, it is characterised in that the monitoring unit, including:Subelement, sequence subelement and determination subelement are obtained,
    The acquisition subelement, for when the communication pattern of the message channel is in poll pattern, obtaining the message weight value of the message channel;
    The sequence subelement, for the message weight value of each message channel in the receiving terminal of the acquisition subelement acquisition to be sorted according to order from big to small;
    The determination subelement, for the length value N according to polling list in the receiving terminal and the ranking results of the sequence subelement of the message weight value, determine the message channel identify whether can insert the polling list, the polling list can be only filled with mark of the message weight value in preceding N message channel;The switch unit, for when the mark of the message channel can not insert the polling list, internuclear interrupt mode to be switched to from poll pattern.
    16th, device according to claim 15, it is characterised in that
    The acquisition subelement, a message for being polled to the message channel is that the weighted value of the message channel adds the integer value of preset size, the weighted value of the message channel once, is subtracted 1 by poll failure
    17th, according to any described devices of claim 10-16, it is characterised in that when the communication pattern is poll pattern,
    The communication unit, for after the transmitting terminal writes first data block and message header of Message Payload into the shared drive, when the transmitting terminal writes other data blocks of the Message Payload into the shared drive, start Message Payload described in poll, the Message Payload is split as the data block of multiple presetting lengths by the transmitting terminal.
    18th, according to any described devices of claim 10-16, it is characterised in that in the communication pattern During for internuclear interrupt mode,
    The communication unit, for after the transmitting terminal writes first data block and message header of Message Payload into the shared drive, respond the interruption of the transmitting terminal triggering, and after the interruption, start Message Payload described in poll, the Message Payload is split as the data block of multiple presetting lengths by the transmitting terminal.
    19th, a kind of internuclear process communication system, it is characterised in that including:Multiple processors, the device of intercore communication is included in the processor, process in the multiple processing is in communication with each other, when any one in the multiple processing is as receiving terminal, and the device of the intercore communication is any described devices of the claims 10-18.
CN201380002578.4A 2013-12-03 2013-12-03 A kind of method, apparatus and system of internuclear process communication Active CN104838361B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/088399 WO2015081490A1 (en) 2013-12-03 2013-12-03 Inter-core process communication method, apparatus and system

Publications (2)

Publication Number Publication Date
CN104838361A true CN104838361A (en) 2015-08-12
CN104838361B CN104838361B (en) 2018-06-15

Family

ID=53272724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380002578.4A Active CN104838361B (en) 2013-12-03 2013-12-03 A kind of method, apparatus and system of internuclear process communication

Country Status (2)

Country Link
CN (1) CN104838361B (en)
WO (1) WO2015081490A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861897A (en) * 2017-11-06 2018-03-30 郑州云海信息技术有限公司 One kind is interrupted and poll triggering method, system, equipment and computer-readable storage medium
CN108304269A (en) * 2017-01-13 2018-07-20 阿里巴巴集团控股有限公司 A kind of sending, receiving method of data, device and communications framework
CN109936502A (en) * 2017-12-15 2019-06-25 迈普通信技术股份有限公司 Data receiver method and data transmission set
CN113778705A (en) * 2021-08-18 2021-12-10 北京自动化控制设备研究所 Multi-core communication method based on AMP architecture
CN115658569A (en) * 2022-12-08 2023-01-31 井芯微电子技术(天津)有限公司 Method, system and equipment for interrupting and sharing storage among AMP (amplifier) multi-core processors

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352743B (en) * 2018-12-24 2023-12-01 北京新媒传信科技有限公司 Process communication method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6385659B1 (en) * 1998-08-19 2002-05-07 International Business Machines Corporation Handling of asynchronous message packet in a multi-node threaded computing environment
CN102117241A (en) * 2009-12-30 2011-07-06 华为技术有限公司 Multi-core system debugging method and multi-core system
CN102779075A (en) * 2012-06-28 2012-11-14 华为技术有限公司 Method, device and system for scheduling in multiprocessor nuclear system
CN103034543A (en) * 2012-05-29 2013-04-10 福建三元达通讯股份有限公司 Communication method among multiple software operating environments and method for enabling multiple software operating environments to communicate
US20130290984A1 (en) * 2012-04-29 2013-10-31 Texas Instruments Incorporated Method for Infrastructure Messaging

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6385659B1 (en) * 1998-08-19 2002-05-07 International Business Machines Corporation Handling of asynchronous message packet in a multi-node threaded computing environment
CN102117241A (en) * 2009-12-30 2011-07-06 华为技术有限公司 Multi-core system debugging method and multi-core system
US20130290984A1 (en) * 2012-04-29 2013-10-31 Texas Instruments Incorporated Method for Infrastructure Messaging
CN103034543A (en) * 2012-05-29 2013-04-10 福建三元达通讯股份有限公司 Communication method among multiple software operating environments and method for enabling multiple software operating environments to communicate
CN102779075A (en) * 2012-06-28 2012-11-14 华为技术有限公司 Method, device and system for scheduling in multiprocessor nuclear system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304269A (en) * 2017-01-13 2018-07-20 阿里巴巴集团控股有限公司 A kind of sending, receiving method of data, device and communications framework
CN107861897A (en) * 2017-11-06 2018-03-30 郑州云海信息技术有限公司 One kind is interrupted and poll triggering method, system, equipment and computer-readable storage medium
CN109936502A (en) * 2017-12-15 2019-06-25 迈普通信技术股份有限公司 Data receiver method and data transmission set
CN109936502B (en) * 2017-12-15 2022-05-17 迈普通信技术股份有限公司 Data receiving method and data transmission equipment
CN113778705A (en) * 2021-08-18 2021-12-10 北京自动化控制设备研究所 Multi-core communication method based on AMP architecture
CN115658569A (en) * 2022-12-08 2023-01-31 井芯微电子技术(天津)有限公司 Method, system and equipment for interrupting and sharing storage among AMP (amplifier) multi-core processors

Also Published As

Publication number Publication date
WO2015081490A1 (en) 2015-06-11
CN104838361B (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN104838361A (en) Inter-core process communication method, apparatus and system
CN104796337A (en) Method and device for forwarding message
KR101769114B1 (en) Sending node and buffer status reporting method
CN105450785B (en) File transmission method and device
CN111190854B (en) Communication data processing method, device, equipment, system and storage medium
CN107613529B (en) Message processing method and base station
US11671678B2 (en) Method and device, equipment, and storage medium for data processing
CN113778611A (en) Data transmission method, device, system and storage medium
CN105027081A (en) Method and apparatus for switching polling and interruption
KR20090094760A (en) Method and apparatus for performing buffer status reporting
CN115396528A (en) Quic data transmission method and device based on protocol family
CN102750245B (en) Message method of reseptance, message receiver module, Apparatus and system
CN105630424A (en) Data processing method, device and system
CN103440213A (en) Network card driving method applied to system with multiple CPUs (Central Processing Unit) and network cards
CN113518431B (en) Communication processing method, terminal, device and storage medium
CN102098215A (en) Priority management method for multi-application packet reception
CN103442091A (en) Data transmission method and device
CN110895517B (en) Method, equipment and system for transmitting data based on FPGA
CN108259492B (en) Traffic data retention method and device and computer readable storage medium
CN104838366A (en) Apparatus and circuit for processing data
CN108153597B (en) LINUX equipment management device and method
CN115712486A (en) Method and device for controlling live migration of virtual machine, medium and computer equipment
CN112968817A (en) Packet loss data statistical method and terminal in digital information transmission
CN114265869A (en) Data message forwarding method and device, storage medium and electronic equipment
US9241295B2 (en) Communication apparatus and communication method

Legal Events

Date Code Title Description
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210427

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right