Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using System;
using System.Threading;
namespace ConsoleApplication
internal class Program
public static void Main(string[] args)
var maxThreads = 0x7fff;
ThreadPool.SetMaxThreads(maxThreads + 1, maxThreads + 1);
int maxWT, macCP;
ThreadPool.GetMaxThreads(out maxWT, out macCP);
Console.WriteLine(maxWT == maxThreads);
Console.WriteLine(macCP == maxThreads);
//.NET: true true
//Mono: false false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment