May 29th Tuesday (五月 二十九日 火曜日)
来源:互联网 发布:java语言和c语言的区别 编辑:程序博客网 时间:2024/04/30 23:39
Summer have come. I almost finished turning a thread into a process. In this case, there are many
problems I can not want before. The mutex lock is the first. Because of the descrepancy between the
mutex of threads and the semphare of processes. I have to bind a semphare to a share memory for convenience.
The second problem is a loop problem. In thread style, the communication between threads is used a global
variables in program. So, in original there are many global variables. The 'g_EndFlag' I must dealed with.
It tell a sub-thread when the logical loop end up. In my process, I have to turn to the signal mechanism.
When initializing the process, I registered a signal handler for SIGINT. So, when pressed Ctrl - C by user,
the signal handler modified the value of the 'g_EndFlag'. And the loop can terminated, the gotten resources,
such as share memory, semphore, etc. can be freed.
- May 29th Tuesday (五月 二十九日 火曜日)
- May 19th Tuesday (五月 十九日 火曜日)
- May 29th Friday (五月 二十九日 金曜日)
- May 22th Tuesday (五月 二十二日 火曜日)
- May 26th Tuesday (五月 二十六日 火曜日)
- May 8th Tuesday (五月 八日 火曜日)
- May 12th Tuesday (五月 十二日 火曜日)
- 2008 April 29th Tuesday (四月 二十九日 火曜日)
- 2008 July 29th Tuesday (七月 二十九日 火曜日)
- May 28th Tuesday (五月 二十八日 木曜日)
- May 15th Tuesday (五月 十五日 火曜日)
- 2008 May 6th Tuesday (五月 六日 火曜日)
- 2008 May 13th Tuesday (五月 十三日 火曜日)
- 2008 May 20th Tuesday (五月 二十日 火曜日)
- May 5th Tuesday (五月 五日 火曜日)
- 2008 May 29 Thrusday (五月 二十九日 木曜日)
- 2008 May 27 Tuesday (五月 二十七日 火曜日)
- June 19th Tuesday (六月 十九日 火曜日)
- 数据库设计中动态列的设计方法
- 技术歧视和势利
- May 28th Monday (五月 二十八日 月曜日)
- 开发计划的内容
- 了解Linux的时钟 (转自:ChinaUnix.net
- May 29th Tuesday (五月 二十九日 火曜日)
- May 30th Wednesday (五月 三十日 水曜日)
- 深入剖析JSP和Servlet对中文的处理
- May 31th Thursday (五月 三十一日 木曜日)
- java常见问题
- 超牛的面试
- 设计美好的服务器II--站在JBoss MicroKernel上
- 在 IBM Lotus Notes 和 Domino 中编写快速查找代码
- 矩阵求逆的快速算法