In a multi-threaded server application, what could be a potential issue if each thread opens its own database connection via a socket?
- Reduced resource consumption as each thread manages its own connection.
- Improved concurrency and performance due to isolated connections.
- Increased risk of resource contention and exhaustion.
- Guaranteed data consistency and reliability.
In a multi-threaded server application, opening a separate database connection for each thread (option c) can lead to issues like resource contention and exhaustion. This approach can consume a significant number of resources and potentially cause performance problems. The other options (a, b, and d) do not accurately describe the issues associated with this practice.
Loading...
Related Quiz
- How can you access variables in the surrounding scope from a lambda expression?
- If a and b are boolean expressions, then a & b is true only if ______.
- Which of the following methods in the Stream API can change the type of the elements in a stream?
- The collect() method in the Stream API is a type of ________ operation.
- Which data structure is preferred for implementing Binary Search effectively?