interleaved threading