This article is a learning record of Vaccine: Java HashMap’s endless loop, welcome to discuss ~
Suppose the state of a cylinder to be expanded is as follows:
1->; 2-> Null
1 for the current thread to insert a new element of an array of e: 1 and the next element next:
when thread 2 completed the expansion, the pointer to the current status to 2 – & gt; 1-> NULL
Thread 1 continues:
rst (e:1,next:2)
n>arrel :1 ->; null
e=next=2;
next=e1.next=1;
> (e:2,next:1)
> 1-> null
e=next=1;
next=e1.next=null;
(e:1,next:null)
new barrel :1 ->; 2-> 1 is just 1 lt; -> 2
e=next=null;
cpu100%
7 using head insert, 1.8 using tail insert for capacity expansion.
1.7 using head insert, 1.8 using tail insert for capacity expansion.
Read More:
- About the reason why the Raspberry Pi raspistill command cannot find the camera
- SQL Server calls Database Mail to send mail error: Msg 229, Level 14, State 5, Procedure sp_send_dbmail, Line 1 EXECUTE
- IBM MQ Reason 2538(MQRC_ HOST_ NOT_ An example of error reason
- Sendmail config error: mail loops back to me (MX problem?) solution
- Spring boot problem 1: error reporting life processing instructions for building a spring boot project
- Why must microservices have gateways?
- Why use thread pools? Remember and understand
- angular.js Error:[$ injector:modulerr ]Why
- Java uses Netease mailbox 163 to send an error message
- Why not manage controller in spring container
- Under Linux, git cannot be used, prompt sign_and_send_pubkey: signing failed: agent refused operation
- How to solve the Mapi error of outbook that can’t send mail directly
- Why interview requires reading the source code
- Python TCP socket programming: send returns broken pipe error?
- error: Some data has already been output, can’t send PDF file
- appear java.lang.NoClassDefFoundError A kind of reason and solution of the mistake
- Why namenode can’t be started and its solution
- [solved] why can’t open the lightning simulator using remote desktop, OpenGL version 1.1.0?
- Why fan error appears in ThinkPad Lenovo IBM notebook