Other than that overhead of its per-client thread creation, a notable feature of the SocketServer-based server is its use of a blocking call to time.sleep within its handler.
除了创建每个客户机线程的开销之外,这个基于SocketServer的服务器一个引人注目的特性在于它对其处理程序内的time . sleep使用阻塞调用。
The solution provided shows how to separate the long running call into another managed thread by using the Websphere Application Server feature of Asynchronous Beans.
这种解决方案展示了如何利用Websphere Application Server的异步bean功能将耗时的调用分离到另一个托管线程中。
Using the feature, the back-end call runs in a new thread, managed by Application Server, and the application does not wait for the result.
通过使用该功能,后端调用运行在 Application Server 托管的新线程,并且应用程序不会等待结果。
应用推荐