Final answer:
Resource sharing helps to share memory and resources among threads, allowing multiple threads to run concurrently within the same address space and reducing the overall address space used by a process.
Step-by-step explanation:
Resource sharing helps in multiple ways:
- Share the memory and resources of the process to which the threads belong. When threads share resources, they can access and modify the same data, eliminating the need for duplication and improving efficiency.
- An application have several different threads of activity all within the same address space. This means that multiple threads within an application can run concurrently, performing different tasks within the same memory space.
- Reduce the address space that a process could potentially use. By sharing resources, multiple threads can operate within a smaller address space, reducing overall memory usage.
Therefore, the correct answer is d) All of these.