parametrage threads