Abstract:
The present invention relates to an apparatus and method that are capable of optimizing the overall performance of DDS middleware for processing data by managing network threads, writer/reader threads, and memory resources. For this, an apparatus for processing data in middleware for DDS includes a network thread management module for managing, using a thread pool, a network thread which has sockets for transmitting or receiving data to or from a network in an RTPS layer. A lock-free queue management module manages a lock-free queue which has a lock-free function and which transmits or receives the data to or from the network thread. A writer/reader thread management module manages a writer thread and a reader thread so that the writer thread or the reader thread transmits or receives the data to or from the lock-free queue and performs a behavior in the RTPS layer.