remote_thr.cpp version with high water mark (HWM) option needed for
memory limited systems e.g. 32 bit systems