Some multithread-relevance classes and some tools to synchronize threads