3 ms·
Process is a way to segregate resources (memory, sockets, file descriptors, etc). You kill a proc - it will release all memory and file descriptors. Thread is
by slt2021 2y ago
Process is a way to segregate resources (memory, sockets, file descriptors, etc).
You kill a proc - it will release all memory and file descriptors.
Thread is a way to segregate computation. You spawn a thread and it will run some code scheduled by the OS. you kill/stop a thread and it will stop computation, but not the resources.