How to use the multi-thread on the file loading

I want to create two threads:

  1. main thread: handling the main logic flow, including reading the configuration file.
  2. network thread: Read the config parameter from server and write them into configuration file.

When main thread need to change the new scene, the configuration file need to updated by network thread. After that, main thread read the file. When network thread fetch config data and write configuration file, main thread need to pop an messgebox to show ‘Please waiting …’. After that, main thread need to be informed can read the file.

How to do that?

you can have a reference to:
http://www.cocos2d-x.org/boards/6/topics/900?r=33431