added programs to create many threads programatically