java-base's People
Forkers
wuzedong fengxue530 pany1708 taoxinglhq guoxianlong noraevergreen okpiaoxuefeng98 xhy008 cary2017 98d yacongliu zhouxiao96 gaoshangdelu lyy0217 jwx541482 ericlove1314 dfsyke liuxuda scottleef mc-shark kong-to-moon binbingg ychina maxxxxxi nmerkbw primexpy wcc-miss daijunming chinatax newjavaer1 w-yc irlxyan songzz13 18373293303 nculijun fanghuabing dudefu wangzhanh 815236868 qq15890517575 situgmail i3ef0xh4ck zhouxiaohei zzytmbld lan-alan phpyida tcyeee beyondnothing 981nnnn aaa0247 120l011016 dengdaoping workspace-liutaojava-base's Issues
链表的变换是线程不安全吗?
这个方案是不是会由于链表变换是线程不安全的而导致出错?例如LRU:
1. current.prev.next = current.next;
2. current.next.prev = current.prev;
3. moveToTail(current);
如果线程A执行完1, 线程B执行3, 那么当线程A再执行2的时候将直接把节点current之后的部分全部截去😐
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.