I am ready to talk about the interview experience going to the interview
Asked hashmap source;
the database underlying data structures and optimization;
Distributed transaction implementation;
AQS and Cas;
(?? AQS asked what shared lock exclusive lock to achieve locksupport ask you clh queue have asked what it cas asked what mechanisms to achieve??)
To Q. principle; ABA problem; just cas aba will ask; the version number ah;
I ask you a question! Large amounts of data to update the database a field what's the problem? Update a table or index this field;
reminded, affairs happen? What will affect the accumulation of transaction? What database will be reported abnormal? This field is indexed is reasonable?
The structure of a large number of updated data index, the index is created, overhead, this field is not fit index; update as much as possible with the main building; (the index set conditions are: a lot of places to use, and very few modifications)