inital pthread solutions