Using ns_start_thread()