Friday 13 September 2019

cpu - System tick timer interrupt in SMP


Is system tick timer interrupt in SMP system synchronized among CPUs/cores? If not, how is it solved?*


Sorry for my English.


EDIT: With system tick timer interrupt I mean interrupt from system timer that is used by operating system. No CPU frequency clock source.


*I am interested in typical solve of this/similar problem.



Answer



In modern day and age, there are tickless kernels, which do not have static tickrates. They calculate the time until they have to interrupt again and program the APIC (which regulates Interrupts) accordingly.


Windows 10 uses a tickless kernel and the option exists for Linux as well. A tickless kernel increases the throughput of the system (due to less interruptions, less context switches, etc) at the cost of longer response times.


In a tickless environment, every kernel (thus core) takes care about this himself. Synchronizity between cores is not a necessity for a stable environment and the answer to your question simply is:


It depends on the implementation.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...