开发者

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

开发者 https://www.devze.com 2022-12-22 22:24 出处:网络
I want to run a thread pool on server side & want to show threads work progress on client side. Is this possible. If so ki开发者_如何学Gondly guide me. thanx in advanceYes, in the main thread chec

I want to run a thread pool on server side & want to show threads work progress on client side. Is this possible. If so ki开发者_如何学Gondly guide me. thanx in advance


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号