Consider a servlet that initiates a long-running task asynchronously. What happens to the request thread during this task?

  • The request thread is blocked until the asynchronous task completes.
  • The request thread is free to handle other requests.
  • The request thread is paused indefinitely.
  • The request thread is terminated.
In an asynchronous operation, the request thread is freed to handle other requests while the long-running task proceeds independently.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *