搜索资源列表
portscan
- 端口扫描程序,输入一个特点IP和起始端口号,终止端口号,进行扫描,如果端口打开,使用函数getservbyport获取服务名,在屏幕上打印:IP port servername,如果是未知的服务,则在屏幕上显示:IP port unkown.-Port scanner, enter a starting port number and IP feature, the ending port number, scanning, if the port is open, use the functi
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
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
