Hi there.
I am a Java application Developer and an Operating Systems + Computer Architecture Expert since 8 years.
I am expert in Object Oriented Design, Data Structures, Threads, OS Processes such as FIFO, Round Robin, Sequential Executions, Parallel Dispatchers etc.
I have read your requirements and can implement this algorithm for you.
Lets discuss.