I/O manipulate and thread control