Pregunta de entrevista de JUSPAY

They asked me to explain the difference between a process and a thread and discuss when multithreading is preferable over multiprocessing.

Respuesta de la entrevista

Anónimo

31 may 2026

I explained that a process has its own memory space and resources, while threads within the same process share memory and resources. I mentioned that multithreading is generally preferred for tasks requiring concurrent execution with low communication overhead, whereas multiprocessing is useful for CPU-intensive tasks and better isolation between tasks.