Yield during test 1941 tight loop

Test 1941 performs a tight-loop in a thread. Perform Thread.yield()
periodically so that other threads will always have time to run.

Test: ./test.py --host
Bug: 133767752
Change-Id: I7d30a2d3b64115982c934ea1945c691e2ceff12d
(cherry picked from commit 43ae4acf219fe25a56e2055ebcebc4d08020a25d)
1 file changed