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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -