How does pre-emption work?