自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(2)
  • 资源 (1)
  • 收藏
  • 关注

原创 跟踪源码剖析netty中的线程管理

学习netty,一项不可绕过的知识点就是其线程模型。我们知道一个EventLoop包含一个线程,EventLoopGroup管理一组线程。本文基于netty4.1.26探访何时创建、如何管理这些线程。本文以io.netty.channel.nio包下的NioEventLoopGroup类为源头,跟踪代码,忽略与线程无关的逻辑和参数。Let's go! 首先,我们调用new NioEventLoo...

2018-12-05 15:29:18 167

原创 今日头条机试题

描述:具体的文字已经没法还原,大概意思是:二维坐标里有N个点,从任意一点出发,只能向上向下向左向右四个方向走,碰到其他点才可以改变方向,请问至少要补充多少点可以跑遍所有点。 分析:图的遍历!!当时机试时没想到,脑子短路了!直接上代码!     package shangjiceshi.jinritoutiao; import java.util.*; //9:35起做题, 10:40...

2018-01-28 11:57:31 500

c和指针课后题答案(完整版)

经典书籍 Contents Chapter 1 A Quick Start ........................................................................................................ 1 Chapter 2 Basic Concepts ...................................................................................................... 7 Chapter 3 Data ....................................................................................................................... 11 Chapter 4 Statements ............................................................................................................. 15 Chapter 5 Operators and Expressions .................................................................................... 23 Chapter 6 Pointers .................................................................................................................. 29 Chapter 7 Functions ............................................................................................................... 37 Chapter 8 Arrays .................................................................................................................... 43 Chapter 9 Strings, Characters, and Bytes .............................................................................. 55 Chapter 10 Structures and Unions ........................................................................................... 69 Chapter 11 Dynamic Memory Allocation ................................................................................ 75 Chapter 12 Using Structures and Pointers ............................................................................... 79 Chapter 13 Advanced Pointer Topics ...................................................................................... 87 Chapter 14 The Preprocessor ................................................................................................... 93 Chapter 15 Input/Output Functions .......................................................................................... 95 Chapter 16 Standard Library .................................................................................................... 119 Chapter 17 Classic Abstract Data Types ................................................................................. 129 Chapter 18 Runtime Environment ........................................................................................... 145

2014-10-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除