Pergunta de entrevista da empresa MZ

What's the difference between a process and a thread?

Respostas da entrevista

Sigiloso

25 de mai. de 2015

A single process encapsulates threads.

Sigiloso

27 de mai. de 2015

Thread specific items: -stack -signal mask -scheduling policy and priority -program counter -register set Shared between threads: -code segment / section -data segment / section -OS resources i.e.) task , open files, signals -address space General: -threads share same address space as the process that creates them -threads have their own data segment -processes use IPC to communicate between themselves -task switching between threads is light weight -processes carry their own state, threads share state ...

Sigiloso

15 de fev. de 2016

Thread is abstract of Process. rest as above