How to verify that high priority stream is served

I am getting the expected “context switch” changing the execution from stream (B) to stream (A) when I am adding “stream synchronize” calls along the stream (B) kernel calls

But this is not a good solution:

  1. stream (B) lose its asynchronous execution behavior
  2. I can not and do not want to put “stream synchronize” in (B) every 10ms

any other idea?