Created
July 23, 2019 02:28
-
-
Save alefcarlos/004849d0facd5779af876cff20695573 to your computer and use it in GitHub Desktop.
DotNetThreadPool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program { | |
static void Main(){ | |
//Obtém config(para ajustes finos de acordo com a necessidade) | |
var value = Convert.ToInt32(ConfigurationManager.AppSettings["MinThreads"]); | |
//Altera os valores, retorná true caso tenha conseguido | |
var success = ThreadPool.SetMinThreads(value, value); | |
//TODO: ..... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment