How does task isolation work?