Home > Back-end > When website development will use wait Notify?
When website development will use wait Notify?
Time:12-02
I had a wait notify the practice, but I don't know what website development will use this technique when I feel only graphical desktop thread to interact with the background threads will use wait notify Sites are resolved through distributed lock or airflow seems no use Blockingqueue, atomic such a collection of exchanging data between threads, I don't know when website development would use the The local cache static data?
Website development, by the way when would use the thread pool? Connection pooling is a big probability used, thread pool, feel framework are exported, as if they didn't have enough place to write thread pool
CodePudding user response:
Yes, I have developed more than ten years has never been used
CodePudding user response:
Depends on what kind of website, what you said is the WEB's own thread processing, this by the WEB container implements, you take the handle, but if the background need to visit some time consuming third-party data interface, generate a huge files, for example, a complex report query, you need to use your own thread pool to process, otherwise we all stuck when they visit this page,