mthread copy on write implemented