Re:Windows NT vs. Unix: A design comparison
by slt2021 on Monday September 09, 2024 @07:40PM
(#41495527)
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.
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.