c - Priority queue - time queue -
i'm trying build timer queue in c save jobs need processed based on time, priority queue best thing here or there else need at?
the following have,
job 1, start_time, time_to_exec, execute after 5 minutes job 2, start_time, time_to_exec, execute after 5 minutes new job came in job 3, start_time, time_to_exec, execute after 1 minutes ... , on
and i'll checking first element every few microseconds.
start_time time before entering queue.
time_to_exec time used insert job queue
Comments
Post a Comment