I have a command, let say php process.php
. I want to run 1000 instance of this command to test load caused on the server. How can I do this?
Things to note:
Ctrl+C should terminate all instance at once
It is going to run on a single core processor so no need of advance feature like multi-threading.
Nice to show current number of running instance on top
Commands should output in the same terminal
Commands requires no input