DSSSB TGT CS Mock 03 – Question 147

Question:

What is the primary difference between a process and a thread in modern operating systems?
आधुनिक ऑपरेटिंग सिस्टम में एक प्रक्रिया (process) और एक थ्रेड में प्राथमिक अंतर क्या है?

Options:

  • Processes have independent address spaces, while threads within the same process share code, data, and resources
  • Threads have their own heap and global variables, while processes share them
  • Processes are managed in user space, while threads are only kernel space
  • A thread cannot run concurrently with other threads
  • प्रक्रियाओं के पास स्वतंत्र एड्रेस स्पेस होते हैं, जबकि एक ही प्रक्रिया के थ्रेड कोड, डेटा और संसाधनों को साझा करते हैं
  • थ्रेड्स के अपने हीप और ग्लोबल वेरिएबल होते हैं
  • प्रक्रियाएं केवल यूजर स्पेस में प्रबंधित होती हैं
  • थ्रेड अन्य थ्रेड्स के साथ समवर्ती रूप से नहीं चल सकते

Correct Answer: a)

Explanation:

Processes are heavy-weight isolation boundaries with their own private virtual address spaces. Threads (lightweight processes) exist inside a process and share the text section, data section, and OS resources, each possessing only its own program counter, registers, and stack.
प्रक्रियाएं अलग एड्रेस स्पेस में चलती हैं, जबकि एक ही प्रक्रिया के थ्रेड उसी प्रक्रिया की मेमोरी (डेटा, हीप, कोड) साझा करते हैं और केवल अपना स्टैक व रजिस्टर रखते हैं।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top