摘要 |
PURPOSE: A device for controlling a queue for a communication between tasks and a method thereof are provided to enhance the performance of a system and manage a queue effectively by managing registrations of many queues being recognized in a main CPU board and an error message being asked in a general operating system in one place and transmitting a message to the final destination of each queue rapidly. CONSTITUTION: A task(100) performs a command inputted in an operator managing program. A processor controls a program. A queue manager(120) supplies a message queue registration, a query function, and a transmission function. A queue thread(130) transmits/receives messages being transmitted and received to a remote place board to an IPC drive. A queue table(140) is used for storing and routing information of a queue being used in a system. A software block manufactures one's queue and requests a message queue registration to the queue table(140) through the queue manager(120). When the message is transmitted to other block, a query is processed for selecting a message queue for a transmission, and the queue table(140) is checked, and an ID of a destination queue is searched. A registered queue is designated as a block ID and an interface ID and used by attaching to a header in a message transmission. The queue thread(130) transmits a message transmission request to an IPC drive. The IPC drive transmits a message transmission request signal being transmitted from the queue thread(130) to the destination queue. In case that a responded block is in other unit, a message routing is performed. At this time, a mapping of the queue table(140) is performed by referring to a header of an IPC message. The destination queue reports a message result to the queue thread(130) again.
|