Added Thread Support

Printed out the memory available.