Task Synchronization in Distributed Real Time Control Systems