Thread A llocation Protocols for Distributed Real-Time and Embedded Systems