How to open threads?