Automatically adjust the download thread

Change-Id: Ie01113c5f9c8eb8257af8e63fb050901ad35707d