C # When a managed thread finishes its time slice, will it carry a context switch?

Russinovich’s book says that a stream (NOTE: this is about the OS stream) will need scheduling (planning) if it a) becomes ready b) has completed its time list, lessons or blocks.

I have a managed thread in my real-time C # application, for which it is very important to achieve as many context switches as possible.

This thread has the highest priority, and the process has a RealTime priority, which makes my thread priority 26 of 31.

What will happen to my thread when it finishes its time interval and there are no pending threads with priority> = 26?

Will the context switch be turned on to reconfigure my stream to restart or switch the context, and the stream will work without interruption?

If there is a context switch - can anyone tell me how many CPU cycles are required on average ?

I would appreciate simple and definitive answers !

Thank!

+3
source share
1 answer

How can you make a real-time application for an OS without real-time? Here is the real-time OS information

, (http://blogs.msdn.com/b/oldnewthing/archive/2010/06/10/10022675.aspx)

>= 26?

, (, ..) - .

MSDN : " . . , . , ( ) "

, , ?

, (, ) Thread.SpinWait.

- - , ?

, , (2,8 ) P4 1348 (200 ) P2 227 . ? , P4 ( arstechnica.com - ). , P4 481 P2 1335 .

923 (330 ) P4, 180 (900 ) P2.

/ ( TLB/ / FPU) 188 P4 (67 ), 79 P2 (395 ). ( )

+4

Source: https://habr.com/ru/post/1750869/


All Articles