Tests (tests/TestKillSem.hs) are included to demonstrate the bugs that occur when blocked threads are stopped with killThread. The GHC ticket #3160 reports this bad behavior of the usual QSem QSemN.