每个cpu都有队列来处理接收到的帧,都有其数据结构来处理入口和出口流量,因此,不同cpu之间没有必要使用上锁机制,。此队列数据结构为softnet_data(定义在include/linux/netdevice.h中):
/*
* Incoming packets are placed on per-cpu queues so that
* no locking is needed....
分类:
系统相关 时间:
2014-05-23 07:29:17
阅读次数:
514
http协议中的头信息和正文是采用空行分开,什么是空行呢?简单来说,就是\r\n\r\n。
所以将服务器返回的数据用\r\n\r\n分开后的结果,一个是头信息,一个是正文信息。
C#的代码如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
usi...
分类:
其他好文 时间:
2014-05-22 12:55:02
阅读次数:
300
使用Memcached、Spring AOP构建数据库前端缓存框架,代码下载地址:http://www.zuidaima.com/share/1781569917635584.htm...
分类:
数据库 时间:
2014-05-22 12:35:20
阅读次数:
422
??
A Stack or A Queue?
Time Limit:
1 Second Memory Limit: 32768 KB
Do you know stack and queue? They're both important data structures. A stack is a "first in last out" (FILO) data ...
分类:
其他好文 时间:
2014-05-22 12:24:38
阅读次数:
236
近日做平台新闻接口,数据库用的是Oracle10g,项目使用Spring框架,新闻表内有一字段为BLOB类型,但是在写入时遇到了写入后BLOB字段为空,替换了Spring 的jar包无效,跟bug也没看出什么端倪,最终将目标锁定在oracle.jdbc.OracleDriver 所引用的jar包版本上,因为另一个平台的写入是可以的,经确认是 jar包的版本低导致写入不成功。
之前的jar包...
分类:
数据库 时间:
2014-05-22 10:19:28
阅读次数:
372
【原题】
3198: [Sdoi2013]spring
Time Limit: 40 Sec Memory Limit: 256 MB
Submit: 253 Solved: 95
Description
Input
Output
Sample Input
3 3
1 2 3 4 5 6
1 2 3 0 0 0
...
分类:
编程语言 时间:
2014-05-22 09:50:42
阅读次数:
394
文件配置如下:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:sch...
分类:
编程语言 时间:
2014-05-22 07:38:58
阅读次数:
388
A
123
var a = $(".content")[0].firstChild.data;
function al(){
alert(a);
}
window.onload=al;...
分类:
其他好文 时间:
2014-05-22 07:00:08
阅读次数:
254
QQ群:289150599
什么是AOP
AOP(Aspect-OrientedProgramming,面向方面编程),可以说是OOP(Object-Oriented Programing,面向对象编程)的补充和完善。OOP引入封装、继承和多态性等概念来建立一种对象层次结构,用以模拟公共行为的一个集合。当我们需要为分散的对象引入公共行为的时候,OOP则显得无能为力。也就是说,OOP...
分类:
编程语言 时间:
2014-05-20 16:36:32
阅读次数:
267
SQL SERVER存储过程语法:
Create PROC [ EDURE ] procedure_name [ ; number ]
[ { @parameter data_type }
[ VARYING ] [ = default ] [ OUTPUT ]
] [ ,...n ]
[ WITH
{ RECOMPILE | ENCRYPTION...
分类:
数据库 时间:
2014-05-20 13:51:47
阅读次数:
409