工程中多个不同类型线程池

As we know that the designing phase is probably the second phase in the software development lifecycle, which comes after the feasibility testing and requirement analysis phase. As the name itself defines that in this phase, the software is designed which reflects how our software must be, what functionalities must it contain, how the user interface should be, etc. But, it is important to know the strategy that the software designers follow while developing any software. In this article, we are going to discuss the same.

众所周知,设计阶段可能是软件开发生命周期中的第二阶段,该阶段在可行性测试和需求分析阶段之后。 顾名思义,在这个阶段,软件的设计反映了我们的软件必须如何,软件必须包含什么功能,用户界面应该如何等等。但是,重要的是要了解软件设计人员的策略开发任何软件时都应遵循。 在本文中,我们将对此进行讨论。

In general, there are two types of designing strategies that are mainly followed in the designing phase of any software during its development:

通常,在开发任何软件的设计阶段,主要遵循两种设计策略:

  1. Function- oriented design

    面向功能的设计

  2. Object- oriented design

    面向对象的设计

Now, let us define each of them in brief and understand the strategies behind each of them:

现在,让我们简要地定义它们中的每一个,并了解它们背​​后的策略:

1)面向功能的设计 (1) Function- oriented design)

In the function-oriented design, the system is designed according to the functionality it offers. The system is first widely observed and then each of its functions is observed to identify the sub-functions that it consists of that are responsible for performing that particular functionality.

在面向功能的设计中,系统是根据其提供的功能进行设计的。 首先对系统进行广泛观察,然后观察其每个功能,以识别组成该系统负责执行特定功能的子功能。

In this type of design, there is a centralized function that consists of various functions. The software is designed in the same manner.

在这种类型的设计中,存在由各种功能组成的集中功能。 该软件的设计方式相同。

For example, consider software for the calculator. Its main function is to calculate various operations and print the result. Now, the sub functionalities that it offers are the operations modulus, logarithm, square, exponent, etc. Now all these functions further consist of the fundamental operations like addition, subtraction, etc. Like multiplication is the result of repeated addition, etc.

例如,考虑计算器的软件。 其主要功能是计算各种操作并打印结果。 现在,它提供的子功能是运算模数,对数,平方,指数等。现在所有这些功能进一步由基本运算组成,例如加法,减法等。就像乘法是重复加法的结果等。

In the same way in software, an element may further sub-elements for performing its inner functions and it may also act as a sub-element for some other module. However together they are responsible for providing the functionality that the entire software claims to offer.

以软件中的相同方式,一个元素可以进一步包含用于执行其内部功能的子元素,并且还可以充当某些其他模块的子元素。 但是,它们共同负责提供整个软件声称提供的功能。

2)面向对象设计 (2) Object- oriented design)

In the object-oriented design approach to design any software, everything is considered as an object. Now, every object performs some activities and possess some behavior. This is defined through classes because all the objects that belong to the same class will exhibit a similar kind of behavior and will also perform similar functionalities. However, every object will be different from the other object in some manner. Now, this is determined at the time of object creation when the object is initialized with some values which provide the object its unique behavior.

在设计任何软件的面向对象设计方法中,一切都被视为对象。 现在,每个对象都执行一些活动并具有某些行为。 这是通过类定义的,因为属于同一类的所有对象都将表现出相似的行为,并且还将执行相似的功能。 但是,每个对象在某种程度上都会与另一个对象不同。 现在,这是在对象创建时确定的,该对象是使用一些为其提供其独特行为的值初始化的。

The object-oriented design approach is termed better than the function-oriented design approach as in the object-oriented approach, the real-world entities can easily be implemented in the computer world. Also, some very basic object behaviors such as polymorphism, inheritance, abstraction, and encapsulation are implementable through this approach.

面向对象的设计方法比面向功能的设计方法更好,因为在面向对象的方法中,现实世界的实体可以轻松地在计算机世界中实现。 而且,一些非常基本的对象行为,例如多态性,继承,抽象和封装,都可以通过此方法实现。

翻译自: https://www.includehelp.com/basics/different-types-of-design-strategies-in-software-engineering.aspx

工程中多个不同类型线程池

工程中多个不同类型线程池_软件工程中不同类型的设计策略相关推荐

  1. Android中常见的4种线程池的理解(转)

    转:https://blog.csdn.net/l540675759/article/details/62230562 转:https://blog.csdn.net/seu_calvin/artic ...

  2. tomcat中conf/server.xml配置线程池不生效的问题注意添加线程池节点executor后要在connector中增加executor属性

    优化连接数,主要是在conf/server.xml配置文件中进行修改. 优化线程数 找到Connector port="8080" protocol="HTTP/1.1& ...

  3. 关于线程池运行过程中,业务逻辑出现未知异常导致线程中断问题反思

    最近在项目研发中的关于线程池应用过程中由于业务逻辑异常导致的线程中断,但程序未中断导致的脏数据问题  话不多说,在最近最新的一个版本发布过程中,业务需要,我们要定期去给客户预留出可用的资源数据,提供客 ...

  4. 基于Java线程池读取数据库中数据(学习+运用)

    基于Java线程池读取数据库中数据(学习+运用) 以下是学习内容 Main.java import java.util.concurrent.ArrayBlockingQueue; import ja ...

  5. 面试官系统精讲Java源码及大厂真题 - 40 打动面试官:线程池流程编排中的运用实战

    40 打动面试官:线程池流程编排中的运用实战 没有智慧的头脑,就像没有蜡烛的灯笼. --托尔斯泰 引导语 在线程池的面试中,面试官除了喜欢问 ThreadPoolExecutor 的底层源码外,还喜欢 ...

  6. spring线程池 java_Java 中几种常用的线程池

    概述: 在java内置API中操作线程所用到的类为Thread.创建线程一般有两种方式, 继承Thread方式 实现Runnable方式,并以runnable作为target创建Thread 在And ...

  7. Java中常用的四种线程池

    在Java中使用线程池,可以用ThreadPoolExecutor的构造函数直接创建出线程池实例,在Executors类中,为我们提供了常用线程池的创建方法. ​ 接下来我们就来了解常用的四种: ne ...

  8. 后端开发【一大波有用知识】Redis中的IO多线程(线程池)

    一.Redis中的IO多线程原理 ​服务端收到一条信息,给它deconde成一条命令 然后根据命令获得一个结果(reply) 然后将结果encode后,发送回去 redis的单线程是指,命令执行(lo ...

  9. 浅析Nginx中各种锁实现丨Nginx中手写一个线程池丨Nginx中反向代理,正向代理,负载均衡,静态web服务丨C++后端开发

    学会nginx中锁的使用,让你对锁豁然开朗 1. 反向代理,正向代理,负载均衡,静态web服务 2. nginx 中 accept 锁实现 自旋锁 信号量 3. nginx 中 线程池 实现以及详解虚 ...

最新文章

  1. 图书管理系统 java 源码_[源码和文档分享]基于C语言和SQL SERVER数据库实现的图书管理系统...
  2. C#设计模式系列:装饰模式(Decorator)
  3. python 获取路径
  4. mysql权限查看_教您如何查看MySQL用户权限
  5. 诺基亚s40机破权相关说明
  6. 整数解(韦达定理解法)
  7. Stibo Systems(思迪博) 荣获数据质量卓越实践奖并获得CSTC权威鉴定
  8. 【老九学堂】【C++】位运算符
  9. 盐城北大青鸟东台基地开展春季游学活动
  10. 计算机小游戏有哪些,为你解答电脑小游戏有哪些
  11. it小鲜肉c语言编程,小鲜肉修炼手册信院篇100.doc
  12. Android自定义定时闹钟开发详解
  13. linux网卡驱动离线安装_Linux网卡驱动的安装方式
  14. 新库上线 | CnOpenData农业工商注册企业数量统计数据
  15. 【Python】shuffle()方法
  16. WLAN配置三层直连直接转发
  17. 益和VA 接入方案提升某制药业务效率
  18. zzuli 2127 tmk射气球
  19. LaTeX中处理参考文献的三种方法总结
  20. [济南考勤机专题]考勤机类型(四)人脸识别考勤机

热门文章

  1. android 点击侧滑代码,代码分析Android实现侧滑菜单
  2. 【Java从入门到头秃专栏 】(一)学在Java语法之前
  3. 教你精确编写高质量高性能的MySQL语法
  4. Rxjs的flatMap使用
  5. js常用的2中排序方法:冒泡排序和快速排序
  6. maven安装及集成myeclipse
  7. Spring注释事务失效及解决办法
  8. RDIFramework.NET — 系列目录 — 基于.NET的快速信息化系统开发框架
  9. linux6.0 SVN 服务搭建
  10. Cookies和Session(二)