views:

14

answers:

0

Hi folks !

I'm trying to design an application (in C++ but that doesn't matter I guess, anything object-oriented would work the same) which has to synchronize a bunch of events together.

Basically, you would have a several data structure instances which would contain lists of events. An event would have a timestamp and be "runable". The application would have to synchronize all the events, i.e : "run" them when their timestamp is equal to the current time, with an accuracy of 0.1 millisecond. Also, I would like to be able to input some additional events "real time" (as close as it can get to real time actually)

I'm simply looking for the best way to do this (not necessarily to code it, but to design it, in terms of class digram). I have been googling a bit for that but I didn't find much. Apparently there's something called the "scehdule-task design pattern" but couldn't find any info about it.

Any hints or ideas ?