CN104838361B - A kind of method, apparatus and system of internuclear process communication - Google Patents
A kind of method, apparatus and system of internuclear process communication Download PDFInfo
- Publication number
- CN104838361B CN104838361B CN201380002578.4A CN201380002578A CN104838361B CN 104838361 B CN104838361 B CN 104838361B CN 201380002578 A CN201380002578 A CN 201380002578A CN 104838361 B CN104838361 B CN 104838361B
- Authority
- CN
- China
- Prior art keywords
- message
- communication
- internuclear
- pattern
- receiving terminal
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/544—Buffers; Shared memory; Pipes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus 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
The invention discloses a kind of methods of internuclear process communication, receiving terminal monitors the message channel of internuclear process communication, the message channel is transmitting terminal, the message channel that shared drive and the receiving terminal collectively constitute, the receiving terminal is the device for running receiving terminal process, the transmitting terminal is the device for running 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 is switched 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.Method provided in an embodiment of the present invention can be switched to suitable communication pattern, so as to improve the efficiency of internuclear process communication according to the handoff parameter of the message channel of internuclear process communication.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of method, apparatus and system of internuclear process communication.
Background technology
Process is the program entity being currently running in computer, is led between different processes due to cooperating in the presence of corresponding
Letter demand.Interprocess communication can be divided into interprocess communication and internuclear interprocess communication in core.Internuclear process communication generally use wheel
Inquiry mode or internuclear interruption(Inter-process Interrupt, IPI)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:
S1, client process write partial write Message Payload into shared drive;
S2, client process write partial write message header into shared drive;
The message header of reading part in S3, server-side process poll shared drive;
S4, the discovery of server-side process have unread message then to read Message Payload.
The flow for carrying out internuclear process communication using internuclear interruption IPI is as follows:
H1, client process write partial write Message Payload into shared drive;
H2, client process write partial write message header into shared drive;
H3, client process calling system call, and are absorbed in client kernel, are cached in server-side message transmission(Message
Passing Buffer, MPB)The corresponding gap marker in middle write service end(channel id), while update the writing position of MPB
(write pos), the kernel interruption of triggering server-side;
H4, server-side kernel responds are interrupted, and channel id are obtained from MPB, to the corresponding locals of channel id
Lmp_endpoint sends a null message, and dispatch service end process is run;
H5, server-side process are during lmp_endpoint message is handled, the reading part in poll shared drive
Message header;
H6, discovery have unread message then to be handled.
In the prior art, when intercore communication is frequent, frequently carrying out internuclear interruption can cause in the frequent disengaging of receiving terminal process
Core causes message throughput low, when intercore communication is less, intercore communication is carried out by way of poll, excessive poll accounts for
With the processing capacity of CPU, cpu busy percentage is reduced.
It was found by the inventors of the present invention that polling communication and the applicable elements of internuclear interruption are not accounted in the prior art,
Lead to internuclear process communication inefficiency.
Invention content
The embodiment of the present invention provides a kind of method of internuclear process communication, can be according to the message channel of internuclear process communication
Handoff parameter, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.The embodiment of the present invention also 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, and the message channel is transmitting terminal, shared drive and described
The message channel that receiving terminal collectively constitutes, the receiving terminal are the device for running receiving terminal process, and the transmitting terminal is sent out for operation
The device of sending end process;
When the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication mould
Formula switches, and the communication pattern is switched 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 core
Between process communication.
With reference to first aspect, in the first possible implementation, when the communication pattern is by the internuclear interruption mould
When formula is switched to the poll pattern, the method further includes:
The mark of the message channel is written in polling list the receiving terminal, and will disappear described in the shared drive
The communication mode identification of breath channel is revised as poll pattern mark.
With reference to first aspect, in second of possible realization method, when the communication pattern is cut by the poll pattern
When changing to the internuclear interrupt mode, the method further includes:
The receiving terminal deletes the mark of the message channel from polling list, and will be described in the shared drive
The communication mode identification of message channel is revised as internuclear interrupt mode mark.
With reference to first aspect or first aspect the first possible realization method, in the third possible realization method,
The receiving terminal monitors the message channel of internuclear process communication, including:
The receiving terminal monitors the number in preset time by message in the message channel;
It is corresponding, described when the handoff parameter of message in the message channel meets preset switching condition, the reception
End carries out communication pattern switching, and the communication pattern is switched to the switching between poll pattern and internuclear interrupt mode, including:
When in preset time by the number of message being more than preset switching times in the message channel, and the message
When the communication pattern of channel is in internuclear interrupt mode, the receiving terminal is switched to poll pattern from internuclear interrupt mode.
With reference to first aspect or second of possible realization method of first aspect, in the 4th kind of possible realization method,
The receiving terminal monitors the message channel of internuclear process communication, including:
The receiving terminal monitors the number in preset time by message in the message channel;
It is corresponding, described when the handoff parameter of message in the message channel meets preset switching condition, the reception
End carries out communication pattern switching, and the communication pattern is switched to the switching between poll pattern and internuclear interrupt mode, including:
When in the message channel in preset time by the number of message less equal than preset switching times, and institute
When stating the communication pattern of message channel and 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 realization method, in the 5th kind of possible realization method,
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 disappearing for the message channel
Weighted value is ceased, and the message weight value of each message channel in the receiving terminal is sorted according to sequence 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 described
Message channel identifies whether to insert the polling list, and the polling list can be only filled with message weight value disappearing in preceding N
Cease the mark of channel;
It is described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal is led to
Believe pattern switching, the communication pattern is switched to the switching between poll pattern and internuclear interrupt mode, including:
When the mark of the message channel cannot insert the polling list, the receiving terminal is switched to from poll pattern
Internuclear interrupt mode.
5th kind of possible realization method with reference to first aspect, in the 6th kind of possible realization method, the receiving terminal
The weighted value of the message channel is obtained, including:
The receiving terminal is polled to a message of the message channel, and the weighted value for the message channel is plus preset
The integer value of size, poll failure is primary, subtracts 1 by the weighted value of the message channel.
With reference to first aspect, first aspect the first to any one in the 6th kind of possible realization method, the 7th
In the possible realization method of kind, when the communication pattern is poll pattern, the method further includes:
First data block of Message Payload is written into the shared drive in the transmitting terminal and disappears for the receiving terminal
After ceasing head, when other data blocks of the Message Payload are written into the shared drive for the transmitting terminal, start poll institute
Message Payload is stated, 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 to any one in the 6th kind of possible realization method, the 8th
In the possible realization method of kind, when the communication pattern is internuclear interrupt mode, the method further includes:
First data block of Message Payload is written into the shared drive in the transmitting terminal and disappears for the receiving terminal
After ceasing head, the interruption of the transmitting terminal triggering is responded, and after the interruption, starts Message Payload described in poll, the Message Payload
The data block of multiple presetting lengths is split as by the transmitting terminal.
Second aspect of the present invention provides a kind of device of internuclear process communication, including:
Monitoring unit, for monitoring the message channel of internuclear process communication, the message channel is transmitting terminal, shared drive
The message channel collectively constituted with the receiving terminal, the receiving terminal are the device for running receiving terminal process, and the transmitting terminal is
Run the device of transmitting terminal process;
Switch unit, monitored for working as the monitoring unit message in the message channel handoff parameter meet it is preset
During switching condition, communication pattern switching is carried out, the communication pattern is switched between poll pattern and internuclear interrupt mode
Switching;
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.
With reference to second aspect, in the first possible implementation, when the communication pattern is by the internuclear interruption mould
It is described to further include first processing units when formula is switched to the poll pattern,
The first processing units, for the mark of the message channel to be written in polling list, and will be described shared
The communication mode identification of message channel described in memory is revised as poll pattern mark.
With reference to second aspect, in second of possible realization method, when the communication pattern is cut by the poll pattern
It is described to further include second processing unit when changing to the internuclear interrupt mode,
The second processing unit, for the mark of the message channel to be deleted from polling list, and will be described common
The communication mode identification for enjoying message channel described in memory is revised as internuclear interrupt mode mark.
With reference to second aspect or second aspect the first possible realization method, in the third possible realization method,
The monitoring unit, for monitoring the number in the message channel in preset time by message;
The switch unit by the number of message is more than preset cut for working as in the message channel in preset time
Number is changed, and when the communication pattern of the message channel is in internuclear interrupt mode, poll mould is switched to from internuclear interrupt mode
Formula.
With reference to second of possible realization method of second aspect or second aspect, in the 4th kind of possible realization method,
The monitoring unit, for monitoring the number in the message channel in preset time by message;
The switch unit is less equal than for working as the number in the message channel by message in preset time
Preset switching times, and when the communication pattern of the message channel is in poll pattern, internuclear interruption is switched to from poll pattern
Pattern.
With reference to second aspect or second aspect the first possible realization method, in the 5th kind of possible realization method,
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, disappearing described in acquisition
Cease the message weight value of channel;
The sequence subelement, for by it is described acquisition subelement obtain receiving terminal in each message channel message
Weighted value sorts according to sequence from big to small;
The determination subelement, for the length value N according to polling list in the receiving terminal and the message weight value
The sequence subelement ranking results, determine the message channel identifies whether to insert the polling list, described
Polling list can be only filled with mark of the message weight value in the message channel of preceding N;
The switch unit, for when the mark of the message channel cannot insert the polling list, from poll mould
Formula is switched to internuclear interrupt mode.
With reference to the 5th kind of possible realization method of second aspect, in the 6th kind of possible realization method,
The acquisition subelement is the weight of the message channel for being polled to the message channel a message
For value plus the integer value of preset size, poll failure is primary, subtracts 1 by the weighted value of the message channel.
With reference to second aspect, second aspect the first to any one in the 6th kind of possible realization method, the 7th
In the possible realization method of kind, when the communication pattern is poll pattern,
The communication unit, for first data of Message Payload to be written into the shared drive in the transmitting terminal
After block and message header, when other data blocks of the Message Payload are written into the shared drive for the transmitting terminal, start
Message Payload described in poll, the Message Payload are split as the data block of multiple presetting lengths by the transmitting terminal.
With reference to second aspect, second aspect the first to any one in the 6th kind of possible realization method, the 8th
In the possible realization method of kind, when the communication pattern is internuclear interrupt mode,
The communication unit, for first data of Message Payload to be written into the shared drive in the transmitting terminal
After block and message header, the interruption of the transmitting terminal triggering is responded, and after the interruption, start Message Payload described in poll, it is described to disappear
Breath load 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, which is characterized in that including:Multiple processors, institute
The device that intercore communication is included in processor is stated, the process in the multiple processing is in communication with each other, appointing in the multiple processing
During what one conduct 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, and the message channel is sends
End, the message channel that collectively constitutes of shared drive and the receiving terminal, the receiving terminal be the device of operation receiving terminal process, institute
It is the device for running transmitting terminal process to state transmitting terminal, when the handoff parameter of message in the message channel meets preset switching condition
When, the receiving terminal carries out communication pattern switching, and the communication pattern is switched between poll pattern and internuclear interrupt mode
Switching, the receiving terminal notify the transmitting terminal switch after communication pattern, and with the communication pattern after switching, carry out internuclear
Process communication.During with internuclear process communication in the prior art, the applicable elements phase of polling communication and internuclear interruption is not accounted for
Than method provided in an embodiment of the present invention can be according to the handoff parameter of the message channel of internuclear process communication, and it is suitable to be switched to
Communication pattern, so as to improve the efficiency of internuclear process communication.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
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.
Specific embodiment
The embodiment of the present invention provides a kind of method of internuclear process communication, can be according to the message channel of internuclear process communication
Handoff parameter, suitable communication pattern is switched to, so as to improve the efficiency of internuclear process communication.The embodiment of the present invention also provides
Corresponding apparatus and system.It is described in detail separately below.
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present 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, the message channel is transmitting terminal, shared drive and
The message channel that the receiving terminal collectively constitutes.
In the embodiment of the present invention, the receiving terminal is the device for running receiving terminal process, and the transmitting terminal is sent for operation
The device of end process.
Internuclear process communication is exactly the communication of process in different processor, and in multinuclear or many-core system, internuclear process is led to
Letter is very frequent, internuclear process in communication process sometimes as receiving terminal process, sometimes as transmitting terminal process, it is internuclear into
During Cheng Tongxin, message header and Message Payload are written in shared drive by transmitting terminal process in the process of running, then, are received
End process reads the message header and Message Payload of transmitting terminal process write-in from shared drive, so as to fulfill internuclear process communication,
Therefore, transmitting terminal, shared drive and receiving terminal have collectively constituted the message channel of internuclear process communication, and 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 is led to
Believe pattern switching, the communication pattern is switched to the switching between poll pattern and internuclear interrupt mode.
Transmitting terminal process and the communication pattern of receiving terminal process have poll pattern and internuclear interrupt mode.
Poll pattern is exactly that receiving terminal process poll from shared drive reads the message header of transmitting terminal process write-in and disappears
Breath load.
Internuclear interrupt mode is exactly after transmitting terminal triggering receiving terminal kernel interrupts, and receiving terminal response is interrupted, and starts to read altogether
Enjoy the message header and Message Payload that transmitting terminal process is written in memory.
When message number is more, the handling capacity of message can be more improved using poll pattern, when message number is less, using core
Between interrupt mode can more improve the utilization rate of processor, so, receiving terminal, can be at two kinds after the message of monitoring message channel
It is switched in communication pattern, to improve the utilization rate of processor.
The handoff parameter of message can be weighed in preset time by the number of message.Such as:Preset time is 10
Second, predetermined times are 3 times, then poll pattern then may be used by 3 message in 10 seconds, if passing through 1 in 10 seconds
Message, then may be used internuclear interrupt mode.If the transmitting terminal process intercore communication pattern original with receiving terminal process is
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, if transmitting terminal process is poll pattern with the original intercore communication pattern of receiving terminal process, receiving terminal is being supervised
It controls that no message passes through in 10 seconds in message channel or only 1 message passes through, is then switched to communication pattern internuclear
Interrupt mode.
103rd, the receiving terminal notify the transmitting terminal switch after communication pattern, and with the communication pattern after switching, into
The internuclear process communication of row.
Receiving terminal is notified the communication pattern after switching to transmitting terminal with the communication mould after switching after switch communication mode
Formula carries out internuclear process communication.
The embodiment of the present invention monitors the message channel of internuclear process communication using receiving terminal, and the message channel is sends
End, the message channel that collectively constitutes of shared drive and the receiving terminal, the receiving terminal be the device of operation receiving terminal process, institute
It is the device for running transmitting terminal process to state transmitting terminal, when the handoff parameter of message in the message channel meets preset switching condition
When, the receiving terminal carries out communication pattern switching, and the communication pattern is switched between poll pattern and internuclear interrupt mode
Switching, the receiving terminal notify the transmitting terminal switch after communication pattern, and with the communication pattern after switching, carry out internuclear
Process communication.During with internuclear process communication in the prior art, the applicable elements phase of polling communication and internuclear interruption is not accounted for
Than method provided in an embodiment of the present invention can be according to the handoff parameter of the message channel of internuclear process communication, and it is suitable to be switched to
Communication pattern, so as to improve the efficiency of internuclear process communication.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 1, internuclear process communication provided in an embodiment of the present invention
In first alternative embodiment of method, when the communication pattern is switched to the poll pattern by the internuclear interrupt mode
When, the method can also include:
The mark of the message channel is written in polling list the receiving terminal, and will disappear described in the shared drive
The communication mode identification of breath channel is revised as poll pattern mark.
In the embodiment of the present invention, record has the mark of the message channel in poll pattern in polling list, when communication mould
After formula is switched to poll pattern, receiving terminal can update polling list, and the mark of the message channel of poll pattern will be in after switching
Polling list is inserted, and the communication mode identification of message channel described in shared drive is revised as poll pattern mark.
Such as:Message channel after switching is identified as channel5, then channel5 is written polling list, such as fruit stone
Between interrupt mode be identified as 0, poll pattern is identified as 1, then by the communication mould of message channel channel5 in shared drive
Formula mark is revised as poll pattern 1.
During with internuclear process communication in the prior art, the applicable elements phase of polling communication and internuclear interruption is not accounted for
Than method provided in an embodiment of the present invention can be according to the handoff parameter of the message channel of internuclear process communication, and it is suitable to be switched to
Communication pattern, so as to improve the efficiency of internuclear process communication.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 1, internuclear process communication provided in an embodiment of the present invention
In second alternative embodiment of method, when the communication pattern is switched to the internuclear interrupt mode by the poll pattern
When, the method can also include:
The receiving terminal deletes the mark of the message channel from polling list, and will be described in the shared drive
The communication mode identification of message channel is revised as 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, when communication mould
After formula is switched to internuclear interrupt mode, receiving terminal can update polling list, and the message that internuclear interrupt mode is in after switching is led to
The mark in road is deleted from polling list, and by the communication mode identification of message channel described in shared drive be revised as it is internuclear in
Disconnected pattern identification.
Such as:Message channel after switching is identified as channel5, then deletes channel5 from polling list, such as
Interrupt mode is identified as 0 between fruit stone, and poll pattern is identified as 1, then by shared drive message channel channel5 it is logical
Letter pattern identification is revised as poll pattern 0.
During with internuclear process communication in the prior art, the applicable elements phase of polling communication and internuclear interruption is not accounted for
Than method provided in an embodiment of the present invention can be according to the handoff parameter of the message channel of internuclear process communication, and it is suitable to be switched to
Communication pattern, so as to improve the efficiency of internuclear process communication.
Optionally, on the basis of corresponding first alternative embodiment of the corresponding embodiments of above-mentioned Fig. 1 or Fig. 1, this hair
In the third alternative embodiment of the method for the internuclear process communication that bright embodiment provides, the receiving terminal monitors internuclear process and leads to
The message channel of letter can include:
The receiving terminal monitors the number in preset time by message in the message channel;
It is corresponding, described when the handoff parameter of message in the message channel meets preset switching condition, the reception
End carries out communication pattern switching, and the communication pattern is switched to the switching between poll pattern and internuclear interrupt mode, can be with
Including:
When in preset time by the number of message being more than preset switching times in the message channel, and the message
When the communication pattern of channel is 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 weighed in preset time by the number of message.Example
Such as:Preset time is 10 seconds, and predetermined times are 3 times, then poll pattern then may be used by 3 message in 10 seconds, such as
In 10 seconds by 1 message, then internuclear interrupt mode may be used in fruit.If transmitting terminal and the original intercore communication of receiving terminal
Pattern be internuclear interrupt mode, receiving terminal in message channel is monitored in 10 seconds by 3 message, then can be by the mould that communicates
Formula is switched to poll pattern.
During with internuclear process communication in the prior art, the applicable elements phase of polling communication and internuclear interruption is not accounted for
Than method provided in an embodiment of the present invention can be according to the handoff parameter of the message channel of internuclear process communication, and it is suitable to be switched to
Communication pattern, so as to improve the efficiency of internuclear process communication.
Optionally, on the basis of corresponding second alternative embodiment of the corresponding embodiments of above-mentioned Fig. 1 or Fig. 1, this hair
In 4th alternative embodiment of the method for the internuclear process communication that bright embodiment provides, the receiving terminal monitors internuclear process and leads to
The message channel of letter can include:
The receiving terminal monitors the number in preset time by message in the message channel;
It is corresponding, described when the handoff parameter of message in the message channel meets preset switching condition, the reception
End carries out communication pattern switching, and the communication pattern is switched to the switching between poll pattern and internuclear interrupt mode, can be with
Including:
When in the message channel in preset time by the number of message less equal than preset switching times, and institute
When stating the communication pattern of message channel and 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 weighed in preset time by the number of message.Example
Such as:Preset time is 10 seconds, and predetermined times are 3 times, then poll pattern then may be used by 3 message in 10 seconds, such as
In 10 seconds by 1 message, then internuclear interrupt mode may be used in fruit.If transmitting terminal and the original intercore communication of receiving terminal
Pattern is poll pattern, and no message passes through in 10 seconds in message channel is monitored or only 1 message passes through, then
Communication pattern is switched to internuclear interrupt mode.
During with internuclear process communication in the prior art, the applicable elements phase of polling communication and internuclear interruption is not accounted for
Than method provided in an embodiment of the present invention can be according to the handoff parameter of the message channel of internuclear process communication, and it is suitable to be switched to
Communication pattern, so as to improve the efficiency of internuclear process communication.
Optionally, on the basis of corresponding first alternative embodiment of the corresponding embodiments of above-mentioned Fig. 1 or Fig. 1, this hair
In 5th alternative embodiment of the method for the internuclear process communication that bright embodiment provides, the receiving terminal monitors internuclear process and leads to
The message channel of letter can include:
When the communication pattern of the message channel is in poll pattern, the receiving terminal obtains disappearing for the message channel
Weighted value is ceased, and the message weight value of each message channel in the receiving terminal is sorted according to sequence 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 described
Message channel identifies whether to insert the polling list, and the polling list can be only filled with message weight value disappearing in preceding N
Cease the mark of channel;
It is described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal is led to
Believe pattern switching, the communication pattern is switched to the switching between poll pattern and internuclear interrupt mode, can include:
When the mark of the message channel cannot insert the polling list, the receiving terminal is switched to from poll pattern
Internuclear interrupt mode.
In the embodiment of the present invention, message weight value is for describing whether the message channel is suitable for using the one of poll pattern
A parameter, if there is 10 message channels are all in poll pattern, the message weight value of this 10 message channels is followed successively by 20,
17th, 15,10,9,8,6,5,2,1, if the length value of polling list is 5, then can be only filled with message weight value in polling list
The mark of preceding message channel, that is, message weight value are the marks of 20,17,15,10,9 these message channels.
In this way, the mark of 8,6,5,2,1 these message channels of message weight value cannot be inserted in polling list, this is several
A message channel cannot keep poll pattern, need to be switched to internuclear interrupt mode.
During with internuclear process communication in the prior art, the applicable elements phase of polling communication and internuclear interruption is not accounted for
Than method provided in an embodiment of the present invention can be according to the handoff parameter of the message channel of internuclear process communication, and it is suitable to be switched to
Communication pattern, so as to improve the efficiency of internuclear process communication.
Optionally, on the basis of above-mentioned 5th alternative embodiment, internuclear process communication provided in an embodiment of the present invention
Method the 6th alternative embodiment in, 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, and the weighted value for the message channel is plus preset
The integer value of size, poll failure is primary, subtracts 1 by the weighted value of the message channel.
In the embodiment of the present invention, message weight value is a variable, can be represented with weight, when poll in message channel
During to a message, weight adds the integer value of preset size, for example, the integer value of the preset size is 20, then uses
Weight+20 represents that 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 phase of polling communication and internuclear interruption is not accounted for
Than method provided in an embodiment of the present invention can be according to the handoff parameter of the message channel of internuclear process communication, and it is suitable to be switched to
Communication pattern, so as to improve the efficiency of internuclear process communication.
Optionally, on the basis of any of the above-described embodiment, the method for internuclear process communication provided in an embodiment of the present invention
The 7th alternative embodiment in, the communication pattern be poll pattern when, the method can also include:
First data block of Message Payload is written into the shared drive in the transmitting terminal and disappears for the receiving terminal
After ceasing head, when other data blocks of the Message Payload are written into the shared drive for the transmitting terminal, start poll institute
Message Payload is stated, 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, such as:Length is 320 bytes, and transmitting terminal can disappear this
Breath load is split as 10 data blocks of the presetting length for 32 bytes, if the length of Message Payload is 340 bytes, then
The Message Payload can be split as 11 data blocks, and preceding 10 data blocks are all 32 bytes of presetting length, the last one data
Block length is 20 bytes, and first data block can be first written in transmitting terminal into shared drive, after message then is written, is received
End is after monitoring transmitting terminal and first data block and message header is written, it is possible to message header and first is read from shared drive
A data block, in this way, when other data blocks are written in transmitting terminal successively, receiving terminal can 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 phase of polling communication and internuclear interruption is not accounted for
Than method provided in an embodiment of the present invention can be according to the handoff parameter of the message channel of internuclear process communication, and it is suitable to be switched to
Communication pattern, so as to improve the efficiency of internuclear process communication.
Optionally, on the basis of any of the above-described embodiment, the method for internuclear process communication provided in an embodiment of the present invention
The 8th alternative embodiment in, the communication pattern be internuclear interrupt mode when, the method can also include:
First data block of Message Payload is written into the shared drive in the transmitting terminal and disappears for the receiving terminal
After ceasing head, the interruption of the transmitting terminal triggering is responded, and after the interruption, starts Message Payload described in poll, the Message Payload
The data block of multiple presetting lengths is split as by the transmitting terminal.
In the embodiment of the present invention, Message Payload has length, such as:Length is 320 bytes, and transmitting terminal can disappear this
Breath load is split as 10 data blocks of the presetting length for 32 bytes, if the length of Message Payload is 340 bytes, then
The Message Payload can be split as 11 data blocks, and preceding 10 data blocks are all 32 bytes of presetting length, the last one data
Block length is 20 bytes, and first data block can be first written in transmitting terminal into shared drive, after message then is written, is sent
End triggering is interrupted, and after receiving terminal response is interrupted, receiving terminal can read message header and first data block from shared drive,
In this way, when other data blocks are written in transmitting terminal successively, receiving terminal can read other data blocks successively, so as to improve message
Transmission speed.
During with internuclear process communication in the prior art, the applicable elements phase of polling communication and internuclear interruption is not accounted for
Than method provided in an embodiment of the present invention can be according to the handoff parameter of the message channel of internuclear process communication, and it is suitable to be switched to
Communication pattern, so as to improve the efficiency of internuclear process communication.
In order to make it easy to understand, below by taking an application scenarios as an example, illustrate process communication between center of the embodiment of the present invention
The process of method:
Referring to Fig.2, when the initial communication pattern of transmitting terminal process and receiving terminal process is internuclear interrupt mode, transmitting terminal
Process communication with receiving terminal includes the following steps:
Message Payload is split as the data block of multiple preset sizes by S1, transmitting terminal during transmitting terminal process is run,
It is calculated if the inadequate presetting length of remaining byte length by 1 data block.
First data block of Message Payload is written into shared drive for S2, transmitting terminal operation transmitting terminal process.
Message header is written into shared drive for S3, transmitting terminal operation transmitting terminal process;
S4, transmitting terminal operation transmitting terminal process read the work of the message channel from the 6th memory space of shared drive
Operation mode then performs step S5 if it is internuclear interruption IPI patterns.
S5, the transmitting terminal process calling system calling of transmitting terminal operation, are absorbed in transmitting terminal kernel, in receiving terminal message transmission
The corresponding channel id of the message channel are written, while update the writing position of MPB in caching MPB(write pos), triggering connects
Receiving end kernel interrupts.
S6, transmitting terminal operation transmitting terminal process continue that remaining 2nd to the 7th data block successively is written to shared drive.
S7, 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 discovery have unread message then to read corresponding Message Payload and are handled.
S10, receiving terminal operation receiving terminal process monitoring to message channel in preset time by message number reach
It is capable to need to be switched to poll pattern to predetermined times, then the mark of the message channel is added in polling list, and will be altogether
The communication mode identification for enjoying the message channel in memory is changed to the mark of poll pattern.
It should be noted that in this application scene, step S6 might not can hold simultaneously before step S7, S8
Capable.
During with internuclear process communication in the prior art, the applicable elements phase of polling communication and internuclear interruption is not accounted for
Than method provided in an embodiment of the present invention can be according to the handoff parameter of the message channel of internuclear process communication, and it is suitable to be switched to
Communication pattern, 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, transmitting terminal is with connecing
The process communication of receiving end includes the following steps:
Message Payload is split as the data block of multiple preset sizes by H1, transmitting terminal during transmitting terminal process is run,
It is calculated if the inadequate presetting length of remaining byte length by 1 data block.
First data block of Message Payload is written into shared drive for H2, transmitting terminal operation transmitting terminal process.
Message header is written into shared drive for H3, transmitting terminal operation transmitting terminal process.
H4, transmitting terminal operation transmitting terminal process read the operating mode of the message channel from shared drive, if it is wheel
Inquiry pattern performs step H5.
H5, transmitting terminal operation transmitting terminal process continue that remaining Message Payload and message header successively is written to shared drive;
The message in the corresponding shared drive of message channel in H6, receiving terminal operation receiving terminal process poll polling list
Head.
H7, receiving terminal operation receiving terminal process find that the message channel has unread message then to read corresponding Message Payload simultaneously
It is handled.
H8, receiving terminal confirm that communication pattern needs to be switched to internuclear interruption IPI patterns, then arrange the message channel from poll
It is deleted in table, 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 phase of polling communication and internuclear interruption is not accounted for
Than method provided in an embodiment of the present invention can be according to the handoff parameter of the message channel of internuclear process communication, and it is suitable to be switched to
Communication pattern, 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, for monitoring the message channel of internuclear process communication, the message channel is transmitting terminal, shares
The message channel that memory and the receiving terminal collectively constitute, the receiving terminal be run receiving terminal process device, the transmission
Hold the device to run transmitting terminal process;
Switch unit 202 is expired for working as the handoff parameter that the monitoring unit 201 monitors message in the message channel
During the preset switching condition of foot, communication pattern switching is carried out, the communication pattern is switched in poll pattern and internuclear interrupt mode
Between switching;
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, and the message channel is hair
The message channel that sending end, shared drive and the receiving terminal collectively constitute, the receiving terminal are the device for running receiving terminal process,
The transmitting terminal is the device for running transmitting terminal process, and switch unit 202 leads to when the monitoring unit 201 monitors the message
When the handoff parameter of message meets preset switching condition in road, communication pattern switching is carried out, the communication pattern, which is switched to, is taking turns
Switching between inquiry pattern and internuclear interrupt mode, after notification unit 203 notifies switch unit 202 described in the transmitting terminal to switch
Communication pattern, communication unit 204 with the switch unit 202 switch after communication pattern, carry out internuclear process communication.With showing
When having process communication between technology center, the applicable elements for not accounting for polling communication with internuclear interruption are compared, and the present invention is implemented
The device that example provides, can be switched to suitable communication pattern according to the handoff parameter of the message channel of internuclear process communication, from
And improve the efficiency of internuclear process communication.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 4, refering to Fig. 5, device provided in an embodiment of the present invention
In another embodiment,
When the communication pattern is switched to the poll pattern by the internuclear interrupt mode, described device further includes
One processing unit 205,
The first processing units 205, for the mark of the message channel to be written in polling list, and will be described common
The communication mode identification for enjoying message channel described in memory is revised as poll pattern mark.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 4, refering to Fig. 6, device provided in an embodiment of the present invention
In another embodiment, when the communication pattern is switched to the internuclear interrupt mode by the poll pattern, described device is also
Including second processing unit 206,
The second processing unit 206, for the mark of the message channel to be deleted from polling list, and by described in
The communication mode identification of message channel described in shared drive is revised as internuclear interrupt mode mark.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 4 or Fig. 5, device provided in an embodiment of the present invention it is another
In one embodiment,
The monitoring unit 201, for monitoring the number in the message channel in preset time by message;
The switch unit 202 by the number of message is more than pre- for working as in the message channel in preset time
Switching times are put, and when the communication pattern of the message channel is in internuclear interrupt mode, wheel is switched to from internuclear interrupt mode
Inquiry pattern.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 4 or Fig. 6, device provided in an embodiment of the present invention it is another
In one embodiment,
The monitoring unit 201, for monitoring the number in the message channel in preset time by message;
The switch unit 202, for work as the number in the message channel by message in preset time be less than or
Equal to preset switching times, and when the communication pattern of the message channel is in poll pattern, it is switched to from poll pattern internuclear
Interrupt mode.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 4, refering to Fig. 7, device provided in an embodiment of the present invention
In another embodiment, the monitoring unit 201, including:Obtain subelement 2011, sequence subelement 2012 and determination subelement
2013,
The acquisition subelement 2011, for when the communication pattern of the message channel is in poll pattern, obtaining institute
State the message weight value of message channel;
The sequence subelement 2012, for each message in the receiving terminal for obtaining subelement 2011 and obtaining to be led to
The message weight value in road sorts according to sequence from big to small;
The determination subelement 2013 is weighed for the length value N according to polling list in the receiving terminal and the message
The ranking results of the sequence subelement 2012 of weight values, determine the message channel identifies whether to insert the poll row
Table, the polling list can be only filled with mark of the message weight value in the message channel of preceding N;
The switch unit 202, for when the mark of the message channel cannot insert the polling list, from poll
Pattern switching is to internuclear interrupt mode.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 7, another implementation of device provided in an embodiment of the present invention
In example,
The acquisition subelement 2011 is the message channel for being polled to the message channel a message
Weighted value adds the integer value of preset size, and poll failure is primary, subtracts 1 by the weighted value of the message channel.
Optionally, on the basis of any of the above-described embodiment, in another embodiment of device provided in an embodiment of the present invention,
When the communication pattern is poll pattern,
The communication unit 204, for being written first of Message Payload into the shared drive in the transmitting terminal
After data block and message header, when other data blocks of the Message Payload are written into the shared drive for the transmitting terminal,
Start Message Payload described in poll, the Message Payload is split as the data block of multiple presetting lengths by the transmitting terminal.
Optionally, on the basis of any of the above-described embodiment, 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 being written first of Message Payload into the shared drive in the transmitting terminal
After data block and message header, the interruption of the transmitting terminal triggering is responded, and after the interruption, starts Message Payload described in poll, institute
State the data block that Message Payload is split as 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,
Include the device 20 of intercore communication in the processor, processor 2A as shown in Figure 8, processor 2B and processor 2C, also
There can be more processors, not completely shown in this figure, the process in the multiple processor is in communication with each other, the multiple place
When managing any one of device as receiving terminal;
The device 20 of the intercore communication, for monitoring the message channel of internuclear process communication, the message channel is hair
The message channel that sending end, shared drive and the receiving terminal collectively constitute, the receiving terminal are the device for running receiving terminal process,
The transmitting terminal is the device for running transmitting terminal process;
When the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication mould
Formula switches, and the communication pattern is switched 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 core
Between 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 is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium can include:ROM, RAM, disk or CD etc..
The method, apparatus and system of the internuclear process communication provided above the embodiment of the present invention have carried out detailed Jie
It continues, specific case used herein is expounded the principle of the present invention and embodiment, and the explanation of above example is only
It is the method and its core concept for being used to help understand the present invention;Meanwhile for those of ordinary skill in the art, according to this hair
Bright thought, there will be changes in specific embodiments and applications, in conclusion the content of the present specification should not manage
It solves as limitation of the present invention.
Claims (15)
- A kind of 1. method of internuclear process communication, which is characterized in that including:Receiving terminal monitors the message channel of internuclear process communication, and the message channel is transmitting terminal, shared drive and the reception The message channel collectively constituted is held, the receiving terminal is the device for running receiving terminal process, and the transmitting terminal is operation transmitting terminal The device of process;When the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication pattern and cuts It changes, the communication pattern is switched to the switching between poll pattern and internuclear interrupt mode;The receiving terminal notify the transmitting terminal switch after communication pattern, and with the communication pattern after switching, carry out it is internuclear into Cheng Tongxin;When the communication pattern is poll pattern, message is written into the shared drive in the transmitting terminal in the receiving terminal After first data block and message header of load, its of the Message Payload is written into the shared drive in the transmitting terminal During his data block, start Message Payload described in poll, the Message Payload is split as multiple presetting lengths by the transmitting terminal Data block;When the communication pattern is internuclear interrupt mode, the receiving terminal is written in the transmitting terminal into the shared drive After first data block and message header of Message Payload, the interruption of the transmitting terminal triggering is responded, and after the interruption, starts poll The Message Payload, the Message Payload are split as the data block of multiple presetting lengths by the transmitting terminal.
- 2. according to the method described in claim 1, it is characterized in that, when the communication pattern is switched by the internuclear interrupt mode During to the poll pattern, the method further includes:The mark of the message channel is written in polling list the receiving terminal, and message described in the shared drive is led to The communication mode identification in road is revised as poll pattern mark.
- 3. according to the method described in claim 1, it is characterized in that, when the communication pattern is switched to institute by the poll pattern When stating internuclear interrupt mode, the method further includes:The receiving terminal deletes the mark of the message channel from polling list, and by message described in the shared drive The communication mode identification of channel is revised as internuclear interrupt mode mark.
- 4. method according to claim 1 or 2, which is characterized in that the receiving terminal monitors the message of internuclear process communication Channel, including:The receiving terminal monitors the number in preset time by message in the message channel;It is corresponding, it is described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal into Row communication pattern switches, and the communication pattern is switched to the switching between poll pattern and internuclear interrupt mode, including:When in preset time by the number of message being more than preset switching times in the message channel, and the message channel Communication pattern when being in internuclear interrupt mode, the receiving terminal is switched to poll pattern from internuclear interrupt mode.
- 5. the method according to claim 1 or 3, which is characterized in that the receiving terminal monitors the message of internuclear process communication Channel, including:The receiving terminal monitors the number in preset time by message in the message channel;It is corresponding, it is described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal into Row communication pattern switches, and the communication pattern is switched to the switching between poll pattern and internuclear interrupt mode, including:When in the message channel in preset time by the number of message less equal than preset switching times, and described disappear When the communication pattern of breath channel is in poll pattern, the receiving terminal is switched to internuclear interrupt mode from poll pattern.
- 6. method according to claim 1 or 2, which is characterized in that the receiving terminal monitors the message of internuclear process communication Channel, including:When the communication pattern of the message channel is in poll pattern, the receiving terminal obtains the message power of the message channel Weight values, and the message weight value of each message channel in the receiving terminal is sorted according to sequence 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, the message is determined Channel identifies whether to insert the polling list, and the polling list can be only filled with message of the message weight value in preceding N and lead to The mark in road;It is described when the handoff parameter of message in the message channel meets preset switching condition, the receiving terminal carries out communication mould Formula switches, and the communication pattern is switched to the switching between poll pattern and internuclear interrupt mode, including:When the mark of the message channel cannot insert the polling list, the receiving terminal is switched to internuclear from poll pattern Interrupt mode.
- 7. according to the method described in claim 6, it is characterized 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 preset size Integer value, poll failure it is primary, the weighted value of the message channel is subtracted 1.
- 8. a kind of device of internuclear process communication, which is characterized in that including:Monitoring unit, for monitoring the message channel of internuclear process communication, the message channel is transmitting terminal, shared drive and connects The message channel that receiving end collectively constitutes, the receiving terminal are the device for running receiving terminal process, and the transmitting terminal is sent for operation The device of end process;Switch unit, the handoff parameter that message in the message channel is monitored for working as the monitoring unit meet preset switching During condition, communication pattern switching is carried out, the communication pattern is switched 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;The communication pattern be poll pattern when, the communication unit, in the transmitting terminal into the shared drive After first data block and the message header of Message Payload is written, the message is written into the shared drive in the transmitting terminal During other data blocks of load, start Message Payload described in poll, the Message Payload is split as multiple pre- by the transmitting terminal Put the data block of length;When the communication pattern is internuclear interrupt mode, the communication unit, for the transmitting terminal to it is described it is shared in After first data block and the message header of depositing write-in Message Payload, the interruption of the transmitting terminal triggering is responded, 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.
- 9. device according to claim 8, which is characterized in that when the communication pattern is switched by the internuclear interrupt mode During to the poll pattern, described device further includes first processing units,The first processing units, for the mark of the message channel to be written in polling list, and by the shared drive Described in message channel communication mode identification be revised as poll pattern mark.
- 10. device according to claim 8, which is characterized in that when the communication pattern is switched to by the poll pattern During the internuclear interrupt mode, described device further includes second processing unit,The second processing unit, for the mark of the message channel to be deleted from polling list, and will be described shared interior The communication mode identification of message channel described in depositing is revised as internuclear interrupt mode mark.
- 11. device according to claim 8 or claim 9, which is characterized in thatThe monitoring unit, for monitoring the number in the message channel in preset time by message;The switch unit by the number of message is more than preset switching time for working as in the message channel in preset time Number, and when the communication pattern of the message channel is in internuclear interrupt mode, poll pattern is switched to from internuclear interrupt mode.
- 12. the device according to claim 8 or 10, which is characterized in thatThe monitoring unit, for monitoring the number in the message channel in preset time by message;The switch unit, for working as in the message channel in preset time through the number of message less equal than preset Switching times, and when the communication pattern of the message channel is in poll pattern, internuclear interrupt mode is switched to from poll pattern.
- 13. device according to claim 8 or claim 9, which is characterized in that the monitoring unit, including:Obtain subelement, row Sequence subelement and determination subelement,The acquisition subelement, for when the communication pattern of the message channel is in poll pattern, obtaining the message and leading to The message weight value in road;The sequence subelement, for by it is described acquisition subelement obtain receiving terminal in each message channel message weight Value sorts according to sequence from big to small;The determination subelement, for the length value N according to polling list in the receiving terminal and the institute of the message weight value The ranking results of sequence subelement are stated, determine the message channel identifies whether to insert the polling list, the poll List can be only filled with mark of the message weight value in the message channel of preceding N;The switch unit, for when the mark of the message channel cannot insert the polling list, being cut from poll pattern Change to internuclear interrupt mode.
- 14. device according to claim 13, which is characterized in thatThe acquisition subelement, for being polled to the message channel a message, the weighted value for the message channel adds The integer value of upper preset size, poll failure is primary, subtracts 1 by the weighted value of the message channel.
- 15. a kind of internuclear process communication system, which is characterized in that including:Multiple processors, comprising internuclear logical in the processor The device of letter, the process in the multiple processor are in communication with each other, and any one of the multiple processor is used as receiving terminal When, the device of the intercore communication is any devices of the claims 8-14.
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 CN104838361A (en) | 2015-08-12 |
CN104838361B true 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 (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352743A (en) * | 2018-12-24 | 2020-06-30 | 北京新媒传信科技有限公司 | Process communication method and device |
Families Citing this family (5)
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 |
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 |
CN115658569B (en) * | 2022-12-08 | 2023-04-14 | 井芯微电子技术(天津)有限公司 | Method, system and equipment for interrupting and sharing storage among AMP (amplifier) multi-core processors |
Citations (4)
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9015376B2 (en) * | 2012-04-29 | 2015-04-21 | Texas Instruments Incorporated | Method for infrastructure messaging |
-
2013
- 2013-12-03 WO PCT/CN2013/088399 patent/WO2015081490A1/en active Application Filing
- 2013-12-03 CN CN201380002578.4A patent/CN104838361B/en active Active
Patent Citations (4)
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 |
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 (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352743A (en) * | 2018-12-24 | 2020-06-30 | 北京新媒传信科技有限公司 | Process communication method and device |
CN111352743B (en) * | 2018-12-24 | 2023-12-01 | 北京新媒传信科技有限公司 | Process communication method and device |
Also Published As
Publication number | Publication date |
---|---|
WO2015081490A1 (en) | 2015-06-11 |
CN104838361A (en) | 2015-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104838361B (en) | A kind of method, apparatus and system of internuclear process communication | |
US11071013B2 (en) | Method and system for group communication, group server, and group member device | |
CN110312282B (en) | Data transmission method and device | |
KR101981334B1 (en) | Mobile communication system and method applying distributed data packet handling | |
JP7143337B2 (en) | Method and apparatus for transmitting data | |
CN104796337A (en) | Method and device for forwarding message | |
JP5645609B2 (en) | COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM | |
CN109120524B (en) | Link aggregation method and related equipment | |
JP6595112B2 (en) | Data transmission method and apparatus, and terminal | |
CN104378308A (en) | Method and device for detecting message sending rate | |
JP6851506B2 (en) | Data distribution methods, equipment and systems | |
US20190306851A1 (en) | Operation mode switching method and user equipment | |
US11910205B2 (en) | Messaging in a wireless communication network | |
US20220224437A1 (en) | Terminal control apparatus and method | |
EP1511273B1 (en) | Packet receiving method for use in a mobile terminal | |
CN102117261B (en) | Communication method between inner processors of chip | |
CN105376778B (en) | A kind of processing method and mobile terminal of network communicating function exception | |
JP2018037016A (en) | Numerical control device | |
CN109510855A (en) | Event distribution system, method and device | |
WO2004077749A1 (en) | Processing wireless messages to reduce host power consumption | |
CN111345111A (en) | Method and device proxy for handling radio communication of data to wireless devices | |
JP2016139218A (en) | Usb signal control method and usb virtual communication system | |
CN116614831A (en) | Network exception handling method and device and readable storage medium | |
CN116208574A (en) | Message processing method, device, electronic equipment and computer readable storage medium | |
CN104184794A (en) | Randomization of packet size |
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 | ||
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. |