- 博客(6)
- 资源 (6)
- 收藏
- 关注
转载 常用地道口语
Look 你听我说Look, I’m really sorry I woke you, I just wanted to tell you I was all right.听我说,我真抱歉吵醒你,我只是想告诉你我一切都好。Like I said 就像我刚才说的Like I said before, I see failure as a stepping stone to success.就像我之前
2017-03-13 10:59:22 543
转载 Linux共享内存使用中的问题
所谓共享内存就是使得多个进程可以访问同一块内存空间,是最快的可用IPC形式。是针对其他通信机制运行效率较低而设计的。往往与其它通信机制,如信号量结合使用,来达到进程间的同步及互斥。其他进程能把同一段共享内存段“连接到”他们自己的地址空间里去。所有进程都能访问共享内存中的地址。如果一个进程向这段共享内存写了数据,所做的改动会即时被有访问同一段共享内存的其他进程看到。共享内存的使用大大降低了在大规模数据
2017-03-10 17:23:48 982
原创 share memory - Linux IPC
一、共享内存介绍:二、共享内存使用方法: 两个程序如何使用同一块共享内存? 1.两个程序的shmget()函数传入相同的第一个参数key即可。2.两个程序通过shmat()把同一块共享内存连接到各自当前进程的地址空间上。shmat()的第一个参数shm_id是由shmget()函数返回的共享内存标识。使用实例一:使用实例二: 首先使用shmget()建立一块共享内存, 同时向该内存中写入数据并
2017-03-10 16:09:30 1221
原创 indent command - format code under Linux
在Windows下使用Source Insight 编写完代码后,将代码上传到Linux机器上,首先需要去掉’^M’:然后再使用indent命令格式化代码: indent -npro -nip -nlp -npsl -i4 -ts4 -sob -l200 -ss -bl -bli 0 source_file.c
2017-03-09 11:38:45 524
转载 英语字母什么时候不发音?
1.b出现在词尾,在字母m之后。bomb 炸弹climb 攀登comb 梳子crumb 面包屑dumb 哑的lamb 羔羊limb 枝干plumb 垂直thumb 拇指tomb 坟墓2.c出现在字母s或者x之后。adolescence 青春期ascend 登高disciple 门徒excellence 优秀excess 超过excite 使…兴奋fascinate 使着迷scissors 剪刀3
2017-03-07 09:23:54 1861
原创 gcc - Options Controlling the Kind of Output
gcc hello.c该命令将hello.c直接生成最终二进制可执行程序a.out这条命令隐含执行了(1)预处理、(2)汇编、(3)编译、(4)链接形成最终的二进制可执行程序。未指定输出文件名时,默认输出为a.out。从上面我们知道GCC编译源代码生成最终可执行的二进制程序,GCC后台隐含执行了四个阶段步骤。GCC编译C源码有四个步骤:预处理—–> 编译 —-> 汇编 —-> 链接现在我们就用GCC
2017-03-03 11:47:53 476
The Linux Kernel API
2015-03-24
Linux Kernel Procfs Guide
2015-03-24
基于Linux驱动程序的编写技术
2010-04-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人