05 2021 档案
摘要:并发编程-原子性 我们都清楚当多个线程去同时做一件事情的时候,我们需要考虑原子性、可见性、和有序性这几个问题,本章主要说原子性,以下是阐述内容 原子性:主要用原子性问题进行展开讨论 同步锁(synchronize):使用同步锁解决问题 MarkWord对象头:锁的状态存在哪里 synchronize
阅读全文
摘要:并发的起源和价值 本篇从为什么使用高并发,以及高并发带给我们什么好处展开进行阐述,说到高并发就不能不说线程,所以会穿插这一些线程的demo。这里只是进行浅谈,之后会进行深入的讨论,so began. 并发 【高并发】:当前系统能够同时承载的并发数,例如,我们打开一个前端页面,这个前端页面会渲染很多数
阅读全文
摘要:(Template Method Pattern) Define a skeleton that allows subclasses to provide implementations for one or more of the steps. In short, the methods of o
阅读全文
摘要:Delegate Pattern The basic function is the scheduling and distribution of tasks, separating the assignment and execution of tasks。In short, similar to
阅读全文
摘要:Composite Pattern The purpose is to represent individual objects and composite objects with the same interface, so that the client can handle individu
阅读全文
摘要:Flyweight Pattern The Enjoyable Element mode is a manifestation of object pooling. Similar to thread pools, you can avoid creating and destroying mult
阅读全文
摘要:(Bridge Pattern) Bridge mode is also known as bridge mode and interface mode,It is to separate the abstract part from the concrete implementation part
阅读全文

浙公网安备 33010602011771号