Playing with some low-level threading related stuff.