代码搜索:threadtest
找到约 1,334 项符合「threadtest」的源代码
代码结果 1,334
www.eeworm.com/read/110505/15532426
cc threadtest.cc
// threadtest.cc
// Simple test case for the threads assignment.
//
// Create two threads, and have them context switch
// back and forth between themselves by calling Thread::Yield,
// to illustrat
www.eeworm.com/read/107170/15612264
java threadtest.java
class ThreadTest
{
public static void main(String args[])
{
Thread t1=new MyThread("t1");
t1.setPriority(Thread.MIN_PRIORITY);
t1.start();
Thread t2=new MyThread("t2");
t2.se
www.eeworm.com/read/161674/10386766
h testcase.h
// testcase.h
#ifndef TESTCASE_H
#define TESTCASE_H
typedef struct { int burst; int prior;} schedpair ;
void ThreadTest0();
void ThreadTest1();
void ThreadTest2();
void ThreadTest3();
void ThreadT
www.eeworm.com/read/392996/8316219
h testcase.h
// testcase.h
#ifndef TESTCASE_H
#define TESTCASE_H
typedef struct { int burst; int prior;} schedpair ;
void ThreadTest0();
void ThreadTest1();
void ThreadTest2();
void ThreadTest3();
void ThreadT
www.eeworm.com/read/385935/8776545
java threadtest1.java
public class threadtest1
{
public static void main(String[] args)
{
compute t=new compute();
compute1 t1=new compute1();
t.start();
t1.start();
}
}
www.eeworm.com/read/427322/8951673
c threadtest2.c
/*threadtest2.c*/
#include
#include
#include
#include
/*声明线程运行服务程序*/
static void pthread_func_1 (void);
static void pthread_func_2 (void
www.eeworm.com/read/184772/9077620
c threadtest2.c
/*
** 2004 January 13
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgivenes
www.eeworm.com/read/184772/9077711
c threadtest1.c
/*
** 2002 January 15
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgivenes
www.eeworm.com/read/282456/9092780
java threadtest1.java
//演示如何终止一个线程
class ThreadTest1
{
public static void main(String[] args)
{
MyThread1 mt = new MyThread1();
mt.start();
int index = 0;
while(true)
{
if (index++ == 50)
{