代码搜索:pThread
找到约 7,828 项符合「pThread」的源代码
代码结果 7,828
www.eeworm.com/read/167847/9950272
c test4.c
/* verify that calling pthread_attr_destroy() avoids memory leak */
#include "unpipc.h"
int
main(int argc, char **argv)
{
pthread_attr_t attr;
for ( ; ; ) {
Pthread_attr_init(&attr);
Pthread_
www.eeworm.com/read/272649/10951040
txt linux(1).txt
线程的数据处理
和进程相比,线程的最大优点之一是数据的共享性,各个进程共享父进程处沿袭的数据段,
可以方便的获得、修改数据。但这也给多线程编程带来了许多问题。我们必须当心有多个不同的进程访问
相同的变量。许多函数是不可重入的,即同时不能运行一个函数的多个拷贝(除非使用不同的数据段)。
在函数中声明的静态变量常常带来问题,函数的返回值也会有问题。因为如果返回的是函数内部静态声明
的 ...
www.eeworm.com/read/417321/10994483
c mutex6rs.c
/*
* mutex6rs.c
*
*
* --------------------------------------------------------------------------
*
* Pthreads-win32 - POSIX Threads Library for Win32
* Copyright(C) 1998 John E. Boss
www.eeworm.com/read/417321/10994614
c mutex6es.c
/*
* mutex6es.c
*
*
* --------------------------------------------------------------------------
*
* Pthreads-win32 - POSIX Threads Library for Win32
* Copyright(C) 1998 John E. Boss
www.eeworm.com/read/347553/7125669
c static_init.c
/********************************************************
* An example source module to accompany...
*
* "Using POSIX Threads: Programming with Pthreads"
* by Brad nichols, Dick Buttlar, J
www.eeworm.com/read/444606/7610944
c test4.c
/* verify that calling pthread_attr_destroy() avoids memory leak */
#include "unpipc.h"
int
main(int argc, char **argv)
{
pthread_attr_t attr;
for ( ; ; ) {
Pthread_attr_init(&attr);
Pthread_
www.eeworm.com/read/124347/6053539
c mutex3.c
/*
* mutex3.c
*
* Declare a static mutex object, lock it, trylock it,
* and then unlock it again.
*
* Depends on API functions:
* pthread_mutex_lock()
* pthread_mutex_trylock()
* pthread_m
www.eeworm.com/read/101153/6237747
c rt_process.c
/*
* RTLinux FPU test example
*
* Written by Michael Barabanov, 1998
* (C) FSMLabs 1999. baraban@fsmlabs.com
* Released under the GNU GENERAL PUBLIC LICENSE Version 2, June 1991
*/
#include
www.eeworm.com/read/128880/14273931
c test4.c
/* verify that calling pthread_attr_destroy() avoids memory leak */
#include "unpipc.h"
int
main(int argc, char **argv)
{
pthread_attr_t attr;
for ( ; ; ) {
Pthread_attr_init(&attr);
Pthread_
www.eeworm.com/read/200782/15424917
m4 acinclude.m4
dnl --------------------------------------------------------------------
dnl @synopsis ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
dnl
dnl This macro figures out how to build C programs usin