Improved scheme of using the CPU and memory.