simple thread/process synchronization library