1, for the single-core CPU, the threads are alternately executed, the multi-core CPU is executed concurrently.
2. Two ways to parse the data: XML and JSON.
XML Extensible Markup Language, which is a data interchange format, is generally divided into two kinds of dom and sax parsing.
Dom parsing: The entire data as a DOM object, they read into memory at once, power consumption, the resolution is low.
Sax parsing: Sax uses a stepwise analytic approach, taking up small memory, characterized by convenience, flexibility, and resolution relative trouble.
JSON is a lightweight format for data interchange, and is now the mainstream way of parsing data. The use of more.
3 use of the Open Source Library ASI
Official website: http://allseeing-i.com/asihttprequest/how-to-use
Github:https://github.com/pokeb/asi-http-request
5 library files to rely on: CFNETWORK,SYSTEMCONFIGURATION,MOBILECORESERVICES,LIBZ,LIBXML2
Network and multithreading need to pay attention to the place