代码搜索:Threads
找到约 7,387 项符合「Threads」的源代码
代码结果 7,387
www.eeworm.com/read/165566/10057277
java synchbanktest.java
/**
@version 1.20 1999-04-26
@author Cay Horstmann
*/
/**
This program shows how to avoid data corruption
when multiple threads access a data structure
*/
public class SynchBan
www.eeworm.com/read/159990/10581227
java multithread.java
//Creating multiple threads
class newThread implements Runnable
{
String name;
Thread t;
newThread(String threadName)
{
name = threadName;
t = new Thread(this,name);
System.out.pr
www.eeworm.com/read/464569/7064985
java chapter21n6.java
/**
*
* demonstration of threads version III
*
* Written by: Roger Garside
*
* First Written: 6/Feb/97
* Last Rewritten: 6/Feb/97
*
*/
class ProcessString2 implements Runnable
{
pr
www.eeworm.com/read/464569/7064986
java chapter21n5.java
/**
*
* demonstration of threads version II
*
* Written by: Roger Garside
*
* First Written: 6/Feb/97
* Last Rewritten: 6/Feb/97
*
*/
class ProcessString2 implements Runnable
{
pri
www.eeworm.com/read/464569/7064991
java chapter21n4.java
/**
*
* demonstration of threads version I
*
* Written by: Roger Garside
*
* First Written: 6/Feb/97
* Last Rewritten: 6/Feb/97
*
*/
class ProcessString1
{
private String originalS
www.eeworm.com/read/444606/7610942
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/443312/7634801
c demo.c
/* This is a small demo of the high-performance ThreadX kernel. It includes examples of six
threads of different priorities, message queues, semaphores, and event flags. */
#include "tx_api
www.eeworm.com/read/145545/12714426
java showthreaderror.java
package examples.threads;
/** A class to demonstrate the run-time error that
* occurs if wait, notify, or notifyAll are used
* when no lock has been obtained.
*/
public class ShowThreadEr
www.eeworm.com/read/242863/12976609
c buffer.c
//
// This example demonstrates semaphores.
//
#include
#include
#include
#if( GCC_VERSION>=2096 )
#include
#else
#include
#endif
using
www.eeworm.com/read/139738/13136995
java condition.java
package nachos.threads;
import nachos.machine.*;
import java.util.LinkedList;
/**
* An implementation of condition variables built upon semaphores.
*
*
* A condition variable is a synchroni