User Thread library - exercise from OS course at HUJI summer 2013