generalize GarbageThread object; add time syscalls