Computer AwarenessVery hardIBPS SO IT · SBI PO

Which of the following is NOT shared by the threads of one process?

  1. A. The program code
  2. B. Global data
  3. C. Open files
  4. D. The stack

Correct answer: D. The stack

Threads share their process's code, global data and open files, but each thread has its own stack and registers so it can run its own sequence of calls.

हिंदी में

निम्नलिखित में से कौन-सा एक प्रक्रिया के थ्रेडों द्वारा साझा नहीं किया जाता?

  1. A. प्रोग्राम कोड
  2. B. ग्लोबल डेटा
  3. C. खुली फ़ाइलें
  4. D. स्टैक

उत्तर: D. थ्रेड अपनी प्रक्रिया का कोड, ग्लोबल डेटा और खुली फ़ाइलें साझा करते हैं, परंतु प्रत्येक थ्रेड का अपना स्टैक और रजिस्टर होते हैं ताकि वह अपने कॉलों का अनुक्रम चला सके।

More Computer Awareness questions

Exams that ask this topic