搜索资源列表
thread_attr
- 线程属性的设置,创建一个具有绑定和分离属性的线程,而且主线程通过一个finish-flag标志变量来获得线程结束的消息,而且不调用pthread-join()函数-Thread attributes Settings, create a thread binding and separation properties, and the main thread through a finish- flag symbol variables to get the message thread end
warehose
- linux下的仓库物联网系统 linux下的仓库物联网系统 linux下的仓库物联网系统 -#include<stdio.h> #include<sys/types.h> #include<sys/ipc.h> #include<sys/msg.h> #include<stdlib.h> #include<unistd.h> #include<string.h> #include<
thread_poll
- 线程池实现的源码例子。代码有详细的注释。可用于学习-pthread poll
shiyan2
- 哲学家进餐问题 #include<stdio.h> #include<semaphore.h> #include<pthread.h> //宏定义信号量个数为5,宏定义0表示思考,宏定义1表示饿,宏定义2表示吃,宏定义(ph_num+4) N表示左,宏定义(ph_num+1) N表示右 #define N 5 #define THINKING 0 #define HUNGRY 1 #define EATING 2 #
Pthread_count_area
- Pthread程序设计 题目:求曲线y=-x4+x3+1与x轴围成的面积 要求: 1.平均取点估算面积 2.Pthread实现-This is a parallel programming. Its main funciton is count the area closed by the function y=-x4+x3+1.
sort_pthread
- 使用pthread的快速排序算法 使用pthread的快速排序算法-Quick sort algorithm using pthread Quick sort algorithm using pthread
pthread
- Parallel threading for multicore processors and to know the effeciency of each abstract level
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
thread_pool
- 基于pthread的线程池的VC实现,可集成到多线程系统中使用。-implementation of thread pool based on PThread. developed under VC2008
pthread-Introduction
- 在类Unix操作系统(Unix、Linux、Mac OS X等)中,都使用Pthreads作为操作系统的线程。Windows操作系统也有其移植版pthreads-win32。phread介绍了线程的创建、共享等功能-In Unix-like operating systems (Unix, Linux, Mac OS X, etc.), use Pthreads as the operating system threads. Windows operating system has its p
tcp_test
- linux TCP客户端和服务器端集成程序, 编译方式 gcc -lrt -pthread -o xx -g tcp_test.c-linux TCP client and server side integration program, compiling way gcc-lrt-pthread-o xx-g tcp_test.c
pthread_create
- 教你如何在linux下如何创建一个线程以及如何在linux下运用这个线程-how create pthread in linux
matrixTranspos
- 一个利用pthread进行基于直角划分的矩阵转置源码,内含功能源码,测试shell scr ipt,readme-A pthread-based matrix transpose source code implemented by using Rectangular partitioning, including source code, shell scr ipt for testing and Readme
jcip
- Java并发编程实战源码,这本书名为《Java并发编程实践》有些抹杀了它的价值,其中并非只讲述了Java的多线程设施,对一般的并发编程的rationale也有相当透彻的阐述。之前看过各种线程库,pThread, Boost Thread, Java Thread, Qt Thread,感觉Java的线程模型还是相对比较清晰的。只要能读懂一点Java的朋友,都可以考虑用这本书来作为并发编程的入门书。- This book covers: Basic concepts of co
epollPpthread
- 基于poll和pthread的服务器端和客户端原代码,有thread pool-Based on poll and pthread server and client source code, there are thread pool
jacobi
- C++ 对于jacobi算法进行pthread并行化,从而使得计算时间减少-C++ algorithms for jacobi pthread parallelization, allowing the calculation time is reduced
sort-merge-joins-1.4
- 使用C实现的并行sortmerge算法 并行部分使用pthread实现。-Sortmerge using parallel algorithm implemented in C using pthread achieve parallel sections.
Prime numbers in pthreads
- Find prime numbers in a interval of time by using parallelism with pthreads
pthread
- same as pthread_cond_timedwait, except the abstime given refers to the CLOCK_MONOTONIC clock instead, to avoid any problems when the wall-clock time is changed brutally. -same as pthread_cond_timedwait, except the abstime given refers to the CLOC