Learn Android Development notes

Source: Internet
Author: User

  Recently focused on several Android project source code, there are a few questions

1: Why Android client game to open n threads, and usually the operation of each thread only i++;

2: Why many lists do not synchronize in game logic and drawing logic;

3: Why some standard variables do not use volatile;

4: Why not use a thread-safe container;

5: Although OpenGL only supports arrays in Java, the list and set can be converted into groups! For the fur Android program or so stick to the array!

6: If Flash is still a single thread, what is Android doing with so many threads? Each drawing thread is 30ms executed once, and then sleep 30ms, why does the logic do not put here, but to be here sleep!

Learn Android Development notes

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.