Tag Archives: core

Run threads with different priorities in C#

This example runs several different threads at different priorities. Each of the threads executes the following Counter class’s Run method. class Counter { // This counter’s number. public string Name; // Initializing constructor. public Counter(string name) { Name = name; … Continue reading

Posted in algorithms, programs, system, threading | Tagged , , , , , , , , , , , , , , , , , , , , | Leave a comment

Use WMI to get the number of physical and logical processors in C#

This example shows how you can determine your computer’s number of processors, both physical and logical. Many computers these days contain multiple CPUs. Each CPU may contain multiple cores, processors that can execute instructions. Finally, some cores can execute multiple … Continue reading

Posted in performance, system, threading, WMI | Tagged , , , , , , , , , , , , , , , | Leave a comment