cpaulyz / mit6.830 Goto Github PK
View Code? Open in Web Editor NEWMIT6.830 simple-db
MIT6.830 simple-db
同学好,我也是在做mit6.830 的同学,lab 4 里面实现的 读写锁,在BufferPool.getPage() 函数中,使用synchronized 代码块那里是不是有点问题? 想来探讨一下, 因为这里不是要实现一个读写锁么,如果你用synchronized 代码块的话,你实现的读写锁就没有意义了,如果按照你的实现方法就变成了,所有的访问同一个页的 都需要先竞争这个锁,竞争到了 然后才会分读锁和写锁 ,而传统意义的读写锁是 读写竞争,读读不竞争,你看看是不是这样有问题? 还是我没读懂你的代码 还请交流指教 谢谢! 我的邮箱 [email protected]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.