自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

lianliange85的专栏

裸奔者的米兰梦想!

转载 大小堆 排序

 From:Binary Min — Max Heap  and example of heapSort A binary heap is a heap data struc­ture cre­ated using a binary tree. binary tree ha...

2016-11-30 18:44:57

阅读数 365

评论数 0

转载 归并排序

 WIKI definition: Conceptually, a merge sort works as follows: Divide the unsorted list into n sublists, each containing 1 element (a list of ...

2016-11-30 18:35:45

阅读数 282

评论数 0

原创 外部排序

External sorting is required when the data being sorted do not fit into the main memory of a computing device (usually RAM) and instead they must res...

2016-11-30 18:19:40

阅读数 413

评论数 0

转载 Content-Type Header Field

The purpose of the Content-Type field is to describe the data contained in the body fully enough that the receiving user agent can pick an appropr...

2016-11-28 13:33:33

阅读数 317

评论数 0

原创 python 面试( interview )

总结面试中关于python 的问题,包括 python 数据结构,python 第三方库, python 算法,python 性能: 1. 闭包(closure): we have a closure in Python when a nested function refer...

2016-11-25 17:08:24

阅读数 1109

评论数 0

转载 Javascript运行环境异步机制

在C#,Java中,异步方法,通常是伴随多线程,并发等术语一起出现的,比如C#中的async方法,是运行在一个线程池线程上,并且在异步方法运行完成后,有一个回调函数通知主线程。 那么由于Javascript是单线程的,它的异步又是怎么解释的? 首先对异步方法给一个定义,什么样的方法算是异步方法...

2016-11-10 16:44:32

阅读数 383

评论数 0

转载 Http header Etag

From:ETAG 此文详细说明了ETAG的作用。我发现网上很多人都在询问ETAG的对于优化网站的作用,有些人直接建议关闭ETAG。这篇博文可以完整的说明ETAG的作用,是否关闭,或者如何配置,要根据自己网站的情况而定。 开始ETAG测试 首先在浏览器输入以下访问地址 比如我们...

2016-11-05 21:40:22

阅读数 296

评论数 0

原创 Linux memory performance analysis

Memory metrics:  1.Free memory Compared to most other operating systems, the free memory value in Linux should not be a cause for concern.“The Linux...

2016-11-04 15:19:29

阅读数 430

评论数 0

原创 Generate high cpuload on specified cpu core

Purpose : generate CPU load on CPU cores to test server thoughput related to cpu switch. Step: 1. Set affinity mask to include cpu and only cpu pth...

2016-11-03 13:27:51

阅读数 301

评论数 0

转载 hash table and hash algorithm

Good explaination from geeker: Usage and Lingo: Hash tables are used to quickly store and retrieve data (or records).Records are stored in bucket...

2016-11-01 17:23:58

阅读数 189

评论数 0

原创 linux seq 锁实现

seq lock:  2.6版本内核引入 Application: 用于读写共享数据; Benifit: 读者不影响写锁,单一的写者与多个读者并发执行; Implement: 利用序列计数器,写锁获取或释放都会使序列值加1,读取数据前和后检查序列号:      1.值为偶数,则没有写者...

2016-10-18 17:36:45

阅读数 410

评论数 0

转载 threadPool example

Thread Pools are useful when you need to limit the number of threads running in your application at the same time. There is a performance overhead a...

2016-10-12 18:35:40

阅读数 205

评论数 0

转载 WSGI

Answer 1: SCGI (like FastCGI) is a (serialized) protocol suitable for inter-process communication between a web-server and a web-application. W...

2016-10-10 16:13:36

阅读数 219

评论数 0

转载 kernel space and user space

1.What's the difference between kernel stack and user stack ? In short, nothing - apart from using a different location in memory (and hence a di...

2016-10-10 15:59:32

阅读数 259

评论数 0

原创 asynchronous vs non-blocking

linux 同步异步 阻塞 非阻塞

2016-10-10 15:46:01

阅读数 235

评论数 0

转载 Linux schedule introduction

In Linux kernel, the scheduler is invoked by periodic timer interrupt. This is called periodic scheduling which is essential for preempting tasks th...

2016-10-08 15:03:32

阅读数 260

评论数 0

转载 Introduction to the Python Web Server Gateway Interface (WSGI)

In breif  WSGI is a specification, laid out in PEP 333, for a standardized interface between Web servers and Python Web frameworks/applications. ...

2016-09-25 16:04:50

阅读数 220

评论数 0

转载 connect nonblock mode

非阻塞connect(non-block mode connect) 套接字执行I/O操作有阻塞和非阻塞两种模式。在阻塞模式下,在I/O操作完成前,执行操作的函数一直等候而不会立即返回,该函数所在的线程会阻塞在这里。相反,在非阻塞模式下,套接字函数会立即返回,而不管I/O是否完成,该函数所在的线...

2016-09-24 19:09:46

阅读数 515

评论数 0

转载 Non blocking IO web server

Many IO related system calls, like read(2), will block, that is not return, until there is activity.  A socket can be placed in "non-blocking mo...

2016-09-23 17:46:20

阅读数 325

评论数 0

转载 Real time system

The most common designs are: Event-driven – switches tasks only when an event of higher priority needs servicing; called preemptive priority, or...

2016-09-22 18:37:36

阅读数 325

评论数 0

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