Improved execution method and fixed waitting in arrive of EventBarrier