parallel realization 3rd layer

using pthread.h