【0】概述 const是constant 的缩写,是C语言的关键字之一,是一个类型修饰符(type specifier)。const是恒定不变的意思也翻译为常量、常数等。很不幸,正是因为这一点,很多人都认为被 const 修饰的值是常量。这是不精确的,精确的说应该是只读的变量,其值在编译时不能被使用 ...
分类:
其他好文 时间:
2016-05-08 19:57:11
阅读次数:
225
固定管线中: 1.为设备创建一个顶点和索引缓存 HRESULT IDirect3DDevice9::CreateVertexBuffer( UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool IDirect3DVertexBuffer9** ppVer ...
分类:
其他好文 时间:
2016-05-08 16:42:43
阅读次数:
226
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- Remov ...
分类:
其他好文 时间:
2016-05-08 11:56:00
阅读次数:
222
Spring的DAO模块提供了对JDBC、Hibernate、JDO等DAO层支持。 DAO模块依赖 commons-pool.jar、commons-collections.jar package com.dao; import java.util.ArrayList; import java.u ...
分类:
编程语言 时间:
2016-05-07 22:15:36
阅读次数:
175
一. SQL Server 什么时候和磁盘打交道: 1. SQL 需要访问的数据没有在Buffer pool中,第一次访问时需要将数据所在的页面从数据文件中读取到内存中。(只读) 2. 在insert/update/delete提交之前, 需要将日志记录缓存区写入到磁盘的日志文件中。(写) 3. C ...
分类:
数据库 时间:
2016-05-06 19:10:52
阅读次数:
245
1.分布式部署的情况下实现session共享。下面是我测试环境及配置。 2.Redis 版本 3.0.6 tomcat版本为:7.0 jdk版本:1.7 3.所需要的jar包及版本 commons-pool-1.3.jar jedis-2.0.0.jar tomcat-redis-session-m ...
分类:
其他好文 时间:
2016-05-04 21:06:38
阅读次数:
139
以下的代码模拟了一个生产与消费的场景,一个票池,生产者不停的往里面放数据,消费则不停的取数据.票池classPool{privateList<Integer>pool=newArrayList<Integer>();//添加元素publicvoidadd(inti){pool.add(newInteger(i));}//剪切元素publicIntegercut(){if(!this..
分类:
其他好文 时间:
2016-05-04 19:19:12
阅读次数:
200
CentOS6如何让安装配置pdo支持MySQL? 项目运行提示:Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' 网络上类似的问题: 提示无法选择MySQL,查询后说是需要pdo的支持。 然后yum install php-pdo,然后在php. ...
分类:
数据库 时间:
2016-05-04 18:41:51
阅读次数:
1918
innodb_file_per_table独立表空间innodb_buffer_pool_instances缓存池数量innodb_buffer_pool_size缓存池总大小innodb_max_dirty_pages_pct脏页的最大比例innodb_io_capacity磁盘系统的IO能力innodb_doublewriteInnoDB的双写innodb_flush_log_at_trx_commit1是最安全,0是最快..
分类:
数据库 时间:
2016-05-03 16:19:16
阅读次数:
214