Pergunta de entrevista da empresa New Work SE

When do you need to run a task in background thread?