Creating one shell for the main thread and another shell for the other threads.