It's been a while since I've been here! The forum troll has finally decided to upgrade the app to work on her iPhone. Yay me!

Anyway, I have a question concerning memory.

My iPhone 3GS lags horribly once it gets to about 50 mb of ram left. So I want to write a script that will enable it to start killing processes once it has 50 mb left. I think I can write it, I just don't know where to put the script. Where is the memory controlled at in the iOS? Some folder? File?

No noobs either, if I'm asking a stupid question I don't need your opinion on it. I'm just now learning C objective.