补充关于内存的一些基础知识,主要是为了理解DPDK,没有涉及太深。
RAM分为SRAM(static random access memory)和DRAM(dynamic random access memory)。
主存DRAM由大至小,由上往下可做以下拆分:channel > DIMM >...
分类:
其他好文 时间:
2014-09-17 01:04:21
阅读次数:
422
Color getRandColor(int fc,int bc){//给定范围获得随机颜色
Random random = new Random();
if(fc>255) fc=255;
if(bc>255) bc=255;
int r=fc+random.nextInt(bc-fc);
int g=fc...
分类:
其他好文 时间:
2014-09-16 23:45:31
阅读次数:
217
打乱了,找线索,拼起来,再背。
import random
s = '''
However, even NRZI can have long series of zeros (or ones if transitioning on "zero"),
and thus clock recovery can be difficult unless some form of run length l...
分类:
其他好文 时间:
2014-09-16 14:19:20
阅读次数:
350
@echo off echo 修改计算机器名... set pcname=WinXP-%random:~-3% echo Windows Registry Editor Version 5.00>ComputerName.reg echo [HKEY_CURRENT_USER\Softwa...
分类:
其他好文 时间:
2014-09-16 14:02:10
阅读次数:
278
--list集合中有一个模型,根据里面某一个字段排序:list = list.OrderByDescending(m => m.CreateTime).ToList();--会产生随机数0-9999 Random random =new Random(); string num = random.N...
分类:
其他好文 时间:
2014-09-16 12:03:30
阅读次数:
150
what to randomize?(1) primary input data 1024; data seedthe same seed results in the same random value(5)constraint blocksconstraint constraint_inden....
分类:
其他好文 时间:
2014-09-16 08:06:30
阅读次数:
707
A Walk Through the Forest
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 5809 Accepted Submission(s): 2147
Problem Description
...
分类:
其他好文 时间:
2014-09-15 22:52:19
阅读次数:
232
生产者消费者问题读者作家问题哲学家吃饭问题生产者消费者问题http://en.wikipedia.org/wiki/Producer%E2%80%93consumer_problem分别用锁、信号量、同步监视器模拟的例子。package thread;import java.util.Random;...
分类:
编程语言 时间:
2014-09-15 22:44:59
阅读次数:
379
sql>descdbms_random: 查询dbms_random包下的存储过程和函数a、 value() 用于返回两个数值之间的随机数, value (low, high)SQL > select dbms_random.value() from dual;默认是从0到1间的数0.0536824...
分类:
数据库 时间:
2014-09-15 21:09:59
阅读次数:
265
题目链接
题意:一张无向图,要你求出走d步之后,每个点无法到达的概率。
思路:记忆化搜索,枚举每个点a,dp[i][j]表示走了i步到达j点的概率(不包括a点),注意初始化清空。
代码:
#include
#include
#include
#include
#include
using namespace std;
const int MAXN = ...
分类:
其他好文 时间:
2014-09-15 15:57:59
阅读次数:
171