Multithreading support for TIS viewer