Process आफ्नै memory भएको एउटा पृथक कार्यक्रम हो; thread एउटा execution इकाइ हो जसले उही process भित्रका अन्य threads सँग memory साझा गर्छ। एउटा process ले धेरै threads समेट्न सक्छ।
यो कसरी काम गर्छ
- Process: आफ्नै address space, file descriptors, र heap। OS द्वारा पृथक — एउटा process मा crash वा memory bug ले अर्कोलाई भ्रष्ट पार्न सक्दैन। Context switching र सञ्चार (IPC) अपेक्षाकृत महँगो हुन्छ।
