Link to home
Start Free TrialLog in
Avatar of odissey1
odissey1

asked on

Pool of working threads?

Hi Experts,

Can you give me an example of 'Pool of working threads'?
My gues this is some amount of available threads which could be checked if they are free and then assigned a new task. The thread is not terminated after finished its task, but returned to the pool. This is the best I could explain what I am looking for.

Sincerely,
odissey1
SOLUTION
Avatar of vadim_ti
vadim_ti

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shaneholmes
shaneholmes

vadim_ti,

I believe what  odissey1 wants is a queue of threads. Where, one thread comes off the top, gets used, completes it completes its task, instead of getting terminated, it goes to the back of the queue waiting to be used again - then the next one comes off the top - and so on.

Is this  correct odissey1?
Avatar of odissey1

ASKER

To shaneholmes,

Yes, I think you describe it correctly. I've found some TWSocket example in the newsgroup and there it was advised to use a 'pool of working threads' (instead of regulal threading mechanism)  for a particular problem (boosts of high-speed data transfer with slow processing on receiving side). I decided to learn more about this approach and will be glad to get any extra knowlegde about that subject. The best would be some code snippet. I think I could follow from there.

Regards,
odissey1

 
Would this be for some chat or P2P application?

ShaneHolmes
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi All,

I am sorry for delay. Thank you for help

Sincerely,
odissey1