I am rather confused about how this would be possible with the iOS Sandbox, but there appears to be an app in the App Store that does this: Dual Core System Activity Monitor for iPhone 4S
According to the Developer Website this app can:
Stop Apps:
Use the Stop Apps button to quickly free up memory. Tap the button and dismiss the dialog multiple times to free up additional memory each time. You do not actually need to double press the Home button to kill the apps.
I am able to get a list of processes running with their pid’s. How could I “free up memory” by, I assume, killing processes or other apps?
Note: While I intend to submit this particular project for the App Store, I would still be interested to know how this is done on a jailbroken phone, if that’s your specialty. Plus I’m sure other programmers reading this could benefit from such knowledge as well.
I think that’s a scam app ..it’s iOS’s duty to terminate processes if you need more memory.
You could read the list of processes and then virtually terminate them (remove them from a table view or something) but not actually terminate the process itself.