pthread init

Change-Id: Ia0285b46bfa0af6e7509fb6dea6529e4a3c561a2