[Mono-bugs] [Bug 566057] SetMaxThreads does not allow you to set a limit lower than its default
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Feb 2 12:11:05 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=566057
http://bugzilla.novell.com/show_bug.cgi?id=566057#c4
Dave Bialac <dbialac at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Info Provider|dbialac at gmail.com |
--- Comment #4 from Dave Bialac <dbialac at gmail.com> 2010-02-02 17:11:04 UTC ---
I downloaded yesterday's daily snapshot, and got this running the code snippet
below:
Worker: 104, Async: 64
Worker: 104, Async: 64
Running on my mac in a non-virtualized environment, I get:
Worker: 40, Async: 0
Worker: 40, Async: 0
So the problem isn't fixed, at least not in the daily builds. If the daily
builds don't come off of svn, what is the URL for the svn repository?
I've included a basic minimal main() that unlike the code provided earlier
actually works properly. Sorry, it was ThreadPool not ThreadCount. I guess
cut and paste work better than read to brain then paste. :)
----------
using System;
using System.Threading;
namespace Tests
{
class ThreadTest {
public static void Main(string[] args) {
int worker;
int async;
ThreadPool.GetMaxThreads( out worker, out async );
Console.WriteLine( "Worker: " + worker + ", Async: " + async );
ThreadPool.SetMaxThreads( 16, 16 );
worker = 0;
async = 0;
ThreadPool.GetMaxThreads( out worker, out async );
Console.WriteLine( "Worker: " + worker + ", Async: " + async );
}
}
}
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list