Create thread parameters.