Do not use multithreading when developing Linux mobile phones
Source: Internet
Author: User
In the development of Linux mobile phones, do not use multithreading-general Linux technology-Linux programming and kernel information. The following is a detailed description. In Linux mobile phone operating systems, multithreading is generally not recommended. Why?
1. Difficult to debug;
2. It is difficult to synchronize data.
Therefore, a thread is created in a process. Do not create a bunch of threads in the process; otherwise, debugging will be very painful.
However, there are some special programs, such as the initialization process of the phone book. At this time, you need to give the user a progress bar to display the progress, which requires a new thread.
You don't need it if you don't need it. You can't get around it and use multiple threads.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service