1

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

AZ_
  • 21,688
  • 25
  • 143
  • 191
  • Using Java 5 ThreadPool class – AZ_ Mar 12 '10 at 11:21
  • because I have to discovery some blades that are running and their specifications – AZ_ Mar 12 '10 at 11:21
  • like user want to discovery V10L balde from a specific IP range and also PCoIP Blades. The threads run on server side but I have requirement to show progress completed on client side. [Threads on server side may call a webservice, HTTP, UDP etc] – AZ_ Mar 12 '10 at 11:22

1 Answers1

0

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.

Michal Ciechan
  • 13,492
  • 11
  • 76
  • 118
  • I don't want to open another port rather I can not open another port. I want to write it on similar stream EXAMPLE: like Gmail automatically updates your page when email received. some thing like reverse ajax call or push lets. – AZ_ Mar 12 '10 at 12:35