Forum > General

Time based queues

(1/1)

ik:
Hello,

I have a need to create a task queue for actions. Some of the actions must take place in a specific time (and date), and others asap (possibly "now" -> as they enter the queue that is).

At the beginning I thought about RabbitMQ, but the more I research, the less I'm sure it's suitable for my needs.

Does anyone have idea or knowledge how to implement such queue, that can be used in parallel so I can get more then one task at a time that needs to executed ?

Thanks,
IK

jw:
start by looking at the multithreading example under lazarus

C:\lazarus\examples\multithreading

this will show you how to create multiple threads with a que and timer for each thread and que that can execute the task as it's own thread when you want.

Navigation

[0] Message Index

Go to full version