.net - Minimize the number of cross-core context switches -


I was recently experimenting with the application framework (using the Visual Studio Display Wizard) While working with the indicators, I have seen the fact that cross-core reference switch rates are quite high when the application runs with multiple threads (both background and foreground).

To know that a large number of cross-core projection switches can be harmful for display, I would like to reduce it to minimize.

Together with the potential ways of doing this in the NAT application, can you add some thread to a single core?

But you have to reduce the performance - as long as CLR / OS stops the scheduling threads to the available core can do.

To do this, you can use the method to force the thread to be pinned for identification of a particular processor or core.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -