代码搜索:Threads
找到约 7,387 项符合「Threads」的源代码
代码结果 7,387
www.eeworm.com/read/173458/9657080
txt list8-2.txt
1 // Listing 8-2
2 // This program demonstrates the
3 // use of a lockable global variable Number updated by
4 // two threads
5
6 #include
7
www.eeworm.com/read/113863/15446424
c prodcons7.c
/* include globals */
#include "unpipc.h"
#define MAXNITEMS 1000000
#define MAXNTHREADS 100
/* globals shared by threads */
int nitems; /* read-only by producer and consumer */
int buff[M
www.eeworm.com/read/113863/15446435
c prodcons6.c
/* include globals */
#include "unpipc.h"
#define MAXNITEMS 1000000
#define MAXNTHREADS 100
/* globals shared by threads */
int nitems; /* read-only by producer and consumer */
int buff[M
www.eeworm.com/read/112766/15477262
cpp worker.cpp
/*
* Worker.cpp
*
* Sample code for "Multithreading Applications in Win32"
* This is from Chapter 14, Listing 14-3
*
* Demonstrate using worker threads that have
* their own message queu
www.eeworm.com/read/112766/15477377
c srchwin.c
/*
* SrchWin.c
*
* Sample code for "Multithreading Applications in Win32"
* This is from Chapter 8, Listing 8-2
*
* Uses multiple threads to search the files
* "*.c" in the current dire
www.eeworm.com/read/110176/15540712
java unsynchbanktest2.java
/**
@version 1.21 2001-10-26
@author Cay Horstmann
*/
import java.text.*;
/**
This program shows data corruption
when multiple threads access a data structure.
This versio
www.eeworm.com/read/106368/15638646
c descriptors.c
//
// Copyright (C) 2000 Orn E. Hansen
//
// A C++ implementation of threaded IO.
//
#include "io.h"
namespace cpp_threads {
DescriptorSet::DescriptorSet()
{
zero();
}
DescriptorSet::~
www.eeworm.com/read/101081/15853146
h ntdriver.h
/* Copyright (C) 2004 TrueCrypt Team, truecrypt.org
This product uses components written by Paul Le Roux */
/* This structure is used to start new threads */
type
www.eeworm.com/read/100584/15870999
c prodcons7.c
/* include globals */
#include "unpipc.h"
#define MAXNITEMS 1000000
#define MAXNTHREADS 100
/* globals shared by threads */
int nitems; /* read-only by producer and consumer */
int buff[M