threading test updated

An endless loop the main thread just updates a global variable to keep
it running
threading test two