📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    Which of the following is a primary reason for using

    threads instead of multiple processes for concurrent execution within a single application?
    A Threads have separate address spaces, providing better isolation. Correct Answer Incorrect Answer
    B Context switching between threads is generally more expensive than between processes. Correct Answer Incorrect Answer
    C Threads share the same address space, allowing for easier data sharing. Correct Answer Incorrect Answer
    D Threads are managed exclusively by hardware, not the operating system. Correct Answer Incorrect Answer
    E Threads offer stronger security guarantees than processes. Correct Answer Incorrect Answer

    Solution

    Answer: C) Threads share the same address space, allowing for easier data sharing.

    Practice Next
    ask-question