can anybody plz tell me how to make my program execute slower.
eg :
I have to kill a process and then rename the file of the which process i just killed.

problem is that the process takes time to kill and the renaming code tries to execute while the process is still closing.

so in between the two pieces of code i have to , like put a wait statement or something like that.

Any ideas?