run threads on server side & show progress on client side possible?

喜你入骨 提交于 2019-12-11 09:01:13

问题


I want to run a thread pool on server side & want to show threads work progress on client side. Is this possible. If so kindly guide me. thanx in advance


回答1:


Yes, in the main thread check for updates (or get notified by the worker threads) and then send the report progress over TCP Sockets (or using interprocess communications if on the same machine).

On the client side parse the information when you receive it, and update the GUI/Progress accordingly.



来源:https://stackoverflow.com/questions/2432305/run-threads-on-server-side-show-progress-on-client-side-possible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!