1.

How does Background Processing take place in servlets?

Answer»

SERVLETS can do more than just persist between the accesses. They can ALSO execute between accesses. A thread that has been started by a servlet can CONTINUE to execute even after the response has been sent. This ability proves most useful for the tasks that are long-running, and WHOSE incremental results should be MADE available to multiple clients. A background thread that has been started in init() performs continuous work. It also performs request-handling threads displaying the current status with doGet(). 



Discussion

No Comment Found