Optimized Implementation of Distributed Real-Time Embedded Systems Mixing Control and Data Processing