Mogilev A. OS-independent detection of thread switches on uniprocessor // Computer Science. — 2005. — # 23 — P. 57-70