pthread for system helper works. Need locks and pid ones