nio working implementation, main thread selector, each app single thread, multi-thread actions