In TaskTracker, there is a daemon thread called TaskMemoryManagerThread running in the background. It monitors the memory usage of each task and kills the process if necessary. It uses the ShellCommandExecutor class which wraps around the ProcessBuilder to issue the sigkill command.