05 2021 档案

摘要:并发编程-原子性 我们都清楚当多个线程去同时做一件事情的时候,我们需要考虑原子性、可见性、和有序性这几个问题,本章主要说原子性,以下是阐述内容 原子性:主要用原子性问题进行展开讨论 同步锁(synchronize):使用同步锁解决问题 MarkWord对象头:锁的状态存在哪里 synchronize 阅读全文
posted @ 2021-05-24 13:34 UpGx 阅读(363) 评论(0) 推荐(0)
摘要:并发的起源和价值 本篇从为什么使用高并发,以及高并发带给我们什么好处展开进行阐述,说到高并发就不能不说线程,所以会穿插这一些线程的demo。这里只是进行浅谈,之后会进行深入的讨论,so began. 并发 【高并发】:当前系统能够同时承载的并发数,例如,我们打开一个前端页面,这个前端页面会渲染很多数 阅读全文
posted @ 2021-05-19 20:56 UpGx 阅读(201) 评论(1) 推荐(1)
摘要:(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 阅读全文
posted @ 2021-05-14 13:06 UpGx 阅读(86) 评论(0) 推荐(0)
摘要:Delegate Pattern The basic function is the scheduling and distribution of tasks, separating the assignment and execution of tasks。In short, similar to 阅读全文
posted @ 2021-05-08 11:32 UpGx 阅读(205) 评论(0) 推荐(0)
摘要:Composite Pattern The purpose is to represent individual objects and composite objects with the same interface, so that the client can handle individu 阅读全文
posted @ 2021-05-06 14:01 UpGx 阅读(81) 评论(0) 推荐(0)
摘要:Flyweight Pattern The Enjoyable Element mode is a manifestation of object pooling. Similar to thread pools, you can avoid creating and destroying mult 阅读全文
posted @ 2021-05-05 22:57 UpGx 阅读(93) 评论(0) 推荐(0)
摘要:(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 阅读全文
posted @ 2021-05-01 22:28 UpGx 阅读(350) 评论(0) 推荐(0)