In iOS development:
• Time-consuming operations, such as downloading network images, videos, songs, books, and other resources • using multithreading for playing audio in games: • giving full play to the advantages of multi-core processors and concurrency (simultaneous execution) execute tasks to make the system run faster and smoother • a running program is a process or a task • A process • when the iOS program starts, while creating a process, it starts to run a thread. This thread is called • The main thread is the final parent thread of other threads, and every process in the system has its own virtual memory space, • When multiple threads compete for the same resource
Advantages and notes of Multithreading
-Give full play to the advantages of multi-core processors, assign different thread tasks to different processors, and truly enter the "" status-assign higher tasks to other threads for execution, the main thread is responsible for updating the interface in a unified manner, which makes the application smoother and the user experience better. When the number of hardware processors increases, the program runs faster, no need to make any adjustments-share-multithreading is to improve the running efficiency, to improve the overall performance of the system by improving resource usage efficiency-the stack size of the main thread in iOS is 1 M-kb from the second thread-these values cannot be switched by the compiler or thread API Function Change
Clear Saup