By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,990 Members | 1,406 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,990 IT Pros & Developers. It's quick & easy.

Java to C# question - Logging API and number of processors

P: n/a
Sam
I m trying to port a a Java app to C# and have two questions.

i) In Java there is a java.util.Logging package that can be used to log
at different levels. Is there an equivalent in C# ?

2) There is a Runtime.getRuntime.availableProcessors() method that
returns the number of available processors to the process.
How do I do that in C# ? I think I have to use a Win32 unmanaged API
call and can do that - but need some pointers on where I can find this info.

Thanks
/s
Mar 28 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.