Privilege levels and user-mode threads