How to stack processes on top of each other to become more efficient