12.20 编写程序,逐行读入一个输入文件,将内容存入一个StrBlob中,用一个StrBlobPtr打印出StrBlob的每个元素。StrBlob.h#ifndef STRBLOB_H#define STRBLOB_H#include#include#include#includeusing na...
分类:
其他好文 时间:
2014-08-19 22:06:45
阅读次数:
277
A technique for implementing read-copy update in a shared-memory computing system having two or more processors operatively coupled to a shared memory...
分类:
其他好文 时间:
2014-08-19 18:38:25
阅读次数:
263
因为在程序中需要输入中文,但是系统没有预装中文输入法,所以就安装一下,顺便记录1.用root登录 ,或su root2.yum install "@Chinese Support"3.exit4.回到桌面,system->preferences->input method5.如果没有,先注销一下。6...
分类:
其他好文 时间:
2014-08-19 10:33:03
阅读次数:
205
隐藏了具体实现。放在views/shared/_layout.cshtm 即为所有其他页面的父模板(template / masterpage)页面继承(inherit/extend):页面继承通过@Html.RenderBody()/@Html.RenderSection('your_sec')。...
分类:
Web程序 时间:
2014-08-19 10:32:23
阅读次数:
238
./emulator: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory你用的是64位的系统吧?应该是缺少 lib32stdc...
分类:
移动开发 时间:
2014-08-19 07:07:23
阅读次数:
296
dbca建库后sqlplus提示如下$ sqlplus / as sysdbasqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: c...
分类:
数据库 时间:
2014-08-17 23:59:02
阅读次数:
763
以前想实现添加代码作者信息的东西,但不知道怎样实现,今天终于在网上无意中找到解决办法了
Eclipse自动生成作者、日期注释等功能设置
在使用Eclipse 编写Java代码时,自动生成的注释信息都是按照预先设置好的格式生成的。
修改作者、日期注释格式:打开Windows->Preferences->Java->Code Style->Code Templates...
分类:
系统相关 时间:
2014-08-17 22:48:42
阅读次数:
375
多线程的环境里,我们总不可避免要使用锁。于是一个常见的场景就是: 1 class ObjectWithLock 2 { 3 private: 4 std::mutex mtx_; 5 SomeResType shared_res_; 6 7 public: 8 // Construct...
分类:
编程语言 时间:
2014-08-17 13:01:02
阅读次数:
236
1,在基类ApplicationController里面定义 模板页Layout需要使用的ViewModel【实际逻辑已经实现,这里不显示代码】直接上图2,在Views-->Shared 文件夹右键 新建 部分试图 命名为 _TopMenuVModel在顶部 引入 模型下面 写入 你的对应 页面 ....
分类:
Web程序 时间:
2014-08-15 22:24:19
阅读次数:
314
hadoop yarn里用了RPC调用。NM里面文件本地化类ContainerLocalizer用RPC心跳方式跟本机的ResourceLocalizationService通信。用shared memory还要调到native层去,不知道会不会比tcp/ip快?可以用文件,考虑锁的问题。但是文件貌...
分类:
其他好文 时间:
2014-08-15 22:22:39
阅读次数:
220