Implementation of multithread processes