代码搜索:Threads
找到约 7,387 项符合「Threads」的源代码
代码结果 7,387
www.eeworm.com/read/100584/15871002
c prodcons5.c
#include "unpipc.h"
#define MAXNITEMS 1000000
#define MAXNTHREADS 100
/* globals shared by threads */
int nitems; /* read-only by producer and consumer */
int buff[MAXNITEMS];
struct {
www.eeworm.com/read/133772/5900748
cxx compatmode.cxx
//===========================================================================
//
// compatmode.cxx
//
// Compatibility mode setting for Math library
//
//==============================
www.eeworm.com/read/128447/5990486
cxx compatmode.cxx
//===========================================================================
//
// compatmode.cxx
//
// Compatibility mode setting for Math library
//
//====================================
www.eeworm.com/read/123322/6060860
cxx compatmode.cxx
//===========================================================================
//
// compatmode.cxx
//
// Compatibility mode setting for Math library
//
//====================================
www.eeworm.com/read/106385/6194477
cxx compatmode.cxx
//===========================================================================
//
// compatmode.cxx
//
// Compatibility mode setting for Math library
//
//====================================
www.eeworm.com/read/378952/9211876
pm semaphore.pm
package Thread::Semaphore;
use threads::shared;
sub new {
my $class = shift;
my $val : shared = @_ ? shift : 1;
# Workaround because of memory leak
return bless \\$val, $class;
}
s
www.eeworm.com/read/167847/9950267
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/167847/9950279
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/165566/10057275
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/159990/10581200
java threaddemo3.java
/**
*Threads implements Runnable interface
*2004.11.2. xhcprince
*/
class newThread implements Runnable
{
Thread t;
newThread()
{
t = new Thread(this,"Demo thread"); //如果不要this,则仅执行mai