2 ms·
I think that depends on whether your queue is a fixed data set or a stream of new entries. I learned queuing theory in a class about multimedia, and I came awa
by hinkley 7y ago
I think that depends on whether your queue is a fixed data set or a stream of new entries.
I learned queuing theory in a class about multimedia, and I came away with a good theoretical understanding but my practical understanding was rubbish. When synchronizing two streams of tasks, the queue is not finite, but the pattern is fixed. For A/V it might be 22 frames per second, best effort, and exactly one second of audio per second.
But any queue with even a vague notion of deadlines will only let so many tasks 'cut in line'. At some point the undesirable task gets scheduled, even in the face of a constant stream of other work. Or it gets dropped. From what I understand, in a realtime system a low priority, long task might just be aborted. Because it's never a good time to run it.