Computer AwarenessVery hardIBPS SO IT · SBI PO
Which of the following is NOT shared by the threads of one process?
- A. The program code
- B. Global data
- C. Open files
- 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.
हिंदी में
निम्नलिखित में से कौन-सा एक प्रक्रिया के थ्रेडों द्वारा साझा नहीं किया जाता?
- A. प्रोग्राम कोड
- B. ग्लोबल डेटा
- C. खुली फ़ाइलें
- D. स्टैक
उत्तर: D. थ्रेड अपनी प्रक्रिया का कोड, ग्लोबल डेटा और खुली फ़ाइलें साझा करते हैं, परंतु प्रत्येक थ्रेड का अपना स्टैक और रजिस्टर होते हैं ताकि वह अपने कॉलों का अनुक्रम चला सके।
More Computer Awareness questions
- Print jobs from many users are first stored on disk and sent to a slow printer one by one, so the CPU can carry on with other work. This…
- Which sequence correctly describes how a TCP connection is set up by the three-way handshake?
- How does the Harvard architecture differ from the von Neumann architecture?
- A processor runs at 2 GHz. An instruction that needs 4 clock cycles takes how long to execute?
- A 2 GHz processor needs on average 2.5 clock cycles per instruction (CPI). What is its speed in MIPS (million instructions per second)?
- A file system divides a 2 GB partition into blocks of 4 KB each (1 KB = 1024 bytes, 1 GB = 1024 MB). How many blocks are there?