Claims
- 1. A queue control apparatus for exchanging data from a data generating device for generating data, a data processing device which executes a predetermined process on the generated data, the queue control apparatus comprising:
- data storage means for sequentially storing data generated by the data generating device and for outputting the stored data sequentially, based on an input sequence, to the data processing device;
- first detection means for detecting that a remaining storage capacity of said data storage means, detected based on signals from the data generating device and the data processing device, is less than a predetermined first threshold;
- saved data memory means for saving data; and
- data saving means for saving, in said saved data memory means, data outputted from said data generating device to said data storage means, after said first detection means detects that the remaining storage capacity of said data storage means is less than the predetermined threshold.
- 2. The queue control apparatus according to claim 1, further comprising:
- a flag means for indicating that the data is being stored in said saved data memory means; and wherein:
- said data saving means sets said flag means, upon storing data in said saved data memory means, and continues to save the data into said saved data memory means data while said flag is set.
- 3. The queue control apparatus according to claims 2, further comprising:
- a second detection means for detecting the remaining storage capacity of said data storage means is greater than a predetermined second threshold; and
- a data restoration means for transferring data saved in said saved data memory means to said data storage means when said second detection means detects that the remaining storage capacity of said data storage means is greater than said second threshold;
- wherein said data restoration means resets said flag means when said saved data memory means no longer stores any data.
- 4. The queue control apparatus according to claim 1, wherein:
- said data storage means is a FIFO buffer.
- 5. The queue control apparatus according to claim 1, further comprising:
- second detection means for detecting that the remaining storage capacity of said data storage means is greater than a predetermined second threshold; and
- data restoration means for transferring to said data storage means data saved in said saved data memory means when said second detection means detects that the remaining storage capacity of said data storage means is greater than the second threshold.
- 6. The queue control apparatus according to claim 1, further comprising:
- second detection means for detecting and outputting a detection signal when the remaining storage capacity of said saved data memory means is less than a predetermined second threshold.
- 7. The queue control apparatus according to claim 6, further comprising:
- control means for expanding a storage capacity of said saved data memory means, upon an input of the detection signal from said second detection means.
- 8. A queue control apparatus for exchanging data from a packet generating device for generating a packet to a packet processing device which executes a predetermined process on the packet, the queue control apparatus comprising:
- packet storage means for sequentially storing a packet generated by the packet generating device and for outputting the stored packet sequentially to the packet processing device according to an input sequence; and
- packet number counter means for counting the number of packets stored in said packet storage means wherein the count is incremented by said packet generating device when the packet generating device generates a packet and the count is decremented by said packet processing device when the packet processing device receives a packet.
- 9. The queue control apparatus according to claim 8, wherein:
- data of a packet stored in said packet storage means has tail end data indicating whether the data is the last data of the packet.
- 10. The queue control apparatus according to claim 9, further comprising:
- detection means for detecting that said packet storage means has outputted the last data of a packet; and wherein:
- said packet number counter means decrements said counter value upon each detection, by said detection means, of an output of the last data of a packet from said packet storage means.
- 11. The queue control apparatus according to claim 8, wherein:
- said data storage means is a FIFO buffer.
- 12. The queue control apparatus according to claim 8, further comprising:
- first detection means for detecting that a remaining storage capacity of said packet storage means is less than a predetermined first threshold;
- saved packet memory means for saving packets outputted from said packet generating device; and
- packet saving means for saving in said saved packet memory means packets outputted from said packet generating device after said detection by said first detection means.
- 13. The queue control apparatus according to claim 12, further comprising:
- flag means for indicating that packets are being saved in said saved packet memory means; and wherein:
- said packet saving means sets said flag means upon starting to store packets in said saved packet memory means, and continues to save the packets in said saved packet memory means while said flag means is set.
- 14. The queue control apparatus according to claim 13, further comprising:
- second detection means for detecting that the number of packets counted by said packet number counter means is less than a predetermined threshold; and
- data restoration means for transferring packets saved packet memory means to said packet storage means when said second detection means detects that the number of packets stored in said packet storage means is less than said second threshold;
- wherein said data restoration means resets said flag means when said saved packet memory means no longer stores any packets.
- 15. The queue control apparatus according to claim 12, further comprising:
- second detection means for detecting that the number of packets detected by said packet number counter means is less than a predetermined second threshold; and
- data restoration means for transferring packets saved in said saved packet memory means to said packet storage means when said second detection means detects that the number of packets stored in said packet storage means is less than the second threshold.
- 16. The queue control apparatus according to claim 12, further comprising:
- second detection means for detecting and outputting a detection signal when the remaining storage capacity of said saved pocket memory means is less than a predetermined second threshold.
- 17. The queue control apparatus according to claim 16, further comprising:
- a control means for expanding a storage capacity of said saved data memory means, when said second detection means outputs a detection signal.
- 18. A queue control apparatus for exchanging data from a data generating device for generating data to a data processing device for executing a predetermined process on the data, the queue control apparatus comprising:
- packet storage means for storing a packet including data on a packet size;
- counter means for counting a number of data sets in a packet stored in said packet storage means; and
- packet-end detection means for detecting whether said packet storage means has a complete packet, by inputting data indicating the number of data sets in a packet, as counted by said counter means, and the size of a packet, as stored in said packet storage means.
- 19. The queue control apparatus according to claim 18, wherein:
- said data storage means is a FIFO buffer.
- 20. The queue control apparatus according to claim 18, further comprising:
- saved packet memory means said for saving data of a packet written into said packet storage means;
- first detection means for detecting that a remaining storage capacity of said packet storage means is less than a predetermined first threshold; and
- packet data saving means for saving in said saved packet memory means packet data, supposed to be written into said packet storage means, after said first detection means detects that the remaining storage capacity of said packet storage means is less than said first threshold.
- 21. The queue control apparatus according to claim 20, further comprising:
- flag means for indicating whether said saved packet memory means stores a packet and wherein
- said packet saving means sets said flag means upon starting to store data in said saved packet memory means.
- 22. The queue control apparatus according to claim 21, further comprising:
- second detection means for detecting that the counter value of said counter means is less than a predetermined second threshold; and
- data restoration means for transferring data of a packet saved in said saved packet memory means to said packet storage means when said second detection means detects that a remaining storage capacity of said packet storage means is less than the second threshold; and
- wherein said data restoration means resets said flag means when said saved packet memory means no longer stores any packet.
- 23. The queue control apparatus according to claim 20, further comprising:
- second detection means for detecting that the counter value of said counter means is less than a predetermined second threshold; and
- data restoration means for transferring data of a packet saved in said saved packet memory means to said packet storage means when said second detection means detects that a remaining storage capacity of packet storage means is less than the second threshold.
- 24. The queue control apparatus according to claim 23, further comprising:
- flag means for indicating whether said saved packet memory means stores a packet; and wherein
- said data restoration means resets said flag means, when said saved packet memory means stores no longer stores any packet.
- 25. The queue control apparatus according to claim 20, further comprising:
- second detection means for detecting and outputting a detecting signal when the remaining storage capacity of said saved packet memory means is less than a predetermined third threshold.
- 26. The queue control apparatus according to claim 25, further comprising:
- controlling means for expanding a storage capacity of said saved data memory means when said second detection means inputs said detection signal.
- 27. A queue control apparatus for exchanging packets from a packet generating device for generating the packets to a packet processing device for executing a predetermined process on an inputted packet, the queue control apparatus comprising:
- packet storage means for storing and outputting, on a FIFO basis, packets generated by the packet generating device and representing a plurality of processes;
- saved packet memory means for saving data of a packet written into said packet storage means;
- packet data saving means for, when a first process with an execution right is writing a first packet to said packet storage apparatus and the execution right is switched to a second process which attempts to write second packet to said packet storage means causing the first packet to be an incomplete packet, taking out from said packet storage means the incomplete packet data written by the first process and saving the incomplete packet data in said saved packet memory means;
- data restoration means for transferring to said packet storage means packet data saved in said saved packet memory means before said first process causes a packet to be written into said packet storage means, when the execution right is switched back to said first process.
- 28. A method for supplying data to a queue control apparatus which exchanges data from a data generating device for generating data to a data processing device for executing a predetermined process on the data generated by the data generating device, the method comprising the steps of:
- sequentially storing in a data storage data outputted from the data generating device;
- detecting whether a remaining storage capacity of the data storage is less than a predetermined first threshold;
- after detecting that the remaining storage is less than the predetermined threshold, saving in a saved data memory data supposed to be stored in said data storage.
- 29. The method for supplying data to a queue control apparatus according to claim 28, further comprising the steps of:
- detecting whether the remaining storage capacity of the data storage is greater than a predetermined second threshold; and
- sequentially transferring data saved in the saved data memory to the data storage upon detecting that the remaining storage capacity of the data storage is greater than the second threshold.
Priority Claims (1)
Number |
Date |
Country |
Kind |
6-168482 |
Jul 1994 |
JPX |
|
Parent Case Info
This application is a continuation of application Ser. No. 08/503,940, filed Jul. 19, 1995, now abandoned.
US Referenced Citations (19)
Foreign Referenced Citations (1)
Number |
Date |
Country |
4-205345 |
Jul 1992 |
JPX |
Continuations (1)
|
Number |
Date |
Country |
Parent |
503940 |
Jul 1995 |
|