okk.. i think im getting it.. P1 is already there first at t=2, but i think i've seen examples like this where the other processes are scheduled first.. dont know for sure. can i ask for the source of this implementation.
And thank you so much for replying and clearing doubts.