搜索资源列表
Count
- 利用Object—C语言编写一个计数程序!-Using Object-C language to write a counter program!
1.tar
- 经典的互斥锁线程例子,使用 pthread 的互斥锁机制,使得程序运行的结果正确,使用 pthread 线程库创建两个线程,两个线程都要访问共享变量counter,按照源程序的逻辑,两个线程各循环 5 次,每次循环对 counter 变量加 1,最后打印的结果是 10。-The classic example of mutex thread using pthread mutex lock mechanism, so that the results of the program is runn
sample4
- A sample program demonstrating using Google C++ testing framework.Returns the current counter value, and increments it.