[Mono-dev] Reading threadpool performance counters

2016-05-23 Thread Chris Swiedler
Per https://bugzilla.xamarin.com/show_bug.cgi?id=1772 I've been trying to get Mono threadpool metrics with lines like this: m_workItemsAdded = new PerformanceCounter("Mono Threadpool", "Work Items Added", Process.GetCurrentProcess().Id.ToString()); However, the counter I get back always

Re: [Mono-list] Why is 0.1f + 0.2f - 0.3f produces such a large error number?

2016-05-23 Thread Alan
You really have two options: 1) Use float/double values and accept that you will get rounding errors in all trivial and/non-trivial floating point calculations. You will have to deal with this lack of precision appropriately for the type of calculation you are performing. This is not a bug, this

Re: [Mono-list] Why is 0.1f + 0.2f - 0.3f produces such a large error number?

2016-05-23 Thread MarLOne
Hi Alan, While all this is find it does not explain the following observation using the same CPU: VS2015 the delta is zero For all other VS dated back to 2003 the delta is non-zero. In fact my friend has shown me his code that led him to question this: He has a web server implementing that