Pergunta de entrevista da empresa American Express

What is the difference between a thread and process?

Resposta da entrevista

Sigiloso

10 de abr. de 2019

A process, in the simplest terms, is an executing program. One or more threads run in the context of the process. A thread is the basic unit to which the operating system allocates processor time. A thread can execute any part of the process code, including parts currently being executed by another thread.