Communication-aware stochastic allocation and scheduling framework for conditional task graphs in multi-processor systems-on-chip