in reply to Forking loop will never end

If you run any of the examples shown in the OP, you are necessarily running an infinite loop where each iteration of the loop spawns a new process (and in many of the examples, the spawned process will also start a similar infinite loop, spawning more processes). There is nothing in any of those examples that causes processes to finish, or causes an exit from the loop.

Eventually (in fact, very quickly), the process table on any sort of *n*x system will get filled to capacity and nothing else can happen till processes start to die off (or the system is abruptly shut off and rebooted).

I presume that something similar would happen with any sort of windows system.

Were you expecting that something different should happen instead? Why are you trying examples like that?

And, what was your question, exactly?