10 2014 档案
摘要:在这之前===说是多年也没有多年,事实上也就两年。。不得不说一句,终于承受不住不稳定之重了。。。个人觉得开始还是从centos开始比较好,比如说现在的我。。之前看过的不知道在哪里的文章,谈论的是ubuntu作为服务器和centos作为服务器的问题。非常好的说明了我身上的问题——具体的文章我已经找不到...
阅读全文
摘要:- Installing Wine 1.5: configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries(转载)- 转自: http://askubuntu.com...
阅读全文
摘要:```cc#include #include #include #include #include #include #include #include #include using namespace std;// 大数,内存处理#define INF 0x3f3f3f3f#define ll l...
阅读全文
摘要:使用scribefire推送blog成功- -不过为什么这个从网页打开的东西让我 一点也开心不起来呢。。。
阅读全文
摘要:https://svtt.sinaapp.com利用JustWriting开源项目搭建的,不过还是有些许问题。但是考虑到自己的blog好处多多,暂且用着——有时间或者乐趣来了,自己再用wordpress搭建一个。谢谢!
阅读全文
摘要:Write with Vim (1)===- 本文出自[Svitter的blog](http://www.cnblogs.com/svitter)- 原文在之前的也曾发表> - 大约在一年前使用vim?这个也是个不确定的时间。具体什么时间使用Vim早已经忘记了。 现在用的还算顺手,但是很多东西其实...
阅读全文
摘要:因为总是打参数例如-fopenmp或者-lGL等等有些麻烦,所以特地写一个可以使用的bash文件用来执行简单的操作首先在`.profile`中添加```bashif [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH"fi```这样使得用户文件夹下的...
阅读全文
摘要:变量`OMP_NESTED`设置使其可以在函数中并行。```cc#include "omp.h"#include #include using namespace std;omp_nest_lock_t lock;void roll(int d){ omp_set_nest_lock(&loc...
阅读全文
摘要:本文出自:http://www.cnblogs.com/svitter转载请注明出处。如果有一个线程必须要同时加锁两次,只能用嵌套型锁函数---|函数名称|描述||:-----|:-----||`void omp_init_nest_lock(omp_nest_lock_t *)`|初始化一个嵌套函...
阅读全文
摘要:本文出自:http://www.cnblogs.com/svitterFAQ===> 因为很多人都不看FAQ,比如像我,所以直接把FAQ写在最前面,然后把正文卸载最后面逼你看- -常用软件下载(官网)---- [diskgenius](http://www.diskgenius.cn/)- [Ult...
阅读全文
摘要:本文出自:[svitter's blog](http://www.cnblogs.com/svitter)```cc#include #include #include using namespace std;int main(){ int p1; p1 = fork(); if(...
阅读全文
摘要:本来今天想要学习一下操作系统的相关内容,奈何书都没带,猛然想起自己还有一个自己动手写操作系统的梦想,于是拿出这本书重新研究以下。对于第一章节的写一个简单的boot写出来以后也是着实兴奋一把,不过也是要记下相关的信息。安装NASM---首先我的操作系统是Ubuntu使用`sudo aptitude i...
阅读全文
摘要:ftp服务器是个好东西啊= ====- 首先需要安装一个软件vsftpd`sudo aptitude install vsftpd`- 如果想要更改匿名登录指向的目录可以使用`sudo dpkg-reconfigure vsftpd`- 修改配置文件/etc/vsftpd.conf`anonymou...
阅读全文
摘要:tags: Linux- 方法 1:在命令行输入:`dpkg -L 软件包名`;- 方法 2:在`/var/cache/apt/archives`找的你安装程序的包,然后用`gdebi-gtk+软件包名`可以查看具体安装在什么位置。
阅读全文
摘要:linux下的同步和互斥===tags: `Linux` `sync_mutex`Semaphore.h---[一份好文档,胜读十年书](www.cplusplus.com/reference/)本文参考了诸多资料,百度百科,cplusplus等首先介绍一个头文件`#include `这里面包含了大...
阅读全文
摘要:仅仅允许4个人同时就餐---```cc#include #include #include #include #include using namespace std;#define THINK(i) printf("ph[%d] is thinking...\n", i)#define EAT(i...
阅读全文
摘要:DEFINE_MUTEX是来自include/linux/mutex.h中的一个宏,用它可以定义一把互斥锁,在Linux内核中,其实是在2005年底才建立比较系统、完善的互斥锁机制,在那年冬天,来自RedHat公司的Ingo Molnar大胆地提出了他所谓的Generic Mutex Subsyst...
阅读全文
摘要:读者优先---```cc#include #include #include using namespace std;mutex mt, wsem;int readcount = 0;#define READ(a) cout #include #include using namespace std...
阅读全文

浙公网安备 33010602011771号