CN1988493B - Resetting system and its method for buffer - Google Patents

Resetting system and its method for buffer Download PDF

Info

Publication number
CN1988493B
CN1988493B CN200710000034.0A CN200710000034A CN1988493B CN 1988493 B CN1988493 B CN 1988493B CN 200710000034 A CN200710000034 A CN 200710000034A CN 1988493 B CN1988493 B CN 1988493B
Authority
CN
China
Prior art keywords
buffer
data
processing unit
flag
override
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.)
Expired - Fee Related
Application number
CN200710000034.0A
Other languages
Chinese (zh)
Other versions
CN1988493A (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.)
Arcadyan Technology Corp
Original Assignee
Arcadyan Technology Corp
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 Arcadyan Technology Corp filed Critical Arcadyan Technology Corp
Priority to CN200710000034.0A priority Critical patent/CN1988493B/en
Publication of CN1988493A publication Critical patent/CN1988493A/en
Application granted granted Critical
Publication of CN1988493B publication Critical patent/CN1988493B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a buffer replacement system and its method, in which, the replacement system includes a replacement flag located in the buffer and a control unit, the replacement method through the replacement flag set by control unit, re-reads the buffer data for disposal while exchanging a processing unit, so it can improve the use efficiency of buffer. In addition, the buffer can be set up the override flag so that the data can not be overrode to the buffer for retaining the buffer data and avoiding the loss.

Description

Buffer replacement system and method thereof
Technical field
The invention relates to a kind of buffer, it refers to buffer replacement system and method thereof especially.
Background technology
Press, series flow system is used for Internet more now, let the common people can be on the networking broadcast listening, music or watch film.General basic series flow system, it includes a plurality of processing units and a plurality of buffer, all is provided with a buffer between wherein adjacent this processing unit and is used for the data of keeping in.See also Fig. 1, it is the calcspar of the series flow system commonly used.This series flow system is used for Internet; As shown in the figure, series flow system includes one first processing unit 20 ', one second processing unit 22 ', one the 3rd processing unit 24 ', one and manages unit 26 ', one first buffer 30 ' and one second buffer 32 ' everywhere.First processing unit 20 ' is used for from the Internet downloaded data and is stored to first buffer 30 '.
Second processing unit 22 ' and the 3rd processing unit 24 ' are used for handling respectively according to the data type of first buffer 30 ' data of this first buffer 30 ', for example MP 3, WMA or WMV.Second processing unit 22 ' from first buffer 30 ' with data read the back and handle and will handle after data storage in second buffer 32 '; When if second processing unit 22 ' can't be handled the data of first buffer 30 '; Will reset first buffer 30 ' and read the data of first buffer 30 ' again and handled by the 3rd processing unit 24 ' of system, the data storage after will handling afterwards is in second buffer 32 '.Then, managing unit 26 ' everywhere by reads the data after the processing from second buffer 32 ' and plays.Wherein buffer 30 ', 32 ' for first in first out (First In First Out, FIFO) and be circular buffer (Ring Buffer).
See also Fig. 2 A, it is the view that the circular buffer commonly used stores data.As shown in the figure, buffer 1 ' has an index 5 ' and an end index 7 ' at the beginning, and buffer 1 ' utilizes and begins index 5 ' and finish the initial address and end address that index 7 ' is indicated buffer 1 ' stored data 10 '.When data 10 ' is read, beginning index 5 ' the last address that the sensing data is read that promptly moves forward.
Moreover, seeing also Fig. 2 B, it is that the data that overrides is to the view of commonly using circular buffer.As shown in the figure; After the data 10 ' of buffer 1 ' is read; Beginning index 5 ' can move forward to the address after data 10 ' is read at last, that is to say after if data 10 ' has been read, and beginning index 5 ' can be pointed to identical address with end index 7 '.Afterwards, if when having a data 12 ' to be stored to buffer 1 ', this data 12 ' can begin to write from the address that finishes index 7 ' indication, and finishes index 7 ' and can move forward till completion writes data 12 ' to buffer 1 '.If write the last address of data 12 ' to buffer 1 ', and that data 12 ' is not write yet fully is fashionable, then can continue from the initial address of buffer 1 ' and write data 12 ', and promptly can cover the data 10 ' that has been read this moment.So this kind buffer 1 ' is called circular buffer.
Please consult Fig. 1 again; If can't handle the data of first buffer 30 ' when second processing unit 22 '; And exchange is when being tried to read and handle the data of first buffer 30 ' by the 3rd processing unit 24 '; Because second processing unit 22 ' has read the data of a part, so beginning flag 5 ' is pointed to the address after second processing unit 22 ' reads data forward, so the time the 3rd processing unit 24 ' can't read original data of first buffer 30 ' again; Therefore we need reset system, make first processing unit 20 ' be exchanged for the 3rd processing unit 24 ' processing data.
Therefore; How a kind of novel buffer replacement system and method thereof to be proposed to the problems referred to above; After not only can improving switch processing unit; Processing unit after the exchange can't read buffers the shortcoming of original data, also can avoid original data of buffer to be written, can solve the above problems.
Summary of the invention
Main purpose of the present invention is to make when switch processing unit by a replacement flag and a function of reset are set at buffer, and the flag that can allow to reset is with the replacement buffer, lets processing unit original data of read buffers again after the exchange.
Another object of the present invention; Be to override flag by being provided with one at buffer; When whether not definite processing unit subsequently can handle the data of buffer, can set and override flag, follow-up data can't be override to buffer; Avoiding covering the original data in the buffer, and avoid the original data loss in the buffer.
For reaching above-mentioned purpose; Buffer replacement system of the present invention includes a function of reset, a replacement flag, overrides a flag and a control unit, the replacement flag with override flag and be located at buffer, control unit is used to call out function of reset and setting overrides flag; Call out the function of reset buffer of can resetting by controller; To let after the processing unit exchange data of read buffers again, override the data that flag can keep buffer and set, to avoid data loss.
Remapping method of the present invention is to call out function of reset and confirm the replacement flag according to the state of the data of processing unit processes buffer.When the data of one first processing unit read buffers and can't handle the time; Control unit then confirm to reset flag and call out function of reset; To exchange one second processing unit and first processing unit; Let second processing unit replace first processing unit, and the data of read buffers and handling again.When the data write buffer, the replacement flag will be set at vacation (False), in addition; When whether uncertain processing unit can handle the data of buffer, can override flag by the control unit setting was a non-parameter value that overrides, and follow-up data can't be override to buffer; Promptly be can't data be override in old information; When confirming that processing unit can be handled the data of buffer, just to override flag be one to override parameter value in setting, and follow-up data can be override to buffer.
The invention has the beneficial effects as follows: can one a replacement flag and a function of reset be set at buffer, make when switch processing unit, the flag that can allow to reset is with the replacement buffer, lets processing unit original data of read buffers again after the exchange.Can also be provided with one at buffer and override flag; When whether not definite processing unit subsequently can handle the data of buffer, can set and override flag, follow-up data can't be override to buffer; Avoiding covering the original data in the buffer, and avoid the original data loss in the buffer.
Description of drawings
Fig. 1 is a calcspar of commonly using series flow system;
Fig. 2 A commonly uses the view that circular buffer stores data;
Fig. 2 B is that the data that overrides is to the view of commonly using circular buffer;
Fig. 3 is the calcspar of a preferred embodiment of the present invention;
Fig. 4 is set at the non-view that overrides parameter for slow type buffer;
Fig. 5 is the calcspar of another preferred embodiment of the present invention;
Fig. 6 is the flow chart of a preferred embodiment of the present invention;
Fig. 7 is the flow chart of another preferred embodiment of the present invention.
The figure number explanation:
1 ' buffer, 5 ' beginning index
7 ' finishes index 10 ' data
12 ' data, 20 ' first processing unit
22 ' second processing unit 24 ' the 3rd processing unit
26 ' manages unit 30 ' first buffer everywhere
32 ' second buffer, 2 beginning indexs
4 finish index 6 old informations
8 new datas, 10 buffers
13 replacement flags 16 override flag
20 first processing units, 22 second processing units
24 the 3rd processing units, 30 control units
40 download units, 50 first buffers
53 replacement flags 56 override flag
60 decoding modules, 62 first decoding units
64 second decoding units 66 the 3rd decoding unit
70 second buffers, 80 broadcast units
Embodiment
For making the juror further understanding and understanding arranged to architectural feature of the present invention and the effect reached, sincerely help with preferred embodiment and cooperate detailed explanation, explain as the back:
See also Fig. 3, it is the calcspar of a preferred embodiment of the present invention.As shown in the figure, buffer replacement system of the present invention includes a control unit 30, a replacement flag 13 and overrides flag 16, replacement flag 13 with override flag 16 and all be located at a buffer 10.Control unit 30 is used to confirm that state and the affirmation of replacement flag (resettable flag) 13 and change override flag (overwriteable flag) 16, reads and writes with the data of controller buffer 10.Control unit 30 confirms that replacement flag 13 is set; Control unit 30 allows to call out function of reset with replacement buffer 10 afterwards; The beginning index of buffer 10 just reset returns back to the initial address of buffer 10; The 3rd processing unit 24 like this can be in the data of second processing unit, 22 read buffers 10 and can't handle the time, again read buffers 10 original data and handling.If replacement flag 13 is configured to a non-parameter reconfiguration; Control unit 30 buffer 10 of just can't resetting afterwards; At first replacement flag 13 is set at parameter reconfiguration, when any data override the data in buffer 10, replacement flag 13 will be automatically made non-replacement flag.
Control unit 30 is set and override flag 16 is one non-when overriding parameter value, is in the logic " vacation " (False), be original data that can't data be covered buffer 10; Please consult shown in Figure 4ly in the lump, be set at one non-ly when overriding parameter value when overriding flag 16, data is with write buffer 10; When finishing the last address of index arrival buffer 10, can't data be override to buffer 10, that is to say that buffer 10 has stored old information 6; Be set at one non-when overriding parameter value when overriding flag 16; New data can up to the capacity of writing full buffer 10, promptly be to finish the tail end that flag 4 moves to buffer 10 by write buffer 10 after the beginning flag 2; So can avoid first processing unit, the 20 follow-up data that write in buffer 10; And cover original data in the buffer 10, and make the data of second processing unit 22 or the 3rd processing unit 24 read buffers 10, still can keep buffer 10 original data.Control unit 30 is set and override flag 16 is one when overriding parameter value, is in the logic " very " (Ture), buffer 10 data that can be written.
Below be to lift an embodiment, and the present invention will be described.After first processing unit 20 stored one first data to buffer 10, first data of second processing unit, 22 meeting read buffers 10 was to handle.Second processing unit 22 is to send a response message to control unit 30 when first data of processing, and notice control unit 30 can be handled first data.When if second processing unit 22 can be handled first data, control unit 30 promptly overrides flag for overriding parameter value according to the setting response message of representing the data of can handling, lets first processing unit 20 can override data to buffer 10.When if second processing unit 22 can't be handled first data; What control unit 30 will be confirmed buffer 10 overrides flag 16; If the replacement flag is set in the logic " very "; The buffer 10 of promptly can resetting, and the response message that promptly can't handle data according to expression sends an exchange message to the three processing units 24, that is to say when second processing unit 22 can't be handled first data; Control unit 30 can exchange second processing unit 22 and the 3rd processing unit 24, lets the 3rd processing unit 24 replace second processing unit 22.
In addition; When send driving message, also can reset buffer 10 and set replacement flag 13 and be the replacement parameter value of control unit 30; With replacement buffer 10; Make the beginning index reply the original position of first data of directed at buffer 10, let the 3rd processing unit 24 begin to read first data, so can solve the 3rd processing unit 24 when second processing unit 22 can't be handled the data of buffer 10 from the original position that buffer 10 stores first data; Again the problem of read buffers 10 original data is to improve the effective utilization of buffer 10.Above-mentioned, the 3rd processing unit 24 also can send response message to control unit 30 when handling first data, control unit 30 is set override flag 13 for overriding parameter value, lets first processing unit 20 data of overriding to the buffer 10 that can continue.Above-mentioned, be set to and override parameter value and first processing unit 20 and write enough data to buffer 10 if override flag to override some data, the flag of resetting afterwards 13 is non-parameter reconfiguration value.
In addition; If first processing unit 20 can't be handled the data of buffer 10 afterwards; When the 3rd processing unit 24 also can't be handled the data of buffer 10, it can send response message to the control unit 30 that expression can't be handled data, afterwards when if any other processing unit is arranged; This moment, control unit 30 promptly can send exchange message to other processing units; To exchange the 3rd processing unit 24, let other processing units replace the 3rd processing unit 24, while control unit 30 is understood replacement buffers 10 and set replacement flag 13 is parameter reconfiguration.
See also Fig. 5, it is the calcspar of another preferred embodiment of the present invention.As shown in the figure, buffer replacement system of the present invention can be applicable to the series flow system at networking.This series flow system includes a download unit 40, first buffer 50, decoding module 60, one second buffer 70 and a broadcast unit 80.Download unit 40 is downloaded an isdn data and is write first buffer 50 by Internet.Isdn data can be data formats or any other form of WMA, WMV or MP3.Because one first decoding unit 62 of uncertain decoding module 60, one second decoding unit 64 and one the 3rd decoding unit 66 interior isdn data of decodable code first buffer 50 whether originally.The flag 56 that overrides of first buffer 50 is initially set the non-parameter that overrides, so can guarantee the switching encoding/decoding unit.
Decoding module 60, the isdn data of first buffer 50 that is used to decode, first decoding unit 62, second decoding unit 64 and the 3rd decoding unit 66 of decoding module 60 are respectively applied for to the data formats of WMA, WMV and MP3 and decode.When first buffer 50 stores isdn data; First decoding unit 62 is with the isdn data that reads first buffer 50 earlier; When if the isdn data of first buffer 50 is the WMA form; First decoding unit 62 can be decoded, and sends expression manageable response message to control unit 30, to let control unit 30 learn first decoding unit, 62 decodable code isdn datas; What this moment, control unit 30 can be set first buffer overrides flag 56 for overriding parameter value, lets download unit 40 sustainable storage isdn data to the first buffers 50.
If; When the isdn data that download unit 40 is downloaded is MP3 format; First decoding unit 62 can't be decoded; This moment first, decoding unit 62 can send response message to the control unit 30 that expression can't be handled, and let control unit 30 learn can't the decode isdn data of first buffer 50 of first decoding unit 62.Control unit 30 can send exchange message to the second decoding unit 64 immediately; And exchange first decoding unit 62 and second decoding unit 64; Make second decoding unit 64 replace first decoding unit 62; First buffer 50 of can resetting simultaneously lets second decoding unit 64 can read first buffer, 50 original isdn datas again, promptly reads 62 isdn datas that read and can't decode of first decoding unit.
Because second decoding unit 64 is to decode to the isdn data of WMV form, so second decoding unit 64 also can't be decoded to the isdn data of MP3 format.At this moment; Second decoding unit 64 also can send response message to the control unit 30 that expression can't be handled; Drive message to the three decoding units 66 to let control unit 30 send; And exchange second decoding unit 64 and the 3rd decoding unit 66, let the 3rd decoding unit 66 replace second decoding unit 64 and first buffer 50 of resetting again.Let the 3rd decoding unit 66 can read the isdn data of first buffer 50 again.
Because the form of the isdn data that first buffer 50 is stored meets the 3rd decoding unit 66 decodable data formats; So the 3rd decoding unit 66 will send expression accessible response message to control unit 30; Control unit 30 will override flag 56 for overriding parameter value according to setting response message; Make download unit 40 can allow to store isdn data to the first buffer 50; And the cover original isdn data lets the 3rd decoding unit 66 is sustainable to be read the isdn data of first buffer 50 and decode.
If; The form of the isdn data that download unit 40 is downloaded not is during for WMA, WMV and MP3; The stored isdn data of first the buffer 50 because decoding unit 62,64,66 of decoding module 60 all can't be decoded; Add that control unit 30 also can't detect other decoding unit in this networking series flow system and exist, just represent this networking series flow system wrong, and the stored isdn data of first buffer 50 of can't decoding.
Above-mentioned, behind first decoding unit 62, second decoding unit 64 or the 3rd decoding unit 66 decoding isdn datas, what produced separates code data and can be stored to second buffer 70.Afterwards, broadcast unit 80 can read and separate code data to play in second buffer 70.In this embodiment, because the form of separating code data that decoding module 60 is produced is to meet the form that broadcast unit 80 can be play data, so second buffer 70 need not be provided with the replacement flag and override flag.In this embodiment, override flag and be initially set " very ", and second buffer 70 is equivalent to traditional circular buffer, however second buffer 70 also can be applicable to different data formats.
See also Fig. 6, it is the flow chart of a preferred embodiment of the present invention.For the ease of explanation, this embodiment cooperates Fig. 3 to describe.When whether the processing unit 22,24 of uncertain system can handle the stored data of buffer 10; The flag 16 that overrides that can set buffer 10 earlier is the non-parameter value that overrides; First processing unit 20 can't be stored data to buffer 10; In the time of all can't handling the data of buffer 10 with the processing unit 22,24 of avoiding system, first processing unit 20 still continues and stores data to buffer 10 and cover buffer 10 original data and lose.Shown in step S10, when first processing unit 20 write data to buffer 10, the flag 16 that overrides that control unit 30 promptly can be set buffer 10 was the non-parameter value that overrides, and lets buffer 10 can't override data.
Second processing unit 22 promptly can read buffers 10 data and handle, and according to corresponding response message to the control unit 30 that sends of state of the data of processing.Control unit 30 shown in step S12, receive response message after, i.e. further execution in step S14; Confirm according to response message whether second processing unit 22 can handle the data of buffer 10; If second processing unit 22 can be handled the data of buffer, control unit 30 promptly can execution in step S16, sets and overrides flag 16 for overriding parameter value; To let buffer 10 can override data, make second processing unit, 22 sustainable read buffers 10 data and handle.
If; The response message that second processing unit 22 is sent is represented the data of can't handling; Control unit 30 will be learnt according to response message when execution in step S14, and execution in step S18, and whether detecting has other processing units; With Fig. 3 is example, and control unit 30 will detect the 3rd processing unit 24.At this moment; Control unit 30 execution in step S19, replacement buffer 10, and send exchange message to the three processing units 24; To exchange the 3rd processing unit 24 and second processing unit 22, let the 3rd processing unit 24 read buffers, 10 original data and handle.Subsequently, i.e. repeated execution of steps S12 and step S14 are if the 3rd processing unit 24 can be handled the data of buffer 10; Promptly carry out step S16, and continue and carry out step S17, in the time of also can't handling as if the 3rd processing unit 24; Then carry out step S18 again; This moment since control unit 30 detected less than there being other processing units to exist, so shown in step S20, represent this system mistake and can't handle the data of buffer 10.
Control unit 30 is in above-mentioned steps S12, if when not receiving response message, control unit 30 can carry out step S22; Whether detecting buffer 10 is filled, and is set at because override flag " vacation ", so buffer will fill up; And buffer 10 stores data not have and is processed the unit about data and reads; Buffer 10 is not if when being filled data, and then additional information is written into (like step S10), and confirms again and transmit response message (like step S12).If when buffer 10 had been filled data, 30 execution in step S24 of control unit continued the message that awaits a response.Afterwards, control unit 30 after receiving response message, execution in step S26 then, this step is same as above-mentioned steps S14.If response message representes to handle the data of buffer 10, then execution in step S16 if response message representes to handle the data of buffer 10, then carries out the step S28 that is same as step S18.If when there are not other processing units in control unit 30 detectings, be shown in step S20, the expression system mistake is then carried out step S29 if there is processing unit to exist, and this step is same as step S19.Repeated execution of steps S24 subsequently.
See also Fig. 7, it is the flow chart of another preferred embodiment of the present invention.The flag that overrides that this embodiment sets buffer for control unit is the handling process that overrides behind the parameter value.This embodiment cooperates Fig. 3 to describe equally.Because the flag 16 that overrides of buffer 10 is set at and overrides parameter value, so shown in step S30, first processing unit 20 can write data to buffer 10.Afterwards, the data of the first read buffers 10 of second processing unit, 22 meetings is also handled, and send response message according to the state of the data of processing.Shown in step S32; Meeting execution in step S34 after control unit 30 receives response message; When if response message representes that second processing unit 22 can be handled the data of buffer 10; Promptly shown in step S36, the expression system is normal, second processing unit 22 will continue read buffers 10 data and handle.
If when response message represented that second processing unit 22 can't be handled data, 30 of control units carried out step S38; Whether detecting has other processing units to exist; In this embodiment is that detecting still has the 3rd processing unit 24 to exist, so carry out step S39, replacement buffer 10 also exchanges the 3rd processing unit 24 and second processing unit 22; Let the 3rd processing unit 24 replace second processing unit 22, repeated execution of steps S32 then after exchange is accomplished.Afterwards, in the time of also can't handling the data of buffer 10 as if the 3rd processing unit 24, because having had other processing units to exist, system can not exchange, so shown in step S40, represent this system mistake.
In above-mentioned steps S32, when continuing not receive response message as if control unit 30, control unit 30 can be shown in step S42; Whether detecting buffer 10 is filled; Buffer 10 is not if when being filled data, and then additional information is written into (like step S10), and confirms again and transmit response message (like step S12); If when buffer 10 has been filled data, assert directly that then this system is normal.It is because playing first meeting sets and override flag 16 and represent promptly that for overriding parameter value a processing unit wherein of this system can handle the data of buffer 10, so assert that directly this system is normal.The present invention sets and overrides flag is to override parameter value not necessarily to need the flow process through the 5th figure, in the time of can handling the data of buffer as if the processing unit of confirming system, also can directly set and override flag for overriding parameter value.
In sum; Buffer replacement system of the present invention and method thereof are by the replacement flag being set in buffer; Let two processing units in when exchange, the replacement buffer, so the processing unit after the exchange can read again that last processor reads and the data that can't handle.Again, replacement flag allows automatically setting control unit to learn whether system needs to reset.In addition; The present invention more is provided with and overrides flag in buffer, if when whether the processor of uncertain system can handle the data of buffer, is covered by the follow-up data that writes and loses for fear of the data of buffer; Can override flag by setting is the non-parameter value that overrides; Let buffer can't override data and can handle the data of buffer, override flag and will be set at and override parameter, make buffer the same as circular buffer until defining processing unit; Can guarantee that so the data of buffer can not lose, and improve the effective utilization of buffer.If the initial condition that overrides flag is set at when overriding parameter, buffer just is equivalent to circular buffer, when reading into data before the buffer, allows to reset and switching treatmenting unit.
The above; Be merely a preferred embodiment of the present invention; Be not to be used for limiting the scope that the present invention implements, the equalization of doing according to the described shape of claim scope of the present invention, structure, characteristic and spirit such as changes and modifies, and all should be included in the claim scope of the present invention.

Claims (8)

1. buffer replacement system is characterized in that it comprises:
One replacement flag is located at this buffer, and when this replacement flag was set to a parameter reconfiguration value, this buffer of resetting, this buffer were circular buffer; And
One control unit; Call out a function of reset, when one first processing unit reads the data of this buffer and can't handle the data of this buffer the time, this control unit is called out this function of reset; With this buffer of resetting; Make the beginning index reply the original position of first data of pointing to this buffer, and exchange this first processing unit of one second processing unit replacement, make this second processing unit read and handle the data of this buffer;
One overrides flag, and it is arranged at this buffer, is set at one non-ly when overriding parameter value by this control unit, then can't override data to this buffer, and this overrides flag Be Controlled unit and is set at one when overriding parameter value, then can override data to this buffer;
This first processing unit and this second processing unit are handled the data of this buffer in reading after; But can according to whether deal with data and a corresponding response message to this control unit that sends; This control unit is set this according to this response message and is override flag; If this control unit is set this and override flag for after should non-ly overriding parameter value, when this first processing unit or this second processing unit can be handled the data of this buffer, this override this control unit setting flag and overrides parameter value for this; Follow-up data can be override to this buffer; If when this first processing unit or this second processing unit did not send this response message to this control unit, this control unit can continue to wait for this response message, overrides flag to set this.
2. the system of claim 1 is characterized in that, this control unit is after this second processing unit and this first processing unit exchange completion, and this replacement flag is automatically made a non-parameter reconfiguration value, this buffer of need not resetting.
3. the system of claim 1 is characterized in that, this control unit is before this second processing unit of exchange, and whether this second processing unit of detecting exists earlier.
4. the system of claim 1 is characterized in that, this buffer can be a circular buffer and is the buffer of a first in first out.
5. the system of claim 1 is characterized in that, this buffer of resetting lets the index at the beginning of this buffer reply the initial address of this buffer.
6. the remapping method of a buffer, this buffer is provided with a replacement flag and and overrides flag, and this overrides flag; Be set at one non-ly when overriding parameter value, then can't override data to this buffer, this overrides flag and is set to one when overriding parameter value; Then can override data to this buffer, when this replacement flag is set to a parameter reconfiguration value, this buffer of resetting; This buffer is a circular buffer, it is characterized in that, this method comprises:
Read according to processing unit and handle the state of the data of this buffer, setting should the replacement flag;
Wherein, One first processing unit reads the data of this buffer and can't handle the data of this buffer the time; Setting should the replacement flag be this parameter reconfiguration value; With this buffer of resetting, make the beginning index reply point to the original position of first data of this buffer, and detect one second processing unit and whether exist with after exchanging this second processing unit and this first processing unit; This replacement flag is automatically made a non-parameter reconfiguration value, and this second processing unit replaces the data that this first processing unit read and handled this buffer;
Wherein, this first processing unit and this second processing unit are handled the data of this buffer in reading after, can be according to whether handling data and the corresponding response message of sending; So that this overrides flag according to this setting response message; Override after flag overrides parameter value for this is non-when setting this, when this first processing unit or this second processing unit can be handled the data of this buffer, then set this and override flag and override parameter value for this; Follow-up data can be override to this buffer; When if this first processing unit or this second processing unit do not send this response message, then continue to wait for this response message, override flag to set this.
7. method as claimed in claim 6 is characterized in that, this buffer of resetting lets the index at the beginning of this buffer return back to the initial address of this buffer.
8. method as claimed in claim 6 is characterized in that, can apply to this buffer of a series flow system.
CN200710000034.0A 2007-01-05 2007-01-05 Resetting system and its method for buffer Expired - Fee Related CN1988493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710000034.0A CN1988493B (en) 2007-01-05 2007-01-05 Resetting system and its method for buffer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710000034.0A CN1988493B (en) 2007-01-05 2007-01-05 Resetting system and its method for buffer

Publications (2)

Publication Number Publication Date
CN1988493A CN1988493A (en) 2007-06-27
CN1988493B true CN1988493B (en) 2012-01-11

Family

ID=38185136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710000034.0A Expired - Fee Related CN1988493B (en) 2007-01-05 2007-01-05 Resetting system and its method for buffer

Country Status (1)

Country Link
CN (1) CN1988493B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625107A (en) * 2003-12-02 2005-06-08 明基电通股份有限公司 Method for transmitting data of video-audio playing system
US7028149B2 (en) * 2002-03-29 2006-04-11 Intel Corporation System and method for resetting a platform configuration register
CN1874295A (en) * 2005-05-30 2006-12-06 林正泰 Method and device for down loading wireless digital content in series flow

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7028149B2 (en) * 2002-03-29 2006-04-11 Intel Corporation System and method for resetting a platform configuration register
CN1625107A (en) * 2003-12-02 2005-06-08 明基电通股份有限公司 Method for transmitting data of video-audio playing system
CN1874295A (en) * 2005-05-30 2006-12-06 林正泰 Method and device for down loading wireless digital content in series flow

Also Published As

Publication number Publication date
CN1988493A (en) 2007-06-27

Similar Documents

Publication Publication Date Title
US7739475B2 (en) System and method for updating dirty data of designated raw device
CN1841332B (en) Real-time control apparatus having a multi-thread processor
CN1265267C (en) Transmission channel and its control method
US7480754B2 (en) Assignment of queue execution modes using tag values
JP2019079052A (en) Voice data processing method, device, facility, and program
CN101494086B (en) Memory device, controller and switching method for flash memory
JP2006195569A5 (en)
CN108647046A (en) For controlling the device and method for executing flow
CN101252640B (en) Method for writing sequence number to set top box
US20180250596A1 (en) Interworking between scenario-based content of main device and external device
EP2214103B1 (en) I/O controller and descriptor transfer method
CN111291022B (en) Data storage system based on block chain
CN101661431B (en) Block management method for flash memory, flash storage system and controller
US11054977B2 (en) Devices, methods, and computer program for displaying user interfaces
CN100508604C (en) Arithmetic coding circuit and arithmetic coding control method
CN103686195A (en) Video information processing method and video information processing equipment
CN102098510B (en) Methods and devices for decoding and coding audio/video data
CN1988493B (en) Resetting system and its method for buffer
CN104991736A (en) Method and device for typing in data and storage equipment
CN103974013A (en) Method for playing back video recording and video recording device
CN100405340C (en) Flow data processing device
CN110990169B (en) Structure and method for inter-process byte stream communication by using shared memory
CN104572513B (en) A kind of TF card and its implementation without driving with Bluetooth function
WO2023045250A1 (en) Memory pool resource sharing method and apparatus, and device and readable medium
TW201227295A (en) Flash memory device and data writing method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120111

Termination date: 20170105

CF01 Termination of patent right due to non-payment of annual fee