cpu-exec: Add sleeping algorithm