Read through config.pl to find the various options for how threads are deleted. By default it happens by number of posts, not threads.
If code does not run, you have not properly configured the httpd.config file. Beyond that, it's not like we know how your server is set up. You really need to figure out that part yourself. Also, xampp is known to cause all kinds of problems.