摘要 |
PURPOSE:To attain the efficient usage of a memory, and to prevent omission in a bit of trace information when a commuication traffic is busy, by keeping a trace buffer possible to be written by two tasks at a regulated level, regardless of the busy/non-busy state of the communication traffic. CONSTITUTION:A file output task 2, when it is started up, refers an output process waiting queue 5, and when the trace buffer is queued, an output process is performed by taking out the trace buffer one by one, and after completing the process, the trace buffer is released. A trace buffer Bn-1 is queued at the output process waiting queue, and a pointer 6 indicates the trace buffer Bn-2 during the output process, and a trace buffer Bn-2 is output-processed to a trace file in an external storage device 7. The file output task 2 repeats a sequence of process until the buffer to be queued is not present, then terminating an operation. The quantity of the output process waiting queue is increased/ decreased according to the busy/non-busy state of the communication traffic, and it makes unnecessary to secure an unnecessary memory when the traffic is not busy.
|