参考链接:
https://www.oschina.net/code/snippet_237505_8646
http://www.cnblogs.com/xilentz/archive/2012/11/13/2767317.html
进程间互斥例子:
http://www.cnblogs.com/my_life/articles/4538299.html (基于文件锁)
基于共享内存的进程间的互斥操作
http://blog.csdn.net/szkbsgy/article/details/50458641