A virtual device uses the following services to debug threads and to test the validity of thread handles.