Description: Linux系统下的多线程遵循POSIX线程接口,称为pthread。编写Linux下的多线程程序,需要使用头文件pthread.h,连接时需要使用库libpthread.a。-Linux systems adhere to POSIX thread-multi-threaded interface, known as the pthread. Prepared under the Linux multi-threaded process, need to use the header file pthread.h, connections need to use the library libpthread.a. Platform: |
Size: 16384 |
Author:dj |
Hits:
Description: 一个模拟图书经营系统的程序,在linux的gcc环境下编译的,利用了多线程的pthread.h函数,希望对大家在linux下编写程序有所借鉴!-Book a simulated operating system procedures, in the linux environment the gcc compiler, the use of multi-threaded pthread.h function, in the hope that everyone in the preparation of procedures under linux reference! Platform: |
Size: 31744 |
Author:尹凯旋 |
Hits:
Description: qq2008贺岁版协议控制台客户端,同时支持linux和win32版。本人修正其一处错误,确保在mingw平台下编译通过。linux下我没试~~编译需设置pthread库(包中已有)最简单的办法是把.a库直接扔到mingw的lib目录下.h文件到include目录
可以实现登录 退出 聊天 群聊 等功能
-Hesuiban agreement qq2008 console client, while supporting linux and win32 versions. The first error I amended to ensure that the adoption of MinGW platform compiler. under linux I did not try ~ ~ compiled to be set pthread library (package already) the most simple way is to. a library directly into MinGW s lib directory. h files to include directory can log out of chat features such as group chat Platform: |
Size: 229376 |
Author:宋涛 |
Hits:
Description: 线程类,适合C++编程,能够直接引起进行线程的创建等使用,非常清楚,很好用。-Thread class, suitable for C++ programming, can directly lead to thread creation, use, very clear, very good use. Platform: |
Size: 3072 |
Author:zifangz |
Hits:
Description:
WaitForMultipleObjects using pthread linux
The basic idea is to use the subscriber pattern:
In WaitForMultipleObjects() subscribe at all event sources the event
sources then have to signal a central pthread_cond_t.
The public interface is declared in winEmul.h.
A few features are not implemented properly or completely, for instance
PulseEvent(). If these features would be needed, it should not be too difficult
to implement them.-
WaitForMultipleObjects using pthread linux
The basic idea is to use the subscriber pattern:
In WaitForMultipleObjects() subscribe at all event sources the event
sources then have to signal a central pthread_cond_t.
The public interface is declared in winEmul.h.
A few features are not implemented properly or completely, for instance
PulseEvent(). If these features would be needed, it should not be too difficult
to implement them. Platform: |
Size: 7168 |
Author:sucker |
Hits:
Description: 主要基于Linux介绍C多线程。在编译C的多线程时候,一方面必须指定Linux C语言线程库多线程库pthread,才可以正确编译(例如:gcc test.c -o test -lpthread);另一方面要包含有关线程头文件#include <pthread.h>。-Introduced Linux-based C multi-threaded. Compile the multithreaded C, when, on the one hand, you must specify the Linux C language threads library multi-threaded library the pthread can compile correctly (for example: gcc test.c-o test-lpthread) the other hand, contains information about the thread header files# include <pthread.h> . Platform: |
Size: 1024 |
Author:田盼 |
Hits:
Description: POSIX threads specific definitions. Easy, since the interface is just one-to-one mapping.Some implementations of <pthread.h> require this to be defined.
Platform: |
Size: 6144 |
Author:vunhwei |
Hits: