I have a process that is running in my application for control. This process runs within a timer.
private void timer1_Tick(object sender, EventArgs e)
{
// bloco de instruções 1
// bloco de instruções 2
}
What happens is that processing of instruction block 1 ends up being delayed, and instruction block 2 ends up being 'hostage' to this delay.
I would like as long as instruction block 1 was executed, instruction block 2 was also executed, how many times it is called by timer
.
The code executed in block 2 does not depend on block 1.