Darling read the posts carefully.
Firstly check your langauge here, this is not some cheap internet chat that you are into. Read the forum rules regarding chat speak, because I am sure you haven't cared.
And towards the answer to your post. I guess you are mentioning this :
Thread sequence depends on many factors as System clock, processor type, OS, OS's scheduling algos. So try using some other concept instead of sleep.
I don't find anything about I/O, which is the prime cause of concern here. You are mentioning a whole lot of other things here but not the one which would help the OP in figuring out the problem.
And this is the proof of that, which is what he says after your post:
Every time when I execute this program its change its output.