allocation in windows does anybody know the way in which a pid is chosen for a new process in windows i just ran two instances of notepad and got pids of and then when i ran a third it got a pid of this seems to be a little random i take it there's some algorithm that chooses them and it's not just random