易截截图软件、单文件、免安装、纯绿色、仅160KB

linux file lock

linux file lock
linux的文件锁分为两种:
一种是advasory lock,只能保证进程内对同一个文件锁的互斥有效,但是多个进程可以同时对一个文件加互斥的锁,所以这种锁是加在file 结构上;一种是mandatory lock,这种锁可以保证多个进程无法对同一个文件都加上互斥锁,所以这种锁是加在inode 结构上的。
当加mandatroy lock时,如果已有进程在文件上加了互斥锁a,那么进程创建的file_lock b结构将会加入到a的等待链表中,此时a叫做blocker,b被称为waiter。由于进程想要的资源(加锁)无法被满足,所以进程要么被阻塞,进程的描述符被加入到 b的等待链表中;要么系统调用直接返回错误。(取决于调用时的flag值)


相关文档:

Linux iptable文档

总览
用iptables -ADC 来指定链的规

,-A添加 -D删除 -C 修改
iptables - [RI] chain rule num rule-specification[option]
用iptables - RI 通过规则的顺序指定
iptables -D chain rule num[option]
删除指定规则
iptables -[LFZ] [chain][option]
用iptables -LFZ 链名 [选项]
iptables -[NX] chain
用 -NX ......

Linux软件安装方法总结

1、软件安装 卸载,分几种情况:
A: RPM包,这种软件包就像windows的EXE安装 文件一样,各种文件已经编译好,并打了包,哪个文件该放到哪个文件夹,都指定好了,安装 非常方便,在图形界面里你只需要双击就能自动安装 。
==如何卸载:
1、打开一个SHELL终端
2、因为Linux 下的软件名都包括版本号,所以卸载前最好先确定 ......

linux下apache+php安装常见问题


configure: error: Unable to find libgd.(a|so)
如果使用的是ubuntu或debian就很简单了,直接sudo apt-get install apache2
libapache2-mod-php5 php5 php5-gd 就基本上搞定,但是用源代码安装还是很麻烦~
wget http://www.boutell.com/gd/http/gd-2.0.11.tar.gz
tar zxvf gd-2.0.11.tar.gz
cd gd-2.0.11
sudo . ......

Linux之命令

1.date :显示日期
%:::z   时区
 
2. cal :显示日历(横排),ncal(竖排)
3. bc :调用计算器
   用/作除法运算时,可先用指令 scale=number(number表示显示的小数点位数) 再做除法运算,使得可以显示小数点后(number)位。(bc默认只显示整数)
   退出计算器: quit
4.[Tab] ......

Why do We Choose Linux?

Linux, named after the inventor, Linus Torvalds, is a so different OS for everyone against Windows. To everyone who used to use Windows, Linux need us to do more for everything which we usually do by computer, such as playing a video.
Someone says, Linux is for the ones who are good at the computer ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号