Recent

Author Topic: Time based queues  (Read 3302 times)

ik

  • Jr. Member
  • **
  • Posts: 88
  • ik
    • LINESIP
Time based queues
« on: January 23, 2011, 04:29:24 pm »
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

  • Full Member
  • ***
  • Posts: 126
Re: Time based queues
« Reply #1 on: January 23, 2011, 09:29:55 pm »
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.


 

TinyPortal © 2005-2018