查看会员资料
- Email:用户隐藏
- Icq/MSN:qq
- 电话号码:
- Homepage:
- 会员简介:这家伙很懒,什么都没留下!
最新会员发布资源
0.c.tar
- 经典的线程例子,使用 pthread 线程库创建两个线程,两个线程都要访问共享变量counter,按照源程序的逻辑,两个线程各循环 5 次,每次循环对 counter 变量加 1,最后打印的结果应该是 10。但是因为线程的特性,两个线程同步执行,所以结果是6,这是很有意思的事情。-The classic example of a thread, the thread using pthread library to create two threads, two threads must acc