C
C
Che_Bu_Rashka2016-05-25 12:41:41
Delphi
Che_Bu_Rashka, 2016-05-25 12:41:41

What does Delphi have for queuing threads?

It is necessary to organize some queue of flows. Each thread will send some request over http. It is important that they do this in the order in which they were launched - first the first launched, after the second, and so on. The thread that was launched last should send its request last. Watched docks, found only TQueue and TObjectQueue. Haven't been able to apply them to this problem yet. Is there something for this kind of task? Or how would you do it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
Che_Bu_Rashka, 2016-05-25
@Che_Bu_Rashka

In general, the answer is found - this is the OmniThreadLibrary I indicated with its Pipeline

A
Archakov Dennis, 2016-05-25
@archakov06

Delphi multithreading . What you need.
To do this, use TThread

S
spotifi, 2016-05-25
@spotifi

If "one by one" - then multithreading is not needed. And you need a banal queue structure from which one task will take in turn and send / receive what you need there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question