Change Thread constructor parameters

Updated freeRTOSdemo