When does a thread in park state resumes enters into execution state?

68 Views Asked by At

Say a server is capable of handling 8 concurrent connections at a time and it is allowed to have 100 connections to be in the pool the when a thread enters now and it is not allowed to enter into execution thread pool (here it is 8) also there is no space for the thread to be in pool then the thread enters the park WAITING state I guess.

JavaDoc suggests that the thread would be in this park state until

i) A given amount of time. Do we have any default wait time? What happens when we don't configure any amount of time? How long does the thread would be in this wait state?

(or)

ii) Until the permit is available for the thread? Now in this case when the maximum connection limit is set - who does the job of providing permit to wait threads?

0

There are 0 best solutions below