base thread and task classes, debug window