代码搜索:thread
找到约 10,000 项符合「thread」的源代码
代码结果 10,000
www.eeworm.com/read/306577/13741764
cpp thread.cpp
#include"Thread.h"
Thread::Thread(THREADFUNC func,void* param)
{
//m_Thread= reinterpret_cast(_beginThreadex(NULL,NULL,fun,param,NULL,&m_id));
threadfunc=func;
this->param=param;
}
www.eeworm.com/read/306577/13741766
h thread.h
#include
#include
#include
#include
using namespace std;
typedef unsigned (__stdcall *THREADFUNC)(void*);
class sourceshare;
class Mutex
{
public:
www.eeworm.com/read/306577/13741769
cpp thread.cpp
#include"Thread.h"
Thread::Thread(THREADFUNC func,void* param)
{
//m_Thread= reinterpret_cast(_beginThreadex(NULL,NULL,fun,param,NULL,&m_id));
threadfunc=func;
this->param=param;
}
www.eeworm.com/read/304402/13794923
txt thread.txt
设计4个线程,其中两个线程每次对j增加1,另外两个线程对j每次减少1。写出程序。
以下程序使用内部类实现线程,对j增减的时候没有考虑顺序问题。
public class ThreadTest1{
private int j;
public static void main(String args[]){
ThreadTest1 tt=new ThreadTest1();
Inc
www.eeworm.com/read/136177/13868627
h thread.h
/*
* Copyright (C) 2001-2003 Jacek Sieka, j_s@telia.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publ
www.eeworm.com/read/136177/13868682
cpp thread.cpp
/*
* Copyright (C) 2001-2003 Jacek Sieka, j_s@telia.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publ
www.eeworm.com/read/151814/5678808
java thread.java
/*
libaegisvm - The Aegis Virtual Machine for executing Java bytecode
Copyright (C) 2001-2002 Philip W. L. Fong
This library is free software; you can redistribute it and/or
modify i
www.eeworm.com/read/149652/5698144
h thread.h
/* Component of the D-ITG 2.4 Platform
*
*
* copyright : (C) 2004 by Stefano Avallone, Alessio Botta, Donato Emma,
* Salvatore Guadagno, Antonio Pescape'
* DIS Dipartimento di
www.eeworm.com/read/149652/5698156
cpp thread.cpp
/* Component of the D-ITG 2.4 Platform
*
*
* copyright : (C) 2004 by Stefano Avallone, Alessio Botta, Donato Emma,
* Salvatore Guadagno, Antonio Pescape'
* DIS Dipartimento di