Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why is an operation not interrupted directly when the measurement period is over?

0
Posted

Why is an operation not interrupted directly when the measurement period is over?

0

An operation will continue to be run even when the measurement period is over. This is done in order to ensure that each operation that is started inside the measurement period will contribute to the measurement period, but only as much as is inside it. So an operation that is started but not completed inside will contribute between 0 and 1, depending on how much of the execution time was inside the measurement period. In order to not give any advantage for executing outside the measurement period, the harness will continue to execute threads until all operations started inside the measurement period are completed.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123