Available Processor Check Update

Now checks for number of available processors and creates so many
threads.