adding thread_hand6 the program I was after through much of this.  four slave threads one master each slave asks the master to change one bit on the port the master owns.  only one thread can own a port, so this allows the four threads to control a single bit on that port, via thread 0 as a proxy