Mi Mian Jing

Article Directory

Xiaomi has been waiting for the longest time. There is no news yet. Although I have passed the interviews, I am very sad to see most of the graduate students in the mobile phone department.

Xiaomi side

Millet one side 37min

Self-introduction
hashmap know? Have seen the source code!
What method does the key in the hashmap need to implement, what
should be paid attention to?
Is hashmap safe?
How to deal with it?
Have you learned about thread pools? Tell me a
few parameters, how are
threads destroyed when they are idle ? Estimated thread pool? Why is this
springMVC process? How do you design an MVC by yourself?
Cookie and session are too simple to ask you the difference! Can the session still be used if cookies are disabled?
mysql transaction? How does RR realize the repeatable read
database index B+tree
? Is there any solution for index optimization?
What fields does explain have and what do they represent? Is it practiced in the project or used casually.
Did you estimate the amount of data at that time?
Did epoll understand?
What was the previous IO? What has been solved by joining epoll?
What is the most impressive solution to the technical problem?
What are your expectations for the new job?
What are the difficult non-technical problems encountered?
How do you usually learn?
Do you have anything to ask me?

Xiaomi two sides

Two sides of millet (1h)

Self-introduction
Project introduction
Pick one of the difficult points in the project and tell
me about it. I talked about the optimization process of the mall homepage
and then started to ask me about redis.

mysql+redis data consistency
and then give me the scene question.
In fact, it is the problem of cache avalanche, cache breakdown, cache penetration and the solution.
Why can set nx guarantee atomicity? The
last question is:
I set one for a key in redis The expiration time is 1 minute. Does this key-value pair really exist within this minute?

After I answered, let me design an LRU, instead of borrowing the existing LinkedHashMap, try to implement one by myself, and ensure that the time complexity of search is O(1).
Finally realized it, and then talked about ideas.

Rhetorical link The
interviewer gave me the evaluation or suggestion: the basics are OK, look at the source code more

Guess you like

Origin blog.csdn.net/MarkusZhang/article/details/109220649