-
Passage? Well, I've changed careers. It's encapsulated.
-
1.Briefly describe the differences and connections between processes and threads.
2.What problems can I cause with multi-process within my app?
When an app has multi-process enabled, the system allocates different memory space for different processes, so all behaviors that require memory sharing will fail. In addition, it can lead to the following problems:
3.What are the inter-process communication methods in Android?
Because different processes have different data spaces, there is no way to communicate between processes through shared memory, either within an application or between applications.
Main Differences Between Process and Thread Elimination (Summary) -csdn
What is the difference between a thread and a process? - Zhihu.
Android multi-process Tongshenqiao grinding letter of several basic problems.
Interview Question: IPC (Inter-Process Communication).
-
Use the handler to send a message, and the message queue is queued.
A process is a single run of a program with independent functionality about a collection of data. It can apply for and own system resources, is a dynamic concept, and is an active entity. It is not just the program's **, but also the current activity, represented by the value of the program counter and the contents of the processing register.
A process is a "program in progress". A program is an inanimate entity, and it can only become an active entity when the processor gives life to the program, which we call a process.
Typically, a process can contain several threads that can take advantage of the resources that the process has. In the operating system where threads are introduced, the process is usually regarded as the basic unit for allocating resources, and the thread as the basic unit for independent operation and scheduling. Since threads are smaller than processes and basically do not own system resources, the overhead of scheduling them will be much smaller, and the degree of concurrent execution between multiple programs in the system can be increased more efficiently.
The difference between threads and processes is that child processes and parent processes have different data spaces, whereas multiple threads share data spaces, and each thread has its own execution stack and program counters for its execution context. Multi-threading is mainly to save CPU time and make use of it, depending on the specific situation. Threads need to use your computer's memory resources and CPU to run.
-
If there is a message loop between threads, the message handler mechanism is generally used; Inter-process communication is generally carried out in AIDR mode.
-
There are 4 ways to communicate across processes in the Android SDK.
These 4 ways correspond exactly to the 4 application components in the Android system:
activity, content provider, broadcast, and service.
First: Pipeline communication.
When two processes communicate through a pipeline, the process that sends the information is called the write process; The process that receives the information is called the read process. The intermediate medium of the pipeline communication mode is the file, which is usually called the pipe file, which connects a write process and a read process together like a pipe to achieve communication between the two processes. The write process writes information to the pipeline file through the write end; The read process reads information from the pipeline file through the readout. >>>More
Inter-process mutex: One or more program segments in a group of concurrent processes must be executed in a unit that does not allow cross-execution because they share a common resource, that is, two or more concurrent processes that share the resource are not allowed to enter the critical zone at the same time. >>>More
A harmful process is a process that causes harm to the system.
I heard that the Internet access is fast and requires the configuration of the machine. Symbian software is also a lot of standby can also be, although WP is smooth, but it seems that normal use will be more than Symbian cost traffic. .In fact, WP7 only consumes traffic. And because of the machine.
Yes Intel graphics card configuration and diagnostics.
is a third-party web browser. >>>More