Apparatus and method for processing data in middleware for data distribution service

PURPOSE: An apparatus for processing data in middleware for data distribution service (DDS) and a method thereof are provided to manage memory resource used for network thread, writer/reader thread and the driving of application in DDS middleware. CONSTITUTION: A network thread management module (10) manages network thread having a socket transmitting and receiving data with the network in a real time publish-subscribe (RTPS) layer which is data transmission layer of middle for DDS, by using thread pool. A lock-free queue management module (20) manages lock-free queue transmitting and receiving the data with the network thread as having lock-free function. A writer/reader thread management module (30) performs the management so that writer thread or reader thread transmits and receives data with the lock-free queue and performs behavior in the RTPS layer. [Reference numerals] (100) Network thread; (200a) Writer lock free queue; (200b) Reader lock free queue; (300a) Writer thread; (300b) Reader thread; (40) Memory management module; (400a) Writer work queue; (400b) Reader work queue