The tasks decide when to give up control.

1
1
Pre-emptive multitasking (threading)
Cooperative multitasking (asyncio)