long operation in thread