Will thread.join () block other clients?

In the asp.net web application, say that every time a user makes a request and the page loads, a thread is launched that uses thread.join () to block the execution until it completes.

Say it takes 10 seconds for this stream.

Does this mean that if 5 completely separate users make a request to this page, just milliseconds after the last, does this mean that the last user is waiting 50 seconds to complete his request? Or is each customer request threaded?

+3
source share
3 answers

As a rule, other users will not be blocked.

Join . , , , .

+4

Join , , , , , .

- Join , , .

+2

, , Thread, . , thatThread.Join. , ...

5 , , , thatThread. , . , , , . , , .

, , .

, , .

0

Source: https://habr.com/ru/post/1736745/


All Articles