Cubiware interview question

Write FIFO queue that will work in multithreading environment (language don't matter)