jeudi 3 septembre 2020

Analyzing Context Switch in Multithread

Is there any way to analyze timing of context switch in multithread? While learning about multithread, I often see figures such as

this

enter image description here

this

enter image description here

or this

enter image description here

Is there any way to read and visualize the context switch timing during program execution so that I'm able to see for example : how many duration is spent on Task X before it switch into Task Y, then how many duration is spent on it before switched into Task X again, or if the duration is not calculable, how to get notification that says "Task X is stopped, switch to Task Y"

Aucun commentaire:

Enregistrer un commentaire