Li Hongqiang The nature and simple execution of IOS-developed applications
What do you call a program ?
is an execution order.
Two states of the program : Save state ( saved to hard disk ) running state ( performed by CPU )
Can the code be executed?
The CPU (the central processing Unit , where the computer calculates and data is processed ) reads the data from the file ,
Decode , and then show
Data needs to be stored in memory ( memory bar )
Register : A storage device that is bound to the CPU , and the same rate as the CPU of the storage device
CPU- 1.9GHZ- 1.9G instruction per second
Register is the equivalent of a CPU ( factory ) belt
Memory ( equivalent to warehouse )
Application on your hard disk , double-click the application . The operating system knows that you double-clicked the application ,
Loads the application from memory, loads it into memory, and then loads it into the Register , executing the
The so-called application is actually a piece of instructions
Executing the application is executing these instructions sequentially
Import the instruction 1.1 point from the hard disk into the CPU
A few caches are designed to relieve the pressure on the register.
Reduction of speed at the first level , expansion of memory at the primary level
Li Hongqiang The nature and simple execution of iOS-developed applications