自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

theArcticOcean

博观而约取,厚积而薄发

  • 博客(5)
  • 收藏
  • 关注

原创 【github myLocker】select监听多个fd,互斥锁保护终端交互

select监听多个fdselect用于多个fd的管理,检测哪个fd可读、可写,如果可读则接收消息(读),如果可写则输出消息(写)。 相关的函数:int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);void FD_CLR(int f

2017-08-26 22:05:59 1579

原创 【github myLocker】线程切换调试,读写指针修改文件,socket 阻塞设置

线程切换调试gdb查看帮助:help(gdb) help List of classes of commands:aliases -- Aliases of other commands breakpoints -- Making program stop at certain points data -- Examining data files -- Specifying and examini

2017-08-26 21:51:51 622

原创 【github myLocker】线程返回值,重复引用头文件,二进制文件I/O

线程返回值子线程使用pthread_exit()向调用线程返回数值,函数原型:void pthread_exit(void *retval); 调用线程使用函数pthread_join()的第二个参数void **接收返回值。函数原型:int pthread_join(pthread_t thread, void **retval); 例子: main中创建一个线程pthTextCode,在新

2017-08-13 22:37:53 664

原创 【linux shell】grep 常用选项

color选项增加颜色渲染使用拓展正则表达式如果要使用正则表达式,需要添加-E选项——这意味着使用扩展(extended)正则表达式。或者也可以使用默认允许正则表达式的grep命令——egrep。例如: $ grep -E "[a-z]+" filename #或者 $ egrep "[a-z]+" filename仅输出匹配结果使用 -o[root@CentOS ~]# grep word r

2017-08-09 23:08:39 1736

原创 【linux shell】 find 常用选项

find path -name “通配符”通配符搜索find path -iname file忽略大小写搜索find path ( -name “通配符1” -o “通配符2” )-o表示或者,匹配其中任意一个正则表达式[edemon@CentOS tmpDir]$ ls d1 d2 d3 f1 f2 f3 [edemon@CentOS tmpDir]$ find . \( -name "

2017-08-08 07:33:34 601

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除