码迷,mamicode.com
首页 >  
搜索关键字:per    ( 2089个结果
linux内核数据包转发流程(三)网卡帧接收分析
每个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
编程题:结构体数组的引用。功能:输出结构体数组各元素的成员值
编程题:结构体数组的引用。功能:输出结构体数组各元素的成员值#include<stdio.h>voidmain(){structperson{charname[20];charsex;intage;floatheight;}per[3]={{"LiPing",‘M‘,20,175},{"WangLing",‘F‘,19,162.5},{"ZhaoHui",‘M‘,20,178}};inti;for(i=0;i<3;i++)print..
分类:其他好文   时间:2014-05-20 21:31:06    阅读次数:336
编程题:对结构体变量中成员的引用展示。
编程题:对结构体变量中成员的引用展示。#include<stdio.h>voidmain(){structperson{charname[20];charsex;structdate {intyear; intmonth; intday; }birthday; floatheight;}per;printf("Enterthename:");gets(per.name);per.sex=‘M‘;per.birthday.year=2013;per.birthd..
分类:其他好文   时间:2014-05-20 18:41:16    阅读次数:360
16 道嵌入式C语言面试题
1. 用预处理指令#define 声明一个常数,用以表明 1 年中有多少秒(忽略闰年问题)#define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL我在这想看到几件事情:1). #define 语法的基本知识(例如:不能以分号结束,括号的使用,等等)2). 懂得预...
分类:编程语言   时间:2014-05-17 14:46:32    阅读次数:389
Don’t Assume – Per Session Buffers
MySQL has a number of global buffers, i.e. your SGA. There are also a number of per session/thread buffers that combined with other memory usage const...
分类:其他好文   时间:2014-05-15 07:34:17    阅读次数:307
Cement Plant Project
So far, 100 per cent of workers have voted to strike for 24 hours, 98 per cent voted to strike for 48 hours, and 98 per cent voted to strike for one w...
分类:其他好文   时间:2014-05-13 22:04:48    阅读次数:346
Rotary Cut Birch plywood-B-2, C-2, D-3 per HPVA bjzi
<img title="rotary cut birch plywood-b-2, c-2, d-3 per hpva" alt="rotary cut birch plywood-b-2, c-2, d-3 per hpva" src="http://s4.sinaimg.cn/bmiddle/507a9ec8g70eb46e60533&690" real_src="http://s4.si...
分类:其他好文   时间:2014-05-13 14:04:36    阅读次数:354
Pat(Advanced Level)Practice--1016(Phone Bills)
Pat1016代码 题目描述: A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, depending on the time of day w...
分类:其他好文   时间:2014-05-13 06:45:05    阅读次数:460
Redis的Client设计
Redis的client设计如下: /* With multiplexing we need to take per-clinet state. * Clients are taken in a liked list. */ typedef struct redisClient { int fd; redisDb *db; int dictid; sds que...
分类:其他好文   时间:2014-05-10 03:44:21    阅读次数:292
史上最简单的带流控功能的http server
import time import SimpleHTTPServer import SocketServer BYTES_PER_SECOND=160*1024 class MyHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): """Serve a GET re...
分类:其他好文   时间:2014-05-10 03:36:34    阅读次数:276
2089条   上一页 1 ... 206 207 208 209 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!