Operating System Interview
Explain the difference between a process and a thread. Process: Independent execution unit Has its own memory space Heavyweight, more resources Isolated from other processes Thread: Lightweight unit of execution within a process Shares memory space with other threads in the same process Less resource-intensive Can communicate easily with other threads in the same process How do processes and threads communicate Process communication methods: Pipes and named pipes Shared memory Message queues Sockets Signals Thread communication methods:...