Architecture Exploration for Time-Critical and Cost-Sensitive Distributed Systems