在服务器端运行线程在客户端显示进度可能吗? [英] run threads on server side & show progress on client side possible?

查看:83
本文介绍了在服务器端运行线程在客户端显示进度可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在服务器端运行线程池&希望在客户端显示线程工作进度.这可能吗.如果可以的话,请指导我.提前谢谢

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

推荐答案

是的,在主线程中检查更新(或由工作线程通知),然后通过TCP套接字(或使用进程间通信)发送报告进度在同一台机器上.

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).

在客户端上,当您收到信息时会对其进行解析,并相应地更新GUI/Progress.

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

这篇关于在服务器端运行线程在客户端显示进度可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆