AFramework

框架和库有什么区别? [关闭]

大城市里の小女人 提交于 2020-04-21 04:47:17
问题: What is the difference between a framework and a library ? 框架 和 库有 什么区别? I always thought of a library as a set of objects and functions that focuses on solving a particular problem or a specific area of application development (ie database access); 我一直认为库是一组对象和函数,专注于解决特定问题或应用程序开发的特定领域(即数据库访问); and a framework on the other hand as a collection of libraries centered on a particular methodology (ie MVC) and which covers all areas of application development. 另一方面,框架是一个以特定方法(即MVC)为中心的图书馆集合,涵盖了应用程序开发的所有领域。 解决方案: 参考一: https://stackoom.com/question/ch9/框架和库有什么区别-关闭 参考二: https://oldbug.net/q/ch9

Flink从入门到精通(一)

我只是一个虾纸丫 提交于 2020-04-09 19:05:26
1. 什么是Flink? 官网的定义如下: Apache Flink is a framework and distributed processing engine for stateful computations over unbounded and bounded data streams. Flink has been designed to run in all common cluster environments , perform computations at in-memory speed and at any scale. 从官网的定义我们可以看出 1. 首先,它是一个分布式处理引擎和框架 2. 其次,它进行有状态的计算,针对有界和无界的数据流式计算 这里有几点我想详细解释一下: 2-1) 什么叫有界和无界数据? 有界数据集:有限不会改变的数据集合 无界数据(无穷数据集): 无穷的持续集成的数据集合 那么那些常见的无穷数据集有哪些呢? 用户与客户端的实时交互数据(用户行为) 应用实时产生的日志 金融市场的实时交易记录 2-2) 什么是流式计算? 说到流式计算我们就不得不提一下批处理计算,因为它们是不同的东西。 批处理:在预先定义的时间内运行计算,当完成时释放计算机资源 流式:只要数据一直在产生,计算就持续地进行 3.

AQS (AbstractQueuedSynchronizer)源码导读:锁的获得与释放

早过忘川 提交于 2020-02-27 18:57:50
AQS是什么? AbstractQueuedSynchronizer简称AQS是一个抽象同步框架,可以用来实现一个依赖状态的同步器。 Provides a framework for implementing blocking locks and related synchronizers (semaphores, events, etc) that rely on first-in-first-out (FIFO) wait queues. This class is designed to be a useful basis for most kinds of synchronizers that rely on a single atomic int value to represent state. 提供一个框架,用于实现依赖先进先出(FIFO)等待队列的阻塞锁和相关同步器(信号量,事件等)。该类被设计为大多数类型的同步器的有用依据,这些同步器依赖于单个原子int值来表示状态。 This class supports either or both a default exclusive mode and a shared mode. 此类支持默认独占模式和共享模式。 Even though this class is based on an internal FIFO